-
Notifications
You must be signed in to change notification settings - Fork 739
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* base test * fix: setupEnzyme.ts path * remove dep on ts-jest * bump snap * bump snap + remove @types deps * updated package.json * borrow yarn.lock * working * fix base tests * add test with tabs * test setup * remove lints * recover localDevIndex from master
- Loading branch information
1 parent
62ecfdb
commit d0af123
Showing
8 changed files
with
929 additions
and
9 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
module.exports = { | ||
roots: ['<rootDir>/src'], | ||
transform: { | ||
'^.+\\.css$': '<rootDir>/config/jest/cssTransform.js', | ||
'^.+\\.tsx?$': '<rootDir>/config/jest/typescriptTransform.js', | ||
'^(?!.*\\.(css|json)$)': '<rootDir>/config/jest/fileTransform.js', | ||
}, | ||
transformIgnorePatterns: ['[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$'], | ||
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$', | ||
testPathIgnorePatterns: ['<rootDir>[/\\\\](build|docs|node_modules)[/\\\\]'], | ||
testEnvironment: 'jsdom', | ||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], | ||
snapshotSerializers: ['enzyme-to-json/serializer'], | ||
setupTestFrameworkScriptFile: '<rootDir>/src/setupEnzyme.ts', | ||
globals: { | ||
'ts-jest': { | ||
tsConfigFile: 'tsconfig.jest.json', | ||
}, | ||
}, | ||
setupFiles: ['<rootDir>/config/polyfills.js', 'jest-localstorage-mock'], | ||
} |
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
Oops, something went wrong.