Skip to content

Commit 00035ba

Browse files
committed
fix: vitest config file
Signed-off-by: Christian Stewart <christian@aperture.us>
1 parent 96fa4c7 commit 00035ba

File tree

3 files changed

+71
-0
lines changed

3 files changed

+71
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
"esbuild": "^0.27.0",
9292
"eslint": "^9.39.1",
9393
"eslint-config-prettier": "^10.0.2",
94+
"happy-dom": "^20.0.10",
9495
"husky": "^9.1.7",
9596
"lint-staged": "^16.2.7",
9697
"prettier": "^3.5.3",

vitest.config.ts

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
import { defineConfig } from 'vitest/config'
2+
import path from 'path'
3+
4+
export default defineConfig({
5+
resolve: {
6+
alias: {
7+
starpc: path.resolve(__dirname, './srpc/index.ts'),
8+
},
9+
},
10+
test: {
11+
exclude: [
12+
'**/node_modules/**',
13+
'**/coverage/**',
14+
'**/build/**',
15+
'**/.log/**',
16+
'**/.snowpack/**',
17+
'**/.DS_Store',
18+
'**/.env.local',
19+
'**/.env.development.local',
20+
'**/.env.test.local',
21+
'**/.env.production.local',
22+
'**/npm-debug.log*',
23+
'**/yarn-debug.log*',
24+
'**/yarn-error.log*',
25+
'**/.#*',
26+
'**/dist/**',
27+
'**/.*.swp',
28+
'**/.vs/**',
29+
'**/.vscode/**',
30+
'!**/.vscode/launch.json',
31+
'**/*.test',
32+
'**/vendor/**',
33+
'**/debug.test',
34+
'**/.aider*',
35+
'**/starpc-*.tgz',
36+
'**/.env',
37+
],
38+
},
39+
})

yarn.lock

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -792,11 +792,23 @@
792792
dependencies:
793793
undici-types "~7.14.0"
794794

795+
"@types/node@^20.0.0":
796+
version "20.19.25"
797+
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.19.25.tgz#467da94a2fd966b57cc39c357247d68047611190"
798+
integrity sha512-ZsJzA5thDQMSQO788d7IocwwQbI8B5OPzmqNvpf3NY/+MHDAS759Wo0gd2WQeXYt5AAAQjzcrTVC6SKCuYgoCQ==
799+
dependencies:
800+
undici-types "~6.21.0"
801+
795802
"@types/parse-json@^4.0.0":
796803
version "4.0.2"
797804
resolved "https://registry.yarnpkg.com/@types/parse-json/-/parse-json-4.0.2.tgz#5950e50960793055845e956c427fc2b0d70c5239"
798805
integrity sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw==
799806

807+
"@types/whatwg-mimetype@^3.0.2":
808+
version "3.0.2"
809+
resolved "https://registry.yarnpkg.com/@types/whatwg-mimetype/-/whatwg-mimetype-3.0.2.tgz#e5e06dcd3e92d4e622ef0129637707d66c28d6a4"
810+
integrity sha512-c2AKvDT8ToxLIOUlN51gTiHXflsfIFisS4pO7pDPoKouJCESkhZnEy623gwP9laCy5lnLDAw1vAzu2vM2YLOrA==
811+
800812
"@types/ws@^8.2.2":
801813
version "8.18.1"
802814
resolved "https://registry.yarnpkg.com/@types/ws/-/ws-8.18.1.tgz#48464e4bf2ddfd17db13d845467f6070ffea4aa9"
@@ -1685,6 +1697,15 @@ graphemer@^1.4.0:
16851697
resolved "https://registry.yarnpkg.com/graphemer/-/graphemer-1.4.0.tgz#fb2f1d55e0e3a1849aeffc90c4fa0dd53a0e66c6"
16861698
integrity sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==
16871699

1700+
happy-dom@^20.0.10:
1701+
version "20.0.10"
1702+
resolved "https://registry.yarnpkg.com/happy-dom/-/happy-dom-20.0.10.tgz#01fb5f09426420994e47e966598e272102678dd2"
1703+
integrity sha512-6umCCHcjQrhP5oXhrHQQvLB0bwb1UzHAHdsXy+FjtKoYjUhmNZsQL8NivwM1vDvNEChJabVrUYxUnp/ZdYmy2g==
1704+
dependencies:
1705+
"@types/node" "^20.0.0"
1706+
"@types/whatwg-mimetype" "^3.0.2"
1707+
whatwg-mimetype "^3.0.0"
1708+
16881709
has-flag@^4.0.0:
16891710
version "4.0.0"
16901711
resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b"
@@ -2624,6 +2645,11 @@ uint8arrays@^5.0.0, uint8arrays@^5.0.1, uint8arrays@^5.0.2, uint8arrays@^5.1.0:
26242645
dependencies:
26252646
multiformats "^13.0.0"
26262647

2648+
undici-types@~6.21.0:
2649+
version "6.21.0"
2650+
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.21.0.tgz#691d00af3909be93a7faa13be61b3a5b50ef12cb"
2651+
integrity sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==
2652+
26272653
undici-types@~7.14.0:
26282654
version "7.14.0"
26292655
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-7.14.0.tgz#4c037b32ca4d7d62fae042174604341588bc0840"
@@ -2684,6 +2710,11 @@ weald@^1.0.4:
26842710
ms "^3.0.0-canary.1"
26852711
supports-color "^10.0.0"
26862712

2713+
whatwg-mimetype@^3.0.0:
2714+
version "3.0.0"
2715+
resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-3.0.0.tgz#5fa1a7623867ff1af6ca3dc72ad6b8a4208beba7"
2716+
integrity sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q==
2717+
26872718
which@^1.2.14:
26882719
version "1.3.1"
26892720
resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a"

0 commit comments

Comments
 (0)