Skip to content

Commit

Permalink
fix: jest tests outside src directory no longer run (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamturns authored Apr 10, 2019
1 parent 949c4f6 commit 8a3d0ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module.exports = {
collectCoverageFrom: ["src/**/*.{js,jsx,ts,tsx}", "!src/**/*.d.ts"],
roots: ["<rootDir>/src/"],
testEnvironment: "node",
testPathIgnorePatterns: ["/dist/", "/examples/", "/node_modules/"],
}
1 change: 1 addition & 0 deletions templates/jest.config.js.template
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module.exports = {
collectCoverageFrom: ["src/**/*.{js,jsx,ts,tsx}", "!src/**/*.d.ts"],
roots: ["<rootDir>/src/"],
<%_ if (side === 'server') { _%>
testEnvironment: "node",
<%_ } else { _%>
Expand Down

0 comments on commit 8a3d0ed

Please sign in to comment.