mermaid/jest.config.js
dependabot[bot] 5b1f574167 Bump webpack from 4.46.0 to 5.53.0
Bumps [webpack](https://github.com/webpack/webpack) from 4.46.0 to 5.53.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v4.46.0...v5.53.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-21 10:25:25 +02:00

15 lines
457 B
JavaScript

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