File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Expand file tree Collapse file tree 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 @@ -177,17 +177,18 @@ export async function useCIChrome(projectDir: string = ''): Promise<void> {
177
177
const karmaConf = path . join ( projectDir , 'karma.conf.js' ) ;
178
178
179
179
const chromePath = require ( 'puppeteer' ) . executablePath ( ) ;
180
- const protractorPath = require . resolve ( 'protractor' ) ;
181
- const webdriverUpdatePath = require . resolve ( 'webdriver-manager/selenium/update-config.json' , {
182
- paths : [ protractorPath ] ,
183
- } ) ;
184
- const webdriverUpdate = JSON . parse ( await readFile ( webdriverUpdatePath ) ) as {
185
- chrome : { last : string } ;
186
- } ;
187
- const chromeDriverPath = webdriverUpdate . chrome . last ;
188
180
189
181
// Use Puppeteer in protractor if a config is found on the project.
190
182
if ( fs . existsSync ( protractorConf ) ) {
183
+ const protractorPath = require . resolve ( 'protractor' ) ;
184
+ const webdriverUpdatePath = require . resolve ( 'webdriver-manager/selenium/update-config.json' , {
185
+ paths : [ protractorPath ] ,
186
+ } ) ;
187
+ const webdriverUpdate = JSON . parse ( await readFile ( webdriverUpdatePath ) ) as {
188
+ chrome : { last : string } ;
189
+ } ;
190
+ const chromeDriverPath = webdriverUpdate . chrome . last ;
191
+
191
192
await replaceInFile (
192
193
protractorConf ,
193
194
`browserName: 'chrome'` ,
You can’t perform that action at this time.
0 commit comments