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