Skip to content

Commit

Permalink
Update test runners
Browse files Browse the repository at this point in the history
  • Loading branch information
colinhacks committed Jun 23, 2023
1 parent 898dced commit 6309322
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion jest.config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"rootDir": ".",
"testRegex": "src/.*\\.test\\.ts$",
"modulePathIgnorePatterns": ["language-server"],
"modulePathIgnorePatterns": ["language-server", "__vitest__"],
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "node"],
"coverageReporters": ["json-summary", "text", "lcov"]
}
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
"ts-node": "^10.9.1",
"tslib": "^2.3.1",
"tsx": "^3.8.0",
"typescript": "~4.5.0"
"typescript": "~4.5.0",
"vitest": "^0.32.2"
},
"exports": {
".": {
Expand Down Expand Up @@ -98,8 +99,9 @@
"test": "yarn test:tsc",
"test:babel": "jest --coverage",
"test:bun": "bun test",
"test:tsc": "jest --config ./ts-jest.config.json",
"test:swc": "jest --config ./swc-jest.config.json",
"test:vitest": "npx vitest --no-isolate",
"test:ts-jest": "npx jest --config ./ts-jest.config.json",
"test:swc": "npx jest --config ./swc-jest.config.json",
"test:deno": "cd deno && deno test",
"prepublishOnly": "npm run test && npm run build && npm run build:deno",
"play": "nodemon -e ts -w . -x tsx playground.ts",
Expand Down
2 changes: 1 addition & 1 deletion swc-jest.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"^.+\\.(t|j)sx?$": "@swc/jest"
},
"testRegex": "src/.*\\.test\\.ts$",
"modulePathIgnorePatterns": ["language-server"],
"modulePathIgnorePatterns": ["language-server", "__vitest__"],
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "node"],
"coverageReporters": ["json-summary", "text", "lcov"]
}
2 changes: 1 addition & 1 deletion ts-jest.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"^.+\\.tsx?$": "ts-jest"
},
"testRegex": "src/.*\\.test\\.ts$",
"modulePathIgnorePatterns": ["language-server"],
"modulePathIgnorePatterns": ["language-server", "__vitest__"],
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "node"],
"coverageReporters": ["json-summary", "text", "lcov"]
}

0 comments on commit 6309322

Please sign in to comment.