mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-17 05:02:23 +08:00
Fix jest
This commit is contained in:
parent
74475b9d66
commit
c4e468a558
@ -25,7 +25,7 @@ module.exports = {
|
||||
'^.+\\.(ts|html)$': '<rootDir>/node_modules/jest-preset-angular/preprocessor.js',
|
||||
'.*\\.(vue)$': '<rootDir>/node_modules/jest-vue-preprocessor',
|
||||
},
|
||||
testPathIgnorePatterns: ['/node_modules/', 'addon-jest.test.js', '/cli/test/'],
|
||||
testPathIgnorePatterns: ['/node_modules/', '/dist/', 'addon-jest.test.js', '/cli/test/'],
|
||||
collectCoverage: false,
|
||||
collectCoverageFrom: [
|
||||
'app/**/*.{js,jsx}',
|
||||
|
@ -7,8 +7,9 @@ function getCommand(watch) {
|
||||
const babel = path.join(__dirname, '..', 'node_modules', '.bin', 'babel');
|
||||
|
||||
const args = [
|
||||
'--ignore **/__mocks__/,**/tests/*,**/__tests__/,**.test.js,**/stories/,**.story.js,**.stories.js,**/__snapshots__',
|
||||
'--ignore **/__mocks__/,**/tests/*,**/__tests__/,**/**.test.js,**/stories/,**/**.story.js,**/**.stories.js,**/__snapshots__',
|
||||
'./src --out-dir ./dist',
|
||||
'--copy-files',
|
||||
`--config-file ${path.resolve(__dirname, '../.babelrc')}`,
|
||||
];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user