storybook/examples/angular-cli/jest.config.js

18 lines
569 B
JavaScript
Raw Normal View History

const config = require('../../jest.config');
module.exports = {
2019-04-25 22:54:53 +02:00
preset: 'jest-preset-angular',
...config,
globals: {
__TRANSFORM_HTML__: true,
},
roots: [__dirname],
transform: {
2018-12-16 12:12:26 +02:00
'^.+\\.jsx?$': '<rootDir>/scripts/babel-jest.js',
'^.+[/\\\\].storybook[/\\\\]config\\.ts$': '<rootDir>/scripts/jest-ts-babel.js',
2019-04-25 22:54:53 +02:00
'^.+\\.html$': '<rootDir>/node_modules/jest-preset-angular/preprocessor.js',
'^.+\\.ts$': '<rootDir>/node_modules/jest-preset-angular/preprocessor.js',
},
2018-12-16 12:12:26 +02:00
moduleFileExtensions: [...config.moduleFileExtensions, 'html'],
};