Skip to content

Commit 67145e8

Browse files
authored
Merge pull request #1368 from github/koesie10/migrate-to-vitest
Switch from Jest to Vitest
2 parents 9d10839 + 26f8792 commit 67145e8

File tree

10 files changed

+3344
-4706
lines changed

10 files changed

+3344
-4706
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
## Running tests
88

9-
We use the [jest](https://jestjs.io/) test framework. To run all the tests use `npm run test`. To run a specific test the best experience is to use VS Code.
9+
We use the [vitest](https://vitest.dev/) test framework. To run all the tests use `npm run test`. To run a specific test the best experience is to use VS Code.
1010

1111
The `codeql` executable must be on the path before running any tests. If you run `script/test` instead of `npm run test` it will set that up automatically.
1212

eslint.config.mjs

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ import github from "eslint-plugin-github";
44
import tseslint from "typescript-eslint";
55

66
export default tseslint.config(
7-
globalIgnores(["dist/", "node_modules/", "script/", "jest.config.ts", "eslint.config.mjs", "build.mjs"]),
7+
globalIgnores([
8+
"dist/",
9+
"node_modules/",
10+
"script/",
11+
"eslint.config.mjs",
12+
"build.mjs",
13+
]),
814
github.getFlatConfigs().recommended,
915
...github.getFlatConfigs().typescript,
1016
tseslint.configs.recommendedTypeChecked,
@@ -61,12 +67,12 @@ export default tseslint.config(
6167
"@typescript-eslint/restrict-template-expressions": "off",
6268
},
6369
settings: {
64-
"import/parsers": {
65-
"@typescript-eslint/parser": [".ts", ".tsx"]
66-
},
67-
"import/resolver": {
68-
"typescript": {}
69-
}
70+
"import/parsers": {
71+
"@typescript-eslint/parser": [".ts", ".tsx"],
72+
},
73+
"import/resolver": {
74+
typescript: {},
75+
},
7076
},
7177
languageOptions: {
7278
parserOptions: {

jest.config.ts

Lines changed: 0 additions & 213 deletions
This file was deleted.

0 commit comments

Comments
 (0)