|
7 | 7 | "scripts": { |
8 | 8 | "new": "node tools/new-rule.js", |
9 | 9 | "start": "npm run test:base -- --watch --growl", |
10 | | - "test:base": "mocha \"tests/lib/**/*.js\" --reporter dot", |
11 | | - "test": "nyc npm run test:base -- \"tests/integrations/*.js\" --timeout 60000", |
12 | | - "test:integrations": "mocha \"tests/integrations/*.js\" --timeout 60000", |
13 | | - "debug": "mocha --inspect \"tests/lib/**/*.js\" --reporter dot --timeout 60000", |
| 10 | + "test:base": "vitest run --reporter=dot tests/lib", |
| 11 | + "test": "vitest run", |
| 12 | + "test:integrations": "vitest run tests/integrations", |
| 13 | + "debug": "vitest run --inspect --no-file-parallelism --reporter=dot tests/lib", |
14 | 14 | "cover": "npm run cover:test && npm run cover:report", |
15 | | - "cover:test": "nyc npm run test:base -- --timeout 60000", |
16 | | - "cover:report": "nyc report --reporter=html", |
| 15 | + "cover:test": "vitest run --coverage --reporter=dot tests/lib", |
| 16 | + "cover:report": "echo 'HTML coverage report available at ./coverage/index.html'", |
17 | 17 | "lint": "eslint . && markdownlint \"**/*.md\"", |
18 | 18 | "lint:fix": "eslint . --fix && markdownlint \"**/*.md\" --fix", |
19 | 19 | "tsc": "tsc", |
|
87 | 87 | "@types/xml-name-validator": "^4.0.3", |
88 | 88 | "@typescript-eslint/parser": "^8.35.1", |
89 | 89 | "@typescript-eslint/types": "^8.35.1", |
| 90 | + "@vitest/coverage-v8": "^3.2.4", |
90 | 91 | "assert": "^2.1.0", |
91 | 92 | "env-cmd": "^10.1.0", |
92 | 93 | "esbuild": "^0.24.0", |
|
106 | 107 | "globals": "^15.14.0", |
107 | 108 | "jsdom": "^22.0.0", |
108 | 109 | "markdownlint-cli": "^0.42.0", |
109 | | - "mocha": "^10.7.3", |
110 | | - "nyc": "^17.1.0", |
111 | 110 | "pathe": "^1.1.2", |
112 | 111 | "prettier": "^3.3.3", |
113 | 112 | "typescript": "^5.7.2", |
|
0 commit comments