Skip to content

Commit 440c934

Browse files
author
Walker Leite
committed
refactor(jest): split server and client projects
1 parent 575873c commit 440c934

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

template/package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
"vinyl-buffer": "^1.0.0",
7676
"vinyl-source-stream": "^1.1.0",
7777
"vue-jest": "^2.6.0",
78+
"vue-test-utils": "^1.0.0-beta.11",
7879
"vueify": "^9.4.1",
7980
"yargs": "^10.0.3",
8081
"babel-plugin-root-import": "^5.1.0",
@@ -87,6 +88,12 @@
8788
"type": "",
8889
"url": ""
8990
},
91+
"jest": {
92+
"projects": [
93+
"<rootDir>/test/server",
94+
"<rootDir>/test/client"
95+
]
96+
},
9097
"license": "UNLICENSED",
9198
"description": "{{ description }}"{{#extended}},
9299
"extended": true
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = {
2+
moduleFileExtensions: [
3+
'js',
4+
'json',
5+
'vue',
6+
],
7+
transform: {
8+
'^.+\\.js$': 'babel-jest',
9+
'^.+\\.vue$': 'vue-jest',
10+
},
11+
};

template/jest.config.js renamed to template/test/server/jest.config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@ module.exports = {
33
moduleFileExtensions: [
44
'js',
55
'json',
6-
'vue',
76
],
87
transform: {
98
'^.+\\.js$': 'babel-jest',
10-
'^.+\\.vue$': 'vue-jest',
119
},
1210
setupTestFrameworkScriptFile: './jest.plugins.js',
1311
};
File renamed without changes.

0 commit comments

Comments
 (0)