jest.config.js 498 B

12345678910111213141516171819202122
  1. const func = require('@jupyterlab/testutils/lib/jest-config');
  2. const upstream = func(__dirname);
  3. let local = {
  4. preset: 'ts-jest/presets/js-with-babel',
  5. transformIgnorePatterns: ['/node_modules/(?!(@jupyterlab/.*)/)'],
  6. globals: {
  7. 'ts-jest': {
  8. tsConfig: './tsconfig.test.json'
  9. }
  10. },
  11. transform: {
  12. '\\.(ts|tsx)?$': 'ts-jest',
  13. '\\.svg$': 'jest-raw-loader'
  14. }
  15. };
  16. Object.keys(local).forEach(option => {
  17. upstream[option] = local[option];
  18. });
  19. module.exports = upstream;