12345678910111213141516171819202122 |
- 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;
|