File tree 3 files changed +12
-3
lines changed
packages/@vue/cli-plugin-typescript/generator
3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 1
1
module . exports = ( api , { tsLint = false , convertJsToTs = true } = { } ) => {
2
2
const jsRE = / \. j s $ /
3
- const excludeRE = / ^ t e s t s \/ e 2 e \/ | ( \. c o n f i g | r c ) \. j s $ /
3
+ let excludeRE = / ^ t e s t s \/ e 2 e \/ | ( \. c o n f i g | r c ) \. j s $ /
4
+
5
+ if ( api . hasPlugin ( 'e2e-webdriverio' ) ) {
6
+ excludeRE = / ( \. c o n f i g | r c ) \. j s $ /
7
+ }
4
8
const convertLintFlags = require ( '../lib/convertLintFlags' )
5
9
api . postProcessFiles ( files => {
6
10
if ( convertJsToTs ) {
Original file line number Diff line number Diff line change @@ -93,7 +93,8 @@ module.exports = (api, {
93
93
api . render ( './template' , {
94
94
skipLibCheck,
95
95
hasMocha : api . hasPlugin ( 'unit-mocha' ) ,
96
- hasJest : api . hasPlugin ( 'unit-jest' )
96
+ hasJest : api . hasPlugin ( 'unit-jest' ) ,
97
+ hasWebDriverIO : api . hasPlugin ( 'e2e-webdriverio' )
97
98
} )
98
99
99
100
if ( isVue3 ) {
Original file line number Diff line number Diff line change 20
20
"sourceMap" : true ,
21
21
"baseUrl" : " ." ,
22
22
"types" : [
23
- " webpack-env" <% if (hasMocha || hasJest) { %>,<% } %>
23
+ " webpack-env" <% if (hasMocha || hasJest || hasWebDriverIO) { %>,<% } %>
24
+ <%_ if (hasWebDriverIO) { _%>
25
+ "@wdio/mocha-framework" ,
26
+ "@wdio/sync" <% if (hasMocha || hasJest) { %>,<% } %>
27
+ <%_ } _%>
24
28
<%_ if (hasMocha) { _%>
25
29
"mocha" ,
26
30
"chai"
You can’t perform that action at this time.
0 commit comments