Skip to content

Commit

Permalink
feat: completed all pda query and test cases for same
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddharth9890 committed Oct 31, 2023
1 parent e016f53 commit d3602fa
Show file tree
Hide file tree
Showing 8 changed files with 1,668 additions and 131 deletions.
1 change: 0 additions & 1 deletion custom-fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,5 @@ export default function patchedFetch(
headers.set("Authorization", `Bearer ${context.token}`);
headers.set("X-Api-Key", context.apiKey);
init.headers = headers;
console.log(url, init);
return fetch(url, init);
}
5 changes: 5 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
};
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"test": "jest",
"dev": "ts-node ./index.ts"
},
"keywords": [],
Expand All @@ -20,6 +20,9 @@
"graphql": "^16.8.1"
},
"devDependencies": {
"@types/jest": "^29.5.7",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"typescript": "^5.2.2"
}
Expand Down
Loading

0 comments on commit d3602fa

Please sign in to comment.