From 80e2bd66f54bca88a749d40784828d29bae8995f Mon Sep 17 00:00:00 2001 From: Jacob Scearcy Date: Mon, 6 May 2024 06:42:35 -0700 Subject: =?UTF-8?q?=F0=9F=94=80=20Use=20vitest=20for=20runtime/vdom=20test?= =?UTF-8?q?ing.=20(#124)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🧪 move tests into test directory, bump birdie to ignore non-gleam files * implement feedback * add comments, update doc --- package.json | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 package.json (limited to 'package.json') 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" + } +} -- cgit v1.2.3