Skip to content

Commit 6af5d5a

Browse files
committed
Add some unit tests for globals
1 parent 0b4e349 commit 6af5d5a

File tree

5 files changed

+580
-2
lines changed

5 files changed

+580
-2
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,15 @@
7373
"build:types": "run-s typecheck",
7474
"lint": "eslint .",
7575
"lint:fix": "eslint --fix .",
76-
"test": "run-s test:build",
76+
"test": "run-p test:build test:unit",
7777
"test:build": "run-p test:build:*",
7878
"test:build:react": "pnpm -C ./examples/react run build",
7979
"test:build:vanilla": "pnpm -C ./examples/vanilla run build",
8080
"test:build:vue": "pnpm -C ./examples/vue run build",
8181
"test:dev:react": "pnpm -C ./examples/react run dev",
8282
"test:dev:vanilla": "pnpm -C ./examples/vanilla run dev",
8383
"test:dev:vue": "pnpm -C ./examples/vue run dev",
84+
"test:unit": "vitest run --dir ./test",
8485
"typecheck": "run-p typecheck:*",
8586
"typecheck:core": "tsc",
8687
"typecheck:react": "pnpm -C ./examples/react run typecheck",
@@ -109,7 +110,8 @@
109110
"vite-node": "^0.34.6",
110111
"vite-plugin-externalize-deps": "^0.1.5",
111112
"vite-plugin-inspect": "^0.7.42",
112-
"vite-plugin-node-polyfills": "workspace:*"
113+
"vite-plugin-node-polyfills": "workspace:*",
114+
"vitest": "^1.1.0"
113115
},
114116
"publishConfig": {
115117
"access": "public"

0 commit comments

Comments
 (0)