notebook/app/jest.config.js
Jeremy Tuloup a47da616ab
Update to the 3.1.0-alpha.x upstream packages (#127)
* Update packages

* Update Binder

* Add collaborative

* Update to alpha packages

* Integrity

* Add labextension to prettierignore

* Update jest config

* Move file browser lab plugins to a separate file

* Cleanup tree extension

* Fix file editor factory in the edit view

* Integrity

* Fix plugin name
2021-05-20 17:19:55 +02:00

29 lines
673 B
JavaScript

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