Skip to content

Commit

Permalink
include jest config file for botonic-core
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelfidalgo committed Jan 11, 2021
1 parent a76cfd5 commit f9db662
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions packages/botonic-core/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Options about JS are for compiling @botonic .js/jsx files
module.exports = {
roots: ['src/'],
testRegex: '(/tests/.*|(\\.|/)(test|spec))\\.(js|jsx)$',
testPathIgnorePatterns: [
'lib',
'.*.d.ts',
'tests/helpers',
'.*.helper.js',
'tests/__mocks__',
],
collectCoverageFrom: ['src/**/*.{js,jsx,ts,tsx}', '!/node_modules/'],
transformIgnorePatterns: [
'node_modules/(?!@botonic|react-children-utilities).+\\.(js|jsx)$',
],
moduleFileExtensions: ['js', 'jsx', 'json'],
snapshotSerializers: [],
modulePaths: ['node_modules', 'src'],
moduleNameMapper: {
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
'<rootDir>/tests/__mocks__/file-mock.js',
'\\.(css|less|scss|sass)$': 'identity-obj-proxy',
},
}

0 comments on commit f9db662

Please sign in to comment.