Skip to content

Commit 870fdaa

Browse files
authored
Merge pull request #53 from chyzwar/vitest
feat(): migrate to vitest
2 parents f2481dc + 12ebe78 commit 870fdaa

33 files changed

+859
-2204
lines changed

.husky/commit-msg

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
31

4-
yarn commitlint --edit $1
2+
yarn commitlint --edit "$1"

.husky/pre-commit

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
31

4-
yarn lint-staged
2+
yarn test

.husky/pre-push

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +0,0 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"

jest.config.ts

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

package.json

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,25 @@
1919
"lint:fix": "eslint . --ext .ts,.js,.tsx --fix",
2020
"build": "tsc --build",
2121
"build:watch": "tsc --build --watch",
22-
"test": "jest",
23-
"test:coverage": "jest --coverage",
24-
"test:watch": "jest --watch",
25-
"postinstall": "husky install"
22+
"test": "vitest --run",
23+
"test:coverage": "vitest --coverage",
24+
"test:watch": "vitest",
25+
"postinstall": "husky install",
26+
"prepare": "husky"
2627
},
2728
"dependencies": {
2829
"@chyzwar/eslint-config": "^0.2.0",
29-
"@commitlint/cli": "^18.5.0",
30-
"@commitlint/config-conventional": "^18.5.0",
31-
"@types/node": "^20.11.5",
32-
"@typescript-eslint/eslint-plugin": "^6.19.1",
33-
"@typescript-eslint/parser": "^6.19.1",
30+
"@commitlint/cli": "^18.6.1",
31+
"@commitlint/config-conventional": "18.6.0",
32+
"@types/node": "^20.11.17",
33+
"@typescript-eslint/eslint-plugin": "^7.0.1",
34+
"@typescript-eslint/parser": "^7.0.1",
3435
"eslint": "^8.56.0",
35-
"husky": "^8.0.3",
36-
"jest": "^29.7.0",
37-
"lint-staged": "^15.2.0",
36+
"husky": "^9.0.10",
37+
"lint-staged": "^15.2.2",
3838
"ts-node": "^10.9.2",
39-
"typescript": "^5.3.3"
39+
"typescript": "^5.3.3",
40+
"vitest": "^1.2.2"
4041
},
4142
"lint-staged": {
4243
"*.{js,ts,tsx}": "yarn lint:fix"

packages/eslint-config/node.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const findUp = require("find-up");
2-
32
const eslint = require("./rules/eslint");
43
const jest = require("./rules/jest");
54
const typescript = require("./rules/typescript");

packages/eslint-config/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
},
2121
"dependencies": {
2222
"@chyzwar/tsconfig": "^0.2.17",
23-
"@typescript-eslint/eslint-plugin": "^6.19.1",
24-
"@typescript-eslint/parser": "^6.19.1",
23+
"@typescript-eslint/eslint-plugin": "^7.0.1",
24+
"@typescript-eslint/parser": "^7.0.1",
2525
"eslint-plugin-jest": "^27.6.3",
2626
"eslint-plugin-react-hooks": "^4.6.0",
2727
"find-up": "^5.0.0"

packages/runner/.swcrc

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

packages/runner/examples/packages/api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
"@chyzwar/eslint-config": "^0.2.0",
1111
"@chyzwar/tsconfig": "^0.2.0",
1212
"eslint": "^8.56.0",
13-
"fastify": "^4.25.2"
13+
"fastify": "^4.26.1"
1414
}
1515
}

packages/runner/examples/packages/ui/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
"preview": "vite preview"
1010
},
1111
"dependencies": {
12-
"preact": "^10.19.3"
12+
"preact": "^10.19.4"
1313
},
1414
"devDependencies": {
15-
"@babel/core": "^7.23.7",
15+
"@babel/core": "^7.23.9",
1616
"@chyzwar/eslint-config": "^0.2.2",
1717
"@chyzwar/tsconfig": "^0.2.2",
1818
"@preact/preset-vite": "^2.8.1",
1919
"eslint": "^8.56.0",
20-
"preact": "^10.19.3",
20+
"preact": "^10.19.4",
2121
"typescript": "^5.3.3",
22-
"vite": "^5.0.12"
22+
"vite": "^5.1.1"
2323
}
2424
}

0 commit comments

Comments
 (0)