Skip to content

Commit 2678617

Browse files
authored
Merge pull request #19 from GhostTypes/test/migrate-jest-to-vitest
test: migrate from Jest to Vitest
2 parents 5c0e727 + a82125b commit 2678617

55 files changed

Lines changed: 7076 additions & 7093 deletions

Some content is hidden

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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ package-lock.json
44
/.idea
55
.kiro/coverage/
66
coverage/
7+
nul

CLAUDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ A TypeScript API library (`@ghosttypes/ff-api`) for controlling FlashForge 3D pr
99
## Build & Test Commands
1010

1111
- **Build:** `pnpm build` (runs `tsc`, outputs to `dist/`)
12-
- **Test all:** `pnpm test` (Jest with ts-jest)
13-
- **Test single file:** `pnpm exec jest path/to/file.test.ts`
12+
- **Test all:** `pnpm test` (Vitest)
13+
- **Test single file:** `pnpm exec vitest run path/to/file.test.ts`
1414
- **Test watch:** `pnpm test:watch`
1515
- **Test coverage:** `pnpm test:coverage`
1616

biome.json

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.3.14/schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"clientKind": "git",
6+
"useIgnoreFile": true
7+
},
8+
"files": {
9+
"ignoreUnknown": false
10+
},
11+
"formatter": {
12+
"enabled": true,
13+
"formatWithErrors": false,
14+
"indentStyle": "space",
15+
"indentWidth": 2,
16+
"lineEnding": "lf",
17+
"lineWidth": 100
18+
},
19+
"linter": {
20+
"enabled": true,
21+
"rules": {
22+
"recommended": true,
23+
"a11y": {
24+
"recommended": true
25+
},
26+
"correctness": {
27+
"recommended": true,
28+
"noUnusedVariables": "error",
29+
"noUnusedImports": "error"
30+
},
31+
"complexity": {
32+
"recommended": true,
33+
"noForEach": "off",
34+
"useLiteralKeys": "off",
35+
"noStaticOnlyClass": "off"
36+
},
37+
"style": {
38+
"recommended": true,
39+
"noParameterAssign": "off",
40+
"useConst": "error",
41+
"useTemplate": "warn",
42+
"noNonNullAssertion": "warn"
43+
},
44+
"suspicious": {
45+
"recommended": true,
46+
"noArrayIndexKey": "warn",
47+
"noExplicitAny": "warn",
48+
"noEmptyBlockStatements": "warn",
49+
"noImplicitAnyLet": "warn"
50+
},
51+
"performance": {
52+
"recommended": true
53+
},
54+
"security": {
55+
"recommended": true
56+
}
57+
}
58+
},
59+
"javascript": {
60+
"formatter": {
61+
"quoteStyle": "single",
62+
"jsxQuoteStyle": "double",
63+
"quoteProperties": "asNeeded",
64+
"trailingCommas": "es5",
65+
"semicolons": "always",
66+
"arrowParentheses": "always",
67+
"bracketSpacing": true,
68+
"bracketSameLine": false
69+
}
70+
},
71+
"json": {
72+
"formatter": {
73+
"enabled": true,
74+
"indentStyle": "space",
75+
"indentWidth": 2,
76+
"lineWidth": 100
77+
}
78+
},
79+
"overrides": [
80+
{
81+
"includes": ["*.test.ts", "**/*.test.ts"],
82+
"linter": {
83+
"rules": {
84+
"suspicious": {
85+
"noExplicitAny": "off"
86+
}
87+
}
88+
}
89+
}
90+
]
91+
}

0 commit comments

Comments
 (0)