mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-20 05:02:37 +08:00
17 lines
429 B
JavaScript
17 lines
429 B
JavaScript
const config = require('../../jest.config');
|
|
|
|
module.exports = {
|
|
...config,
|
|
roots: [__dirname],
|
|
moduleNameMapper: {
|
|
...config.moduleNameMapper,
|
|
'^riot$': 'riot/riot',
|
|
},
|
|
transform: {
|
|
...config.transform,
|
|
'^.+\\.(tag)$': '<rootDir>/node_modules/riot-jest-transformer',
|
|
'^.+\\.(txt)$': '<rootDir>/node_modules/jest-raw-loader',
|
|
},
|
|
moduleFileExtensions: [...config.moduleFileExtensions, 'tag'],
|
|
};
|