Skip to content

Commit

Permalink
Add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
robmosca committed Jul 9, 2023
1 parent dfa2079 commit a1c1b74
Show file tree
Hide file tree
Showing 9 changed files with 5,033 additions and 2,002 deletions.
3 changes: 2 additions & 1 deletion jest.config.cjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/** @type {import('jest').Config} */
const config = {
testEnvironment: "jsdom",
resetMocks: true,
restoreMocks: true,
setupFiles: ["./jest.setup.js"],
testEnvironment: "jsdom",
};

module.exports = config;
1 change: 1 addition & 0 deletions jest.setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require("jest-fetch-mock").enableMocks();
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"jest": "^29.5.0",
"jest-cli": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"jest-fetch-mock": "^3.0.3",
"postcss": "^8.3.5",
"preact": "^10.5.14",
"prettier": "^2.3.2",
Expand Down
Loading

0 comments on commit a1c1b74

Please sign in to comment.