File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed
packages/@vue/cli-plugin-typescript/generator Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 11module . exports = ( api , { tsLint = false , convertJsToTs = true } = { } ) => {
22 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+ }
48 const convertLintFlags = require ( '../lib/convertLintFlags' )
59 api . postProcessFiles ( files => {
610 if ( convertJsToTs ) {
Original file line number Diff line number Diff line change @@ -93,7 +93,8 @@ module.exports = (api, {
9393 api . render ( './template' , {
9494 skipLibCheck,
9595 hasMocha : api . hasPlugin ( 'unit-mocha' ) ,
96- hasJest : api . hasPlugin ( 'unit-jest' )
96+ hasJest : api . hasPlugin ( 'unit-jest' ) ,
97+ hasWebDriverIO : api . hasPlugin ( 'e2e-webdriverio' )
9798 } )
9899
99100 if ( isVue3 ) {
Original file line number Diff line number Diff line change 2020 "sourceMap" : true ,
2121 "baseUrl" : " ." ,
2222 "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+ <%_ } _%>
2428 <%_ if (hasMocha) { _%>
2529 "mocha" ,
2630 "chai"
You can’t perform that action at this time.
0 commit comments