Skip to content

Commit

Permalink
test: Configure Jest for testing
Browse files Browse the repository at this point in the history
Signed-off-by: Qian Qian "Cubik"‎ <[email protected]>
  • Loading branch information
Cubik65536 committed Jan 11, 2024
1 parent 842d773 commit dfb716b
Show file tree
Hide file tree
Showing 4 changed files with 11,764 additions and 2,987 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.idea/
node_modules/
dist/
coverage/

.vercel

Expand Down
9 changes: 9 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = {
roots: ["<rootDir>", "<rootDir>/test/"],
transform: {
"^.+\\.tsx?$": "ts-jest",
},
testRegex: "(/__tests__/.*|\\.(test|spec))\\.[tj]sx?$",
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
testEnvironment: "node",
};
Loading

0 comments on commit dfb716b

Please sign in to comment.