2019-09-18 18:37:53 +02:00
|
|
|
const path = require('path');
|
2019-08-03 15:05:43 -07:00
|
|
|
|
2019-05-30 19:31:41 +02:00
|
|
|
module.exports = {
|
2021-07-15 10:14:35 +02:00
|
|
|
testEnvironment:"jsdom",
|
2019-05-30 19:31:41 +02:00
|
|
|
transform: {
|
2019-08-03 15:05:43 -07:00
|
|
|
'^.+\\.jsx?$': './transformer.js',
|
|
|
|
'^.+\\.jison$': path.resolve(__dirname, './jisonTransformer.js')
|
2019-05-30 19:31:41 +02:00
|
|
|
},
|
|
|
|
transformIgnorePatterns: ['/node_modules/(?!dagre-d3-renderer/lib).*\\.js'],
|
|
|
|
moduleNameMapper: {
|
|
|
|
'\\.(css|scss)$': 'identity-obj-proxy'
|
2019-08-03 15:05:43 -07:00
|
|
|
},
|
|
|
|
moduleFileExtensions: ['js', 'json', 'jsx', 'ts', 'tsx', 'node', 'jison']
|
2019-09-18 18:37:53 +02:00
|
|
|
};
|