Website for showcasing all features of Tesseract Web.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

22 行
538 B

  1. const tsconfig = require('./tsconfig.json');
  2. /** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
  3. module.exports = {
  4. preset: 'ts-jest',
  5. testEnvironment: 'jsdom',
  6. globals: {
  7. 'ts-jest': {
  8. tsconfig: 'tsconfig.test.json',
  9. },
  10. },
  11. moduleNameMapper: Object.fromEntries(
  12. Object
  13. .entries(tsconfig.compilerOptions.paths)
  14. .map(([alias, paths]) => [alias, paths[0].replace('.', '<rootDir>')])
  15. ),
  16. collectCoverageFrom: [
  17. 'src/modules/**/*.{ts,tsx}',
  18. '!src/modules/base-*/**/*.*',
  19. ],
  20. };