Skip to content

Commit

Permalink
updated jest config to run tests only with .test.js extension
Browse files Browse the repository at this point in the history
  • Loading branch information
akiran committed Feb 9, 2024
1 parent cf31307 commit 372349a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
module.exports = {
testEnvironment: "jsdom",
setupFilesAfterEnv: ["<rootDir>/test-setup.js"]
setupFilesAfterEnv: ["<rootDir>/test-setup.js"],
// testMatch: [ "**/__tests__/**/*.[jt]s?(x)", "**/?(*.)+(spec|test).[jt]s?(x)" ]
testMatch: ["**/?(*.)+(test).[jt]s?(x)"]
};

0 comments on commit 372349a

Please sign in to comment.