mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-09 03:50:45 +08:00
23 lines
498 B
JavaScript
23 lines
498 B
JavaScript
const func = require('@jupyterlab/testutils/lib/jest-config');
|
|
const upstream = func(__dirname);
|
|
|
|
let local = {
|
|
preset: 'ts-jest/presets/js-with-babel',
|
|
transformIgnorePatterns: ['/node_modules/(?!(@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;
|