Skip to content

Commit

Permalink
Add Jest
Browse files Browse the repository at this point in the history
  • Loading branch information
narengogi committed Aug 22, 2024
1 parent 5898495 commit c3e5fa9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/** @type {import('ts-jest').JestConfigWithTsJest} **/
export default {
testEnvironment: 'node',
transform: {
'^.+.tsx?$': ['ts-jest', {}],
},
testTimeout: 30000, // Set default timeout to 30 seconds
};
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"start:node": "node build/start-server.js",
"format": "prettier --write \"./**/*.{js,jsx,ts,tsx,json}\"",
"format:check": "prettier --check \"./**/*.{js,jsx,ts,tsx,json}\"",
"test": "ts-jest"
"test": "jest"
},
"dependencies": {
"@aws-crypto/sha256-js": "^5.2.0",
Expand All @@ -57,7 +57,7 @@
"jest": "^29.7.0",
"prettier": "3.2.5",
"rollup": "^4.9.1",
"ts-jest": "^29.1.2",
"ts-jest": "^29.2.4",
"tsx": "^4.7.0",
"typescript-eslint": "^8.1.0",
"wrangler": "^3.48.0"
Expand Down

0 comments on commit c3e5fa9

Please sign in to comment.