jest.config.js 592 B

1234567891011121314151617181920212223242526
  1. module.exports = {
  2. "transform": {
  3. "^.+\\.tsx?$": "ts-jest"
  4. },
  5. "transformIgnorePatterns": [
  6. "/node_modules/(?!@cloudbase).+\\.js$"
  7. ],
  8. globals: {
  9. 'ts-jest': {
  10. isolatedModules: true
  11. },
  12. },
  13. "verbose": true,
  14. "testURL": "http://localhost/",
  15. "testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
  16. "moduleFileExtensions": [
  17. "ts",
  18. "tsx",
  19. "js",
  20. "jsx",
  21. "json",
  22. "node"
  23. ],
  24. "testEnvironment": "node",
  25. "setupTestFrameworkScriptFile": "<rootDir>/test/setup.js"
  26. };