forked from blackjk3/react-signature-pad
-
-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(refactor): move tests to test/, test-utils/ to test/config/
- have been putting tests separately from source nowadays in other of my libraries, so standardize around that - put fixtures just in test/ (later could be in test/fixtures/), leave config/ solely for test config type things
- Loading branch information
Showing
7 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
module.exports = { | ||
moduleNameMapper: { | ||
// allow importing of Jest as an ES Module (https://github.com/facebook/jest/pull/7571#issuecomment-498634094) | ||
'^jest$': '<rootDir>/test-utils/jest-export.js' | ||
'^jest$': '<rootDir>/test/config/jest-export.js' | ||
}, | ||
setupFilesAfterEnv: [ | ||
// configure enzyme w/ react adapter | ||
'<rootDir>/test-utils/configure-enzyme.js', | ||
'<rootDir>/test/config/configure-enzyme.js', | ||
// polyfill window.resizeTo | ||
'<rootDir>/test-utils/window-resizeTo.js' | ||
'<rootDir>/test/config/window-resizeTo.js' | ||
], | ||
transform: { | ||
// use babel-jest@23 for babel@6 support (https://github.com/facebook/jest/issues/8230#issuecomment-479470547) | ||
'\\.js$': require.resolve('babel-jest') | ||
}, | ||
coveragePathIgnorePatterns: [ | ||
'/node_modules/', // default | ||
'<rootDir>/test-utils/' // ignore test-utils | ||
'<rootDir>/test/' // ignore any test helper files | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters