質問編集履歴
1
追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -38,6 +38,236 @@
|
|
38
38
|
|
39
39
|
|
40
40
|
|
41
|
+
### packagejson
|
42
|
+
|
43
|
+
```
|
44
|
+
|
45
|
+
{
|
46
|
+
|
47
|
+
"name": "name",
|
48
|
+
|
49
|
+
"version": "0.1.0",
|
50
|
+
|
51
|
+
"private": true,
|
52
|
+
|
53
|
+
"scripts": {
|
54
|
+
|
55
|
+
"serve": "vue-cli-service serve",
|
56
|
+
|
57
|
+
"build": "vue-cli-service build",
|
58
|
+
|
59
|
+
"lint": "vue-cli-service lint",
|
60
|
+
|
61
|
+
"test:unit": "vue-cli-service test:unit"
|
62
|
+
|
63
|
+
},
|
64
|
+
|
65
|
+
"dependencies": {
|
66
|
+
|
67
|
+
"axios": "^0.19.0",
|
68
|
+
|
69
|
+
"core-js": "^2.6.5",
|
70
|
+
|
71
|
+
"vue": "^2.6.10",
|
72
|
+
|
73
|
+
"vue-router": "^3.0.3",
|
74
|
+
|
75
|
+
"vuetify": "^2.1.0",
|
76
|
+
|
77
|
+
"vuex": "^3.0.1"
|
78
|
+
|
79
|
+
},
|
80
|
+
|
81
|
+
"devDependencies": {
|
82
|
+
|
83
|
+
"@vue/cli-plugin-babel": "^3.8.0",
|
84
|
+
|
85
|
+
"@vue/cli-plugin-eslint": "^3.8.0",
|
86
|
+
|
87
|
+
"@vue/cli-plugin-unit-jest": "^3.8.0",
|
88
|
+
|
89
|
+
"@vue/cli-service": "^3.8.0",
|
90
|
+
|
91
|
+
"@vue/eslint-config-airbnb": "^4.0.0",
|
92
|
+
|
93
|
+
"@vue/test-utils": "1.0.0-beta.29",
|
94
|
+
|
95
|
+
"babel-core": "7.0.0-bridge.0",
|
96
|
+
|
97
|
+
"babel-eslint": "^10.0.1",
|
98
|
+
|
99
|
+
"babel-jest": "^23.6.0",
|
100
|
+
|
101
|
+
"eslint": "^5.16.0",
|
102
|
+
|
103
|
+
"eslint-config-prettier": "^6.0.0",
|
104
|
+
|
105
|
+
"eslint-plugin-prettier": "^3.1.0",
|
106
|
+
|
107
|
+
"eslint-plugin-vue": "^5.0.0",
|
108
|
+
|
109
|
+
"node-sass": "^4.13.0",
|
110
|
+
|
111
|
+
"prettier": "^1.18.2",
|
112
|
+
|
113
|
+
"sass": "^1.19.0",
|
114
|
+
|
115
|
+
"sass-loader": "^8.0.0",
|
116
|
+
|
117
|
+
"vue-cli-plugin-vuetify": "^2.0.2",
|
118
|
+
|
119
|
+
"vue-template-compiler": "^2.6.10",
|
120
|
+
|
121
|
+
"vuetify-loader": "^1.3.0"
|
122
|
+
|
123
|
+
},
|
124
|
+
|
125
|
+
"eslintConfig": {
|
126
|
+
|
127
|
+
"root": true,
|
128
|
+
|
129
|
+
"env": {
|
130
|
+
|
131
|
+
"node": true
|
132
|
+
|
133
|
+
},
|
134
|
+
|
135
|
+
"extends": [
|
136
|
+
|
137
|
+
"plugin:vue/essential",
|
138
|
+
|
139
|
+
"@vue/airbnb"
|
140
|
+
|
141
|
+
],
|
142
|
+
|
143
|
+
"rules": {},
|
144
|
+
|
145
|
+
"parserOptions": {
|
146
|
+
|
147
|
+
"parser": "babel-eslint"
|
148
|
+
|
149
|
+
}
|
150
|
+
|
151
|
+
},
|
152
|
+
|
153
|
+
"postcss": {
|
154
|
+
|
155
|
+
"plugins": {
|
156
|
+
|
157
|
+
"autoprefixer": {}
|
158
|
+
|
159
|
+
}
|
160
|
+
|
161
|
+
},
|
162
|
+
|
163
|
+
"browserslist": [
|
164
|
+
|
165
|
+
"> 1%",
|
166
|
+
|
167
|
+
"last 2 versions"
|
168
|
+
|
169
|
+
],
|
170
|
+
|
171
|
+
"jest": {
|
172
|
+
|
173
|
+
"moduleFileExtensions": [
|
174
|
+
|
175
|
+
"js",
|
176
|
+
|
177
|
+
"jsx",
|
178
|
+
|
179
|
+
"json",
|
180
|
+
|
181
|
+
"vue"
|
182
|
+
|
183
|
+
],
|
184
|
+
|
185
|
+
"transform": {
|
186
|
+
|
187
|
+
"^.+\.vue$": "vue-jest",
|
188
|
+
|
189
|
+
".+\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$": "jest-transform-stub",
|
190
|
+
|
191
|
+
"^.+\.jsx?$": "babel-jest"
|
192
|
+
|
193
|
+
},
|
194
|
+
|
195
|
+
"transformIgnorePatterns": [
|
196
|
+
|
197
|
+
"/node_modules/"
|
198
|
+
|
199
|
+
],
|
200
|
+
|
201
|
+
"moduleNameMapper": {
|
202
|
+
|
203
|
+
"^@/(.*)$": "<rootDir>/src/$1"
|
204
|
+
|
205
|
+
},
|
206
|
+
|
207
|
+
"snapshotSerializers": [
|
208
|
+
|
209
|
+
"jest-serializer-vue"
|
210
|
+
|
211
|
+
],
|
212
|
+
|
213
|
+
"testMatch": [
|
214
|
+
|
215
|
+
"**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)"
|
216
|
+
|
217
|
+
],
|
218
|
+
|
219
|
+
"testURL": "http://localhost/",
|
220
|
+
|
221
|
+
"watchPlugins": [
|
222
|
+
|
223
|
+
"jest-watch-typeahead/filename",
|
224
|
+
|
225
|
+
"jest-watch-typeahead/testname"
|
226
|
+
|
227
|
+
]
|
228
|
+
|
229
|
+
}
|
230
|
+
|
231
|
+
}
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
```
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
### vue.config.js
|
240
|
+
|
241
|
+
```
|
242
|
+
|
243
|
+
module.exports = {
|
244
|
+
|
245
|
+
css: {
|
246
|
+
|
247
|
+
loaderOptions: {
|
248
|
+
|
249
|
+
sass: {
|
250
|
+
|
251
|
+
data: "@import '@/assets/scss/style.scss';",
|
252
|
+
|
253
|
+
},
|
254
|
+
|
255
|
+
},
|
256
|
+
|
257
|
+
},
|
258
|
+
|
259
|
+
transpileDependencies: [
|
260
|
+
|
261
|
+
'vuetify',
|
262
|
+
|
263
|
+
],
|
264
|
+
|
265
|
+
};
|
266
|
+
|
267
|
+
```
|
268
|
+
|
269
|
+
|
270
|
+
|
41
271
|
何が根本的な原因になるでしょうか??
|
42
272
|
|
43
273
|
|