Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module.exports = {
  2.     verbose: true,
  3.     testURL: 'http://localhost/',
  4.     "moduleFileExtensions": [
  5.         "js",
  6.         "json",
  7.         // tell Jest to handle *.vue files
  8.         "vue"
  9.       ],
  10.       "transform": {
  11.         // process js with babel-jest
  12.         "^.+\\.js$": "<rootDir>/node_modules/babel-jest",
  13.         // process *.vue files with vue-jest
  14.         ".*\\.(vue)$": "<rootDir>/node_modules/vue-jest"
  15.       },
  16.       // support the same @ -> src alias mapping in source code
  17.       "moduleNameMapper": {
  18.         "^@/(.*)$": "<rootDir>/src/$1"
  19.       },
  20.       // serializer for snapshots
  21.       "snapshotSerializers": [
  22.         "<rootDir>/node_modules/jest-serializer-vue"
  23.       ]
  24. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement