mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
2fd0b7f83b
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Yash-Singh1 <saiansh2525@gmail.com>
18 lines
515 B
JavaScript
18 lines
515 B
JavaScript
const path = require('path');
|
|
|
|
module.exports = {
|
|
testEnvironment: 'jsdom',
|
|
transform: {
|
|
'^.+\\.jsx?$': ['babel-jest', { rootMode: 'upward' }],
|
|
'^.+\\.jison$': [
|
|
path.resolve(__dirname, './src/jison/transformer.js'),
|
|
{ 'token-stack': true },
|
|
],
|
|
},
|
|
transformIgnorePatterns: ['/node_modules/(?!dagre-d3-renderer/lib|khroma).*\\.js'],
|
|
moduleNameMapper: {
|
|
'\\.(css|scss)$': 'identity-obj-proxy',
|
|
},
|
|
moduleFileExtensions: ['js', 'json', 'jsx', 'ts', 'tsx', 'node', 'jison'],
|
|
};
|