You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
monkeyking/packages/application/jest.config.js

23 lines
505 B

const func = require('@jupyterlab/testutils/lib/jest-config');
const upstream = func(__dirname);
const esModules = ['lib0', 'y-protocols'].join('|');
let local = {
preset: 'ts-jest/presets/js-with-babel',
transformIgnorePatterns: [
`/node_modules/(?!${esModules}).+\\.js/(?!(@jupyterlab/.*)/)`,
],
globals: {
'ts-jest': {
tsconfig: './tsconfig.test.json',
},
},
};
Object.keys(local).forEach((option) => {
upstream[option] = local[option];
});
module.exports = upstream;