Skip to content

Commit cfee97c

Browse files
Tweak ava config (#77)
1 parent bd24ae3 commit cfee97c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

ava-e2e.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ module.exports = {
22
files: ['test/*'],
33
extensions: ['ts'],
44
require: ['ts-node/register/transpile-only'],
5-
timeout: '30s'
5+
timeout: '2m'
66
};

test/index.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,11 @@ test.after(async () => {
5151
});
5252

5353
test('see if dev tools are open', async (t) => {
54-
t.false(await app.evaluate(({webContents}) => !!webContents.getFocusedWebContents()?.isDevToolsOpened()));
54+
const result = app.evaluate(({webContents}) => {
55+
const focused = webContents.getFocusedWebContents();
56+
const isDevOpen = focused?.isDevToolsOpened();
57+
return Boolean(isDevOpen);
58+
});
59+
60+
t.false(await result);
5561
});

0 commit comments

Comments
 (0)