mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 18:41:47 +00:00
Tests: only stop if running (in case of error when launching app)
This commit is contained in:
@ -33,7 +33,9 @@ class TestEnvironment extends NodeEnvironment {
|
||||
}
|
||||
|
||||
async teardown() {
|
||||
if (this.global.__APP__.isRunning()) {
|
||||
await this.global.__APP__.stop();
|
||||
}
|
||||
await super.teardown();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user