|
73 | 73 | "build:types": "run-s typecheck", |
74 | 74 | "lint": "eslint .", |
75 | 75 | "lint:fix": "eslint --fix .", |
76 | | - "test": "run-s test:build", |
| 76 | + "test": "run-p test:build test:unit", |
77 | 77 | "test:build": "run-p test:build:*", |
78 | 78 | "test:build:react": "pnpm -C ./examples/react run build", |
79 | 79 | "test:build:vanilla": "pnpm -C ./examples/vanilla run build", |
80 | 80 | "test:build:vue": "pnpm -C ./examples/vue run build", |
81 | 81 | "test:dev:react": "pnpm -C ./examples/react run dev", |
82 | 82 | "test:dev:vanilla": "pnpm -C ./examples/vanilla run dev", |
83 | 83 | "test:dev:vue": "pnpm -C ./examples/vue run dev", |
| 84 | + "test:unit": "vitest run --dir ./test", |
84 | 85 | "typecheck": "run-p typecheck:*", |
85 | 86 | "typecheck:core": "tsc", |
86 | 87 | "typecheck:react": "pnpm -C ./examples/react run typecheck", |
|
109 | 110 | "vite-node": "^0.34.6", |
110 | 111 | "vite-plugin-externalize-deps": "^0.1.5", |
111 | 112 | "vite-plugin-inspect": "^0.7.42", |
112 | | - "vite-plugin-node-polyfills": "workspace:*" |
| 113 | + "vite-plugin-node-polyfills": "workspace:*", |
| 114 | + "vitest": "^1.1.0" |
113 | 115 | }, |
114 | 116 | "publishConfig": { |
115 | 117 | "access": "public" |
|
0 commit comments