Skip to content

Commit e7d7c54

Browse files
committed
move to vitest
1 parent db961ea commit e7d7c54

File tree

254 files changed

+1994
-3548
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

254 files changed

+1994
-3548
lines changed

package-lock.json

Lines changed: 1732 additions & 3529 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"scripts": {
1010
"start": "node src/index.js",
1111
"serve": "http-server -p 443 -S -o -c-1 -C static/http-cert.pem -K static/http-key.pem",
12-
"test": "f(){ if [ -z \"$CI\" ]; then jest --onlyChanged $*; else jest $*; fi }; NODE_OPTIONS=--experimental-vm-modules f",
13-
"lint": "eslint src && tsc",
12+
"test": "if [ -z \"$CI\" ]; then vitest run --changed $*; else vitest run $*; fi",
13+
"lint": "eslint src",
1414
"prepare": "husky"
1515
},
1616
"dependencies": {
@@ -26,35 +26,20 @@
2626
},
2727
"devDependencies": {
2828
"@playwright/browser-chromium": "^1.47.2",
29-
"@types/jest": "^29.5.13",
3029
"eslint": "^9.11.1",
3130
"eslint-config-prettier": "^9.1.0",
3231
"eslint-plugin-jest": "^28.10.0",
3332
"eslint-plugin-prettier": "^5.2.1",
3433
"http-server": "^14.1.1",
3534
"husky": "^9.1.6",
36-
"jest": "^29.7.0",
3735
"playwright": "^1.49.1",
3836
"prettier": "^3.3.3",
3937
"typescript": "^5.6.2",
40-
"typescript-eslint": "^8.18.1"
41-
},
42-
"jest": {
43-
"testPathIgnorePatterns": [
44-
"<rootDir>/templates"
45-
]
38+
"typescript-eslint": "^8.18.1",
39+
"vitest": "^3.0.5"
4640
},
4741
"prettier": {
4842
"quoteProps": "consistent",
4943
"arrowParens": "avoid"
50-
},
51-
"wallaby": {
52-
"autoDetect": true,
53-
"startAutomatically": true,
54-
"env": {
55-
"params": {
56-
"env": "NODE_OPTIONS=--experimental-vm-modules"
57-
}
58-
}
5944
}
6045
}

src/2015/day01.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { part1, part2 } from "./day01.js";
2+
import { describe, test, expect } from "vitest";
23
import readInput from "../utils/read-input.js";
34

45
let input = readInput(import.meta.url);

src/2015/day02.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { part1, part2 } from "./day02.js";
2+
import { describe, test, expect } from "vitest";
23
import readInput from "../utils/read-input.js";
34

45
let input = readInput(import.meta.url);

src/2015/day03.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { part1, part2 } from "./day03.js";
2+
import { describe, test, expect } from "vitest";
23
import readInput from "../utils/read-input.js";
34

45
let input = readInput(import.meta.url);

src/2015/day04.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { part1, part2 } from "./day04.js";
2+
import { describe, test, expect } from "vitest";
23
import readInput from "../utils/read-input.js";
34

45
let input = readInput(import.meta.url);

src/2015/day05.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { part1, part2 } from "./day05.js";
2+
import { describe, test, expect } from "vitest";
23
import readInput from "../utils/read-input.js";
34

45
let input = readInput(import.meta.url);

src/2015/day06.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { part1, part2 } from "./day06.js";
2+
import { describe, test, expect } from "vitest";
23
import readInput from "../utils/read-input.js";
34

45
let input = readInput(import.meta.url);

src/2015/day07.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { part1, part2 } from "./day07.js";
2+
import { describe, test, expect } from "vitest";
23
import readInput from "../utils/read-input.js";
34

45
let input = readInput(import.meta.url);

src/2015/day08.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { part1, part2 } from "./day08.js";
2+
import { describe, test, expect } from "vitest";
23
import readInput from "../utils/read-input.js";
34

45
let input = readInput(import.meta.url);

0 commit comments

Comments
 (0)