mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
24 lines
631 B
JavaScript
24 lines
631 B
JavaScript
module.exports = {
|
|
verbose: true,
|
|
testEnvironment: 'jsdom',
|
|
setupFiles: ['./tests/setup.js'],
|
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
|
|
testPathIgnorePatterns: ['/dist/', '/lib/'],
|
|
transform: {
|
|
'^.+\\.[jt]sx?$': ['babel-jest', { configFile: './tests/.babelrc.js' }],
|
|
},
|
|
testRegex: '.*\\.test\\.(j|t)sx?$',
|
|
collectCoverageFrom: [
|
|
'src/**/*.{ts,tsx}',
|
|
'!src/**/styles.{ts,tsx}',
|
|
'!src/**/*stories.{ts,tsx}',
|
|
'!src/**/*types.{ts,tsx}',
|
|
'!src/styles/*',
|
|
'!src/index.ts',
|
|
],
|
|
moduleNameMapper: {
|
|
'tests/(.*)$': '<rootDir>/tests/$1',
|
|
components: './src/index.ts',
|
|
},
|
|
};
|