Skip to content

Commit

Permalink
fix: jest setup
Browse files Browse the repository at this point in the history
  • Loading branch information
201flaviosilva committed Oct 24, 2022
1 parent 5b8a235 commit d15446d
Show file tree
Hide file tree
Showing 5 changed files with 1,157 additions and 44 deletions.
4 changes: 3 additions & 1 deletion jest.config.js
Expand Up @@ -4,6 +4,8 @@
*/

module.exports = {
setupFilesAfterEnv: ["./tests/setup.js"],

// All imported modules in your tests should be mocked automatically
// automock: false,

Expand Down Expand Up @@ -149,7 +151,7 @@ module.exports = {
// snapshotSerializers: [],

// The test environment that will be used for testing
// testEnvironment: "jest-environment-node",
testEnvironment: "jsdom", // "jest-environment-node"

// Options that will be passed to the testEnvironment
// testEnvironmentOptions: {},
Expand Down

0 comments on commit d15446d

Please sign in to comment.