mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-21 05:02:39 +08:00
18 lines
569 B
JavaScript
18 lines
569 B
JavaScript
const config = require('../../jest.config');
|
|
|
|
module.exports = {
|
|
preset: 'jest-preset-angular',
|
|
...config,
|
|
globals: {
|
|
__TRANSFORM_HTML__: true,
|
|
},
|
|
roots: [__dirname],
|
|
transform: {
|
|
'^.+\\.jsx?$': '<rootDir>/scripts/babel-jest.js',
|
|
'^.+[/\\\\].storybook[/\\\\]config\\.ts$': '<rootDir>/scripts/jest-ts-babel.js',
|
|
'^.+\\.html$': '<rootDir>/node_modules/jest-preset-angular/preprocessor.js',
|
|
'^.+\\.ts$': '<rootDir>/node_modules/jest-preset-angular/preprocessor.js',
|
|
},
|
|
moduleFileExtensions: [...config.moduleFileExtensions, 'html'],
|
|
};
|