Skip to content

Commit 1b95037

Browse files
authored
Respect maxRetries for unexpected errors (#5113)
* Respect maxRetries for unexpected errors * Add Vitest deps to graphql-query * Add Vitest config and update TS config * Add graphql-request tests * Actually return errors from `graphql-request`
1 parent c490b19 commit 1b95037

File tree

8 files changed

+663
-82
lines changed

8 files changed

+663
-82
lines changed

packages/rtk-query-graphql-request-base-query/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"build": "microbundle",
2222
"prepack": "rimraf dist/*; yarn build",
2323
"dev": "microbundle watch",
24-
"test": "true"
24+
"test": "vitest run",
25+
"test:watch": "vitest"
2526
},
2627
"dependencies": {
2728
"graphql-request": "^4.0.0 || ^5.0.0 || ^6.0.0"
@@ -32,10 +33,12 @@
3233
},
3334
"devDependencies": {
3435
"@reduxjs/toolkit": "^1.6.0 || ^2.0.0",
36+
"@types/node": "^20.11.0",
3537
"graphql": "^16.5.0",
3638
"microbundle": "^0.13.3",
3739
"rimraf": "^3.0.2",
38-
"typescript": "^5.8.2"
40+
"typescript": "^5.8.2",
41+
"vitest": "^1.6.0"
3942
},
4043
"publishConfig": {
4144
"access": "public"

0 commit comments

Comments
 (0)