File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
cli-plugin-e2e-webdriverio/migrator
cli-plugin-typescript/generator/template Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 11module . exports = ( api ) => {
22 if ( api . fromVersion ( '<= 5.0.0-alpha.4' ) ) {
3- api . render ( files => {
3+ api . render ( ( files ) => {
44 if ( ! files [ 'tsconfig.json' ] ) {
55 return
66 }
77
8- files [ 'tsconfig.json' ] = files [ 'tsconfig.json' ] . replace ( '"@wdio/sync"' , '"webdriverio/sync"' )
8+ files [ 'tsconfig.json' ] = files [ 'tsconfig.json' ] . replace (
9+ '"@wdio/sync"' ,
10+ '"webdriverio/sync"'
11+ )
12+ if ( ! / " e x p e c t - w e b d r i v e r i o " / . test ( files [ 'tsconfig.json' ] ) ) {
13+ files [ 'tsconfig.json' ] = files [ 'tsconfig.json' ] . replace (
14+ '"@wdio/mocha-framework",' ,
15+ '"@wdio/mocha-framework",\n "expect-webdriverio",'
16+ )
17+ }
918 } )
1019 }
1120}
Original file line number Diff line number Diff line change 2525 <%_ if (hasWebDriverIO) { _%>
2626 <% if (!hasMocha && !hasJest) { %> "mocha" ,<% } %>
2727 " @wdio/mocha-framework" ,
28+ " expect-webdriverio" ,
2829 " webdriverio/sync" <% if (hasMocha || hasJest) { %>,<% } %>
2930 <%_ } _%>
3031 <%_ if (hasMocha) { _%>
You can’t perform that action at this time.
0 commit comments