jest.config.js 430 B

123456789101112131415
  1. module.exports = {
  2. transform: {
  3. '^.+\\.tsx?$': 'ts-jest'
  4. },
  5. setupTestFrameworkScriptFile: '@jupyterlab/testutils/lib/jestScript.js',
  6. testRegex: '(/tests/.*|(\\.|/)(test|spec))\\.tsx?$',
  7. testPathIgnorePatterns: ['/lib/', '/node_modules/'],
  8. collectCoverage: true,
  9. moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
  10. globals: {
  11. 'ts-jest': {
  12. tsConfigFile: `test/tsconfig.json`
  13. }
  14. }
  15. };