Skip to content

Instantly share code, notes, and snippets.

@johnsardine
Created November 16, 2017 23:10
Show Gist options
  • Save johnsardine/c4a0aaab5e60b167e7af525be539ce35 to your computer and use it in GitHub Desktop.
Save johnsardine/c4a0aaab5e60b167e7af525be539ce35 to your computer and use it in GitHub Desktop.
7 - Transforms example
module.exports = {
rootDir: './webapp',
moduleFileExtensions: ['vue', 'js', 'json', 'jsx', 'node'],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>src/$1',
},
mapCoverage: true,
transform: {
'^.+\\.jsx?$': 'babel-jest',
'^.*\\.(vue)$': 'jest-vue',
},
mapCoverage: true,
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment