File tree 2 files changed +10
-9
lines changed
2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export default async function () {
18
18
await setRegistry ( false ) ;
19
19
await createProjectFromAsset ( '13.0-project' , true ) ;
20
20
21
- // A missing stylesheet error will trigger the stuck process issue with v12 when building
21
+ // A missing stylesheet error will trigger the stuck process issue with v13 when building
22
22
await moveFile ( 'src/styles.css' , 'src/styles.scss' ) ;
23
23
await expectToFail ( ( ) => noSilentNg ( 'build' ) ) ;
24
24
Original file line number Diff line number Diff line change @@ -191,17 +191,18 @@ export async function useCIChrome(projectDir: string = ''): Promise<void> {
191
191
const karmaConf = path . join ( projectDir , 'karma.conf.js' ) ;
192
192
193
193
const chromePath = require ( 'puppeteer' ) . executablePath ( ) ;
194
- const protractorPath = require . resolve ( 'protractor' ) ;
195
- const webdriverUpdatePath = require . resolve ( 'webdriver-manager/selenium/update-config.json' , {
196
- paths : [ protractorPath ] ,
197
- } ) ;
198
- const webdriverUpdate = JSON . parse ( await readFile ( webdriverUpdatePath ) ) as {
199
- chrome : { last : string } ;
200
- } ;
201
- const chromeDriverPath = webdriverUpdate . chrome . last ;
202
194
203
195
// Use Puppeteer in protractor if a config is found on the project.
204
196
if ( fs . existsSync ( protractorConf ) ) {
197
+ const protractorPath = require . resolve ( 'protractor' ) ;
198
+ const webdriverUpdatePath = require . resolve ( 'webdriver-manager/selenium/update-config.json' , {
199
+ paths : [ protractorPath ] ,
200
+ } ) ;
201
+ const webdriverUpdate = JSON . parse ( await readFile ( webdriverUpdatePath ) ) as {
202
+ chrome : { last : string } ;
203
+ } ;
204
+ const chromeDriverPath = webdriverUpdate . chrome . last ;
205
+
205
206
await replaceInFile (
206
207
protractorConf ,
207
208
`browserName: 'chrome'` ,
You can’t perform that action at this time.
0 commit comments