mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
15 lines
485 B
JavaScript
15 lines
485 B
JavaScript
const path = require('path');
|
|
|
|
module.exports = {
|
|
testEnvironment: 'jsdom',
|
|
transform: {
|
|
'^.+\\.jsx?$': ['babel-jest', { rootMode: 'upward' }],
|
|
'^.+\\.jison$': [path.resolve(__dirname, './jison/transformer.js'), { 'token-stack': true }],
|
|
},
|
|
transformIgnorePatterns: ['/node_modules/(?!dagre-d3-renderer/lib).*\\.js'],
|
|
moduleNameMapper: {
|
|
'\\.(css|scss)$': 'identity-obj-proxy',
|
|
},
|
|
moduleFileExtensions: ['js', 'json', 'jsx', 'ts', 'tsx', 'node', 'jison'],
|
|
};
|