diff options
author | Jacob Scearcy <jacobscearcy@gmail.com> | 2024-05-06 06:42:35 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-06 14:42:35 +0100 |
commit | 80e2bd66f54bca88a749d40784828d29bae8995f (patch) | |
tree | 587a8b2d24f09e1955f11ab1ae7ca1e16084d4e1 /package.json | |
parent | 8adbae91d3e7d526b5950e2299736ab915dc5489 (diff) | |
download | lustre-80e2bd66f54bca88a749d40784828d29bae8995f.tar.gz lustre-80e2bd66f54bca88a749d40784828d29bae8995f.zip |
๐ Use vitest for runtime/vdom testing. (#124)
* ๐งช move tests into test directory, bump birdie to ignore non-gleam files
* implement feedback
* add comments, update doc
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/package.json b/package.json new file mode 100644 index 0000000..3cd6217 --- /dev/null +++ b/package.json @@ -0,0 +1,32 @@ +{ + "name": "lustre-client-test", + "version": "0.1.0", + "description": "testing for client scripts, and using vitest experimental bench", + "scripts": { + "bench": "run-s build:bench bench:vitest", + "bench:vitest": "vitest bench --config ./vitest.config.js", + + "build": "run-p build:test:**", + "build:bench": "run-s build:test:vdom", + "build:test:02": "cd examples/02-interactivity && gleam build", + "build:test:vdom": "cd test-apps/vdom-test-templates && gleam build", + + "run:vitest": "vitest --config ./vitest.config.js", + + "test": "run-s build \"run:vitest -- --run\"", + "test:02": "run-s build:test:02 \"run:vitest -- --run 02-interactivity.test\"", + "test:vdom": "run-s build:test:vdom \"run:vitest -- --run vdom.ffi \"", + + "watch:test": "run-p \"watch:init:**\"", + "watch:init:build": "run-p build:test:**", + "watch:init:vitest": "run-s run:vitest" + }, + "author": "Jacob Scearcy", + "license": "MIT", + "devDependencies": { + "esbuild": "^0.20.2", + "linkedom": "^0.16.11", + "npm-run-all": "^4.1.5", + "vitest": "^1.5.0" + } +} |