Created
November 16, 2017 23:10
-
-
Save johnsardine/c4a0aaab5e60b167e7af525be539ce35 to your computer and use it in GitHub Desktop.
7 - Transforms example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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