Last active
January 27, 2018 11:28
-
-
Save ramon-src/276e0fab37010bb00291543fe86647c1 to your computer and use it in GitHub Desktop.
The main configurations to run npm test with jest
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
{ | |
"_comment": "Many Project INFO goes here...", | |
"scripts": { | |
"_comment": "Many scripts goes here...", | |
"test": "jest" | |
}, | |
"dependencies": { | |
"_comment": "Many dependencies goes here...", | |
}, | |
"devDependencies": { | |
"_comment": "Many dependencies goes here...", | |
}, | |
"jest": { | |
"moduleFileExtensions": [ | |
"js", | |
"json", | |
"vue" | |
], | |
"transform": { | |
".*\\.(vue)$": "<rootDir>/node_modules/vue-jest", | |
"^.+\\.js$": "<rootDir>/node_modules/babel-jest" | |
}, | |
"moduleNameMapper": { | |
"^@/(.*)$": "<rootDir>/src/$1" | |
}, | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment