Website for showcasing all features of Tesseract Web.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

22 line
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. };