Skip to content

Instantly share code, notes, and snippets.

@leejh3224
Last active December 25, 2018 06:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leejh3224/3aa29c418710266dfc309ac90e57748a to your computer and use it in GitHub Desktop.
Save leejh3224/3aa29c418710266dfc309ac90e57748a to your computer and use it in GitHub Desktop.
// this config includes typescript specific settings
// and if you're not using typescript, you should remove `transform` property
module.exports = {
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
testRegex: 'src(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$',
testPathIgnorePatterns: ['lib/', 'node_modules/'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
testEnvironment: 'node',
rootDir: 'src',
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment