storybook/examples/angular-cli/jest.addon-config.js
Igor aed1a75a3e Merge pull request #4706 from storybooks/node-path-loading-fix
Fix NODE_PATH is not being loaded from .env
2018-11-13 18:47:56 +08:00

14 lines
591 B
JavaScript

module.exports = {
coveragePathIgnorePatterns: ['/jest-config/', '/node_modules/'],
preset: 'jest-preset-angular',
setupTestFrameworkScriptFile: './jest-config/setup.ts',
snapshotSerializers: [
'<rootDir>/../../node_modules/jest-preset-angular/AngularSnapshotSerializer.js',
'<rootDir>/../../node_modules/jest-preset-angular/HTMLCommentSerializer.js',
],
testPathIgnorePatterns: ['/node_modules/', '/storybook-static/', 'angularshots.test.js', 'dist'],
transform: {
'^.+\\.(ts|js|html)$': '<rootDir>/../../node_modules/jest-preset-angular/preprocessor.js',
},
};