|
22 | 22 | "lint:oxlint": "oxlint 'packages/**/*.{ts,tsx,js,jsx}'", |
23 | 23 | "lint:tsc": "tsc -p tsconfig.json --noEmit", |
24 | 24 | "lint-staged": "lint-staged", |
25 | | - "test": "pnpm test:karma && pnpm test:mocha", |
| 25 | + "test": "pnpm test:karma && pnpm test:mocha && pnpm test:vitest", |
26 | 26 | "test:minify": "pnpm test:karma:minify && pnpm test:mocha", |
27 | 27 | "test:prod": "pnpm test:karma:prod && pnpm test:mocha:prod", |
28 | 28 | "test:karma": "cross-env COVERAGE=true karma start karma.conf.js --single-run", |
|
32 | 32 | "test:karma:prod:watch": "cross-env NODE_ENV=production karma start karma.conf.js --no-single-run", |
33 | 33 | "test:mocha": "cross-env COVERAGE=true mocha --require test/node/setup.js --recursive packages/*/test/node/**.test.tsx", |
34 | 34 | "test:mocha:prod": "cross-env COVERAGE=true NODE_ENV=production mocha --require test/node/setup.js --recursive packages/*/test/node/**.test.tsx", |
| 35 | + "test:vitest": "cross-env COVERAGE=true vitest run", |
35 | 36 | "docs:start": "cd docs && pnpm start", |
36 | 37 | "docs:build": "cd docs && pnpm build", |
37 | 38 | "docs:preview": "cd docs && pnpm preview", |
38 | 39 | "ci:build": "pnpm build && pnpm docs:build", |
39 | 40 | "ci:test": "pnpm lint && pnpm test", |
40 | | - "prepare": "husky install", |
| 41 | + "prepare": "husky install && playwright install chromium", |
41 | 42 | "format": "prettier --ignore-path .gitignore --write '**/*.{js,jsx,ts,tsx,yml,json,md}'", |
42 | 43 | "version": "pnpm changeset version && pnpm i --lockfile-only" |
43 | 44 | }, |
|
65 | 66 | "@types/node": "^18.19.103", |
66 | 67 | "@types/sinon": "^10.0.13", |
67 | 68 | "@types/sinon-chai": "^3.2.8", |
| 69 | + "@vitest/coverage-v8": "^3.2.4", |
68 | 70 | "babel-plugin-istanbul": "^6.1.1", |
69 | 71 | "babel-plugin-transform-rename-properties": "^0.1.0", |
70 | 72 | "buffer": "^6.0.3", |
|
86 | 88 | "microbundle": "^0.15.1", |
87 | 89 | "mocha": "^10.0.0", |
88 | 90 | "oxlint": "^1.3.0", |
| 91 | + "playwright": "^1.53.1", |
89 | 92 | "prettier": "^3.6.2", |
90 | 93 | "shx": "^0.3.4", |
91 | 94 | "sinon": "^14.0.0", |
92 | 95 | "sinon-chai": "^3.7.0", |
93 | | - "typescript": "~5.8.3" |
| 96 | + "typescript": "~5.8.3", |
| 97 | + "vitest": "^3.2.4" |
94 | 98 | }, |
95 | 99 | "lint-staged": { |
96 | 100 | "**/*.{js,jsx,ts,tsx,yml,json,md}": [ |
|
0 commit comments