Skip to content

Commit 017aefb

Browse files
guguclaude
andcommitted
add SDK test suite with vitest and MSW
Adds 11 tests covering API calls (createLink, getLink, deleteLink), error reporting (401, 404, throwOnError), and Zod schema validation. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent d07b8d0 commit 017aefb

4 files changed

Lines changed: 5828 additions & 3 deletions

File tree

package.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@
66
"type": "module",
77
"private": false,
88
"types": "dist/index.d.ts",
9-
"files": ["dist/**"],
9+
"files": [
10+
"dist/**"
11+
],
1012
"scripts": {
1113
"generate": "openapi-ts -f openapi/config.ts",
1214
"compile": "tsc --build . && tsc-alias",
1315
"prepare": "npm run compile",
14-
"prepublishOnly": "npm run compile"
16+
"prepublishOnly": "npm run compile",
17+
"test": "vitest run"
1518
},
1619
"repository": {
1720
"type": "git",
@@ -37,9 +40,11 @@
3740
"@types/node": "^25.0.9",
3841
"eslint": "^9.39.2",
3942
"globals": "^17.0.0",
43+
"msw": "^2.12.7",
4044
"tsc-alias": "^1.8.16",
4145
"typescript": "^5.9.3",
42-
"typescript-eslint": "^8.53.1"
46+
"typescript-eslint": "^8.53.1",
47+
"vitest": "^4.0.18"
4348
},
4449
"dependencies": {
4550
"zod": "^4.3.6"

0 commit comments

Comments
 (0)