暫無描述

jest.config.js 505B

12345678910111213141516171819
  1. module.exports = {
  2. coverageDirectory: '<rootDir>/@coverage',
  3. globals: {
  4. 'ts-jest': {
  5. tsConfig: 'tsconfig.test.json'
  6. }
  7. },
  8. moduleFileExtensions: ['js', 'ts', 'tsx'],
  9. moduleNameMapper: {
  10. '\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
  11. './fileMock.js',
  12. '\\.(scss|css|less)$': './styleMock.js'
  13. },
  14. rootDir: '../../',
  15. testRegex: '/__test__/.+\\.(test|spec)\\.tsx?$',
  16. transform: { '^.+\\.tsx?$': 'ts-jest' },
  17. verbose: true
  18. };