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.

19 lines
572 B

  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: [
  16. '<rootDir>/components/**/*.vue',
  17. '<rootDir>/pages/**/*.vue'
  18. ]
  19. }