mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-09 03:50:45 +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
29 lines
673 B
JavaScript
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;
|