Skip to content

Instantly share code, notes, and snippets.

@achhunna
Created May 4, 2019 19:30
Show Gist options
  • Save achhunna/93c7a560fcfacf39245553de1bdb8b5d to your computer and use it in GitHub Desktop.
Save achhunna/93c7a560fcfacf39245553de1bdb8b5d to your computer and use it in GitHub Desktop.
Jest config file
module.exports = {
verbose: true,
moduleFileExtensions: [
"js",
"json",
"vue"
],
transform: {
".*\\.(vue)$": "vue-jest",
"^.+\\.js$": "<rootDir>/node_modules/babel-jest"
},
collectCoverage: true,
collectCoverageFrom: [
"src/components/*.{js,vue}",
"!**/node_modules/**"
],
coverageReporters: [
"html",
"text-summary"
],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment