Skip to content

Commit

Permalink
maint(Build): Extend jest.config.js from Patternslib and reuse their …
Browse files Browse the repository at this point in the history
…setupTests file too.
  • Loading branch information
thet committed Jun 8, 2022
1 parent 779af4d commit 6d6e04a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 22 deletions.
14 changes: 1 addition & 13 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1 @@
module.exports = {
rootDir: "./src",
setupFilesAfterEnv: ["<rootDir>/setupTests.js"],
watchPlugins: ["jest-watch-typeahead/filename", "jest-watch-typeahead/testname"],
transform: {
"^.+\\.[t|j]sx?$": "babel-jest",
},
moduleNameMapper: {
"\\.(css|less|sass|scss)$": "identity-obj-proxy",
},
testEnvironment: "jsdom",
transformIgnorePatterns: ["/node_modules/(?!.*patternslib/*).+\\.[t|j]sx?$"],
};
module.exports = require("@patternslib/patternslib/jest.config.js");
9 changes: 0 additions & 9 deletions src/setupTests.js

This file was deleted.

0 comments on commit 6d6e04a

Please sign in to comment.