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.
23 lines
499 B
23 lines
499 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;
|