mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-15 04:00:34 +08:00
a47da616ab
* 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
27 lines
584 B
JavaScript
27 lines
584 B
JavaScript
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'
|
|
}
|
|
},
|
|
transform: {
|
|
'\\.(ts|tsx)?$': 'ts-jest',
|
|
'\\.svg$': 'jest-raw-loader'
|
|
}
|
|
};
|
|
|
|
Object.keys(local).forEach(option => {
|
|
upstream[option] = local[option];
|
|
});
|
|
|
|
module.exports = upstream;
|