File tree Expand file tree Collapse file tree 5 files changed +39
-46
lines changed
Expand file tree Collapse file tree 5 files changed +39
-46
lines changed Original file line number Diff line number Diff line change @@ -477,6 +477,12 @@ https://docs.npmjs.com/getting-started/updating-local-packages
477477
478478## Testing
479479
480+ #### Jest
481+
482+ https://facebook.github.io/jest/
483+
484+ Intro-Blogpost: https://blog.codecentric.de/2017/06/javascript-unit-tests-sind-schwer-aufzusetzen-keep-calm-use-jest/
485+
480486#### E2E tests with Nightwatch
481487
482488http://nightwatchjs.org/
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ const path = require ( 'path' )
2+
3+ module . exports = {
4+ rootDir : path . resolve ( __dirname , '../../' ) ,
5+ moduleFileExtensions : [
6+ 'js' ,
7+ 'json' ,
8+ 'vue'
9+ ] ,
10+ moduleNameMapper : {
11+ '^@/(.*)$' : '<rootDir>/src/$1'
12+ } ,
13+ transform : {
14+ '^.+\\.js$' : '<rootDir>/node_modules/babel-jest' ,
15+ '.*\\.(vue)$' : '<rootDir>/node_modules/vue-jest'
16+ } ,
17+ testPathIgnorePatterns : [
18+ '<rootDir>/test/e2e'
19+ ] ,
20+ snapshotSerializers : [ '<rootDir>/node_modules/jest-serializer-vue' ] ,
21+ setupFiles : [ '<rootDir>/test/unit/setup' ] ,
22+ mapCoverage : true ,
23+ coverageDirectory : '<rootDir>/test/unit/coverage' ,
24+ collectCoverageFrom : [
25+ 'src/**/*.{js,vue}' ,
26+ '!src/main.js' ,
27+ '!src/router/index.js' ,
28+ '!**/node_modules/**'
29+ ]
30+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ import Vue from 'vue'
2+
3+ Vue . config . productionTip = false
You can’t perform that action at this time.
0 commit comments