File tree 2 files changed +12
-2
lines changed
cli-plugin-e2e-webdriverio/migrator
cli-plugin-typescript/generator/template
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 1
1
module . exports = ( api ) => {
2
2
if ( api . fromVersion ( '<= 5.0.0-alpha.4' ) ) {
3
- api . render ( files => {
3
+ api . render ( ( files ) => {
4
4
if ( ! files [ 'tsconfig.json' ] ) {
5
5
return
6
6
}
7
7
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
+ }
9
18
} )
10
19
}
11
20
}
Original file line number Diff line number Diff line change 25
25
<%_ if (hasWebDriverIO) { _%>
26
26
<% if (!hasMocha && !hasJest) { %> "mocha" ,<% } %>
27
27
" @wdio/mocha-framework" ,
28
+ " expect-webdriverio" ,
28
29
" webdriverio/sync" <% if (hasMocha || hasJest) { %>,<% } %>
29
30
<%_ } _%>
30
31
<%_ if (hasMocha) { _%>
You can’t perform that action at this time.
0 commit comments