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:
Zachary Williams
2022-05-01 21:05:01 -05:00
committed by GitHub
parent 1289b01947
commit 00a0f5a0e9
14 changed files with 264 additions and 201 deletions
+1 -9
View File
@@ -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) {