Skip to content

Commit 4da98e8

Browse files
committed
test: working first test
1 parent 7a9ebd0 commit 4da98e8

File tree

12 files changed

+1077
-452
lines changed

12 files changed

+1077
-452
lines changed

.vscode/settings.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,9 @@
1919
"jsonc",
2020
"yaml"
2121
],
22-
"eslint.workingDirectories": [{ "mode": "auto" }]
22+
"eslint.workingDirectories": [
23+
{
24+
"mode": "auto"
25+
}
26+
]
2327
}

eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const ignores = {
1919
export default (async () => {
2020
const eslintConfig = await _eslintConfig({
2121
nuxt: false,
22-
tsconfigPath: ['./tsconfig.json'],
22+
tsconfigPath: ['./tsconfig.json', './test/tsconfig.json'],
2323
})
2424

2525
return [...eslintConfig, ignores]

package.json

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828
"lint:ci": "eslint --cache --cache-strategy content . && prettier --check --cache --cache-strategy content .",
2929
"lint:fix": "eslint --fix --cache . && prettier --write --cache .",
3030
"type-check": "tsc -p tsconfig.json --noEmit",
31-
"prepare": "husky"
31+
"prepare": "husky",
32+
"test": "start-server-and-test test:server http-get://localhost:3000/ping vitest",
33+
"test:server": "tsx ./test/trpc/index.ts"
3234
},
3335
"peerDependencies": {
3436
"@tanstack/vue-query": "^5.22.2",
@@ -37,10 +39,10 @@
3739
"vue": "^3.4.19"
3840
},
3941
"dependencies": {
40-
"@vueuse/core": "^10.8.0"
42+
"@vueuse/core": "^10.9.0"
4143
},
4244
"devDependencies": {
43-
"@commitlint/cli": "^18.6.1",
45+
"@commitlint/cli": "^19.0.3",
4446
"@eslint/eslintrc": "^3.0.2",
4547
"@louishaftmann/commitlint-config": "^3.0.1",
4648
"@louishaftmann/eslint-config": "^3.0.1",
@@ -49,15 +51,21 @@
4951
"@tanstack/vue-query": "^5.24.1",
5052
"@trpc/client": "^10.45.1",
5153
"@trpc/server": "^10.45.1",
52-
"@types/eslint": "^8.56.3",
54+
"@types/eslint": "^8.56.5",
5355
"@types/eslint__eslintrc": "^2.1.1",
56+
"@vitest/ui": "^1.3.1",
5457
"eslint": "^8.57.0",
58+
"happy-dom": "^13.6.2",
5559
"husky": "^9.0.11",
5660
"lint-staged": "^15.2.2",
5761
"prettier": "^3.2.5",
62+
"start-server-and-test": "^2.0.3",
5863
"tsup": "^8.0.2",
64+
"tsx": "^4.7.1",
5965
"typescript": "^5.3.3",
60-
"vue": "^3.4.19"
66+
"vitest": "^1.3.1",
67+
"vue": "^3.4.21",
68+
"vue-demi": "^0.14.7"
6169
},
6270
"changelogithub": {
6371
"extends": "gh:falcondev-it/configs/changelogithub"

0 commit comments

Comments
 (0)