0.0.1 • Published 6 years ago
vue-preprocessor v0.0.1
vue-preprocessor
A Jest preprocessor to load .vue files in tests.
Installation
add package you your project
yarn add --dev vue-preprocessorornpm install --saveDev vue-preprocessor
modify your jest config transform properties:
"jest": { "moduleFileExtensions": [ "js", "vue" ], "transform": { "^.+\\.js$": "<rootDir>/node_modules/babel-jest", "^.+\\.vue$": "<rootDir>/node_modules/vue-preprocessor" } }Start writing test that can import
*.vuecomponents.- Cover your files!