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.

16 lines
560 B

2 years ago
2 years ago
  1. module.exports = {
  2. moduleNameMapper: {
  3. '^@/(.*)$': '<rootDir>/$1',
  4. '^~/(.*)$': '<rootDir>/$1',
  5. '^vue$': 'vue/dist/vue.common.js',
  6. '^.+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub'
  7. },
  8. moduleFileExtensions: ['js', 'vue', 'json'],
  9. transform: {
  10. '^.+\\.js$': 'babel-jest',
  11. '.*\\.(vue)$': 'vue-jest',
  12. '^.+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub'
  13. },
  14. collectCoverage: true,
  15. collectCoverageFrom: ['<rootDir>/components/**/*.vue', '<rootDir>/pages/**/*.vue']
  16. }