mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-07 23:40:21 -05:00
fix: restart dev-server on config change (#21212)
* fix: restart dev-server on config change * close dev server before cp is spawned * fix test that is failing... not sure why * cleanup unsued close events * remove wait * add back in close for unit tests Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
This commit is contained in:
@@ -266,15 +266,7 @@ export class OpenProject {
|
||||
})
|
||||
|
||||
try {
|
||||
const cfg = await this.projectBase.initializeConfig()
|
||||
|
||||
await this._ctx.actions.project.setSpecsFoundBySpecPattern({
|
||||
path,
|
||||
testingType,
|
||||
specPattern: options.spec || cfg.specPattern,
|
||||
excludeSpecPattern: cfg.excludeSpecPattern,
|
||||
additionalIgnorePattern: cfg.additionalIgnorePattern,
|
||||
})
|
||||
await this.projectBase.initializeConfig()
|
||||
|
||||
await this.projectBase.open()
|
||||
} catch (err: any) {
|
||||
|
||||
Reference in New Issue
Block a user