mermaid/jest.config.js

18 lines
508 B
JavaScript
Raw Normal View History

const path = require('path');
module.exports = {
2022-02-10 20:32:21 +01:00
testEnvironment: 'jsdom',
transform: {
2022-02-10 20:32:21 +01:00
'^.+\\.jsx?$': ['babel-jest', { rootMode: 'upward' }],
'^.+\\.jison$': [
path.resolve(__dirname, './src/jison/transformer.js'),
{ 'token-stack': true },
],
},
transformIgnorePatterns: ['/node_modules/(?!dagre-d3-renderer/lib).*\\.js'],
moduleNameMapper: {
2022-02-10 20:32:21 +01:00
'\\.(css|scss)$': 'identity-obj-proxy',
},
2022-02-10 20:32:21 +01:00
moduleFileExtensions: ['js', 'json', 'jsx', 'ts', 'tsx', 'node', 'jison'],
};