Skip to content

Commit c5db847

Browse files
committed
Updated window integration tests to restart the test app before each run
1 parent 5138843 commit c5db847

File tree

1 file changed

+2
-2
lines changed
  • e2e/tests/packages/window-integration-tests

1 file changed

+2
-2
lines changed

e2e/tests/packages/window-integration-tests/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const { join } = require("path");
77
let app;
88
const APP_TIMEOUT = 10000;
99

10-
beforeAll(async () => {
10+
beforeEach(async () => {
1111
app = new Application({
1212
path: electronPath,
1313
args: [join(__dirname, 'main.js')],
@@ -91,7 +91,7 @@ describe("getActiveWindow", () => {
9191
});
9292
});
9393

94-
afterAll(async () => {
94+
afterEach(async () => {
9595
if (app && app.isRunning()) {
9696
await app.stop();
9797
}

0 commit comments

Comments
 (0)