Tweak ava config (#77)

This commit is contained in:
Philip Peterson 2024-11-22 23:07:22 -09:00 committed by GitHub
parent bd24ae3765
commit cfee97ce76
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 2 deletions

View file

@ -2,5 +2,5 @@ module.exports = {
files: ['test/*'],
extensions: ['ts'],
require: ['ts-node/register/transpile-only'],
timeout: '30s'
timeout: '2m'
};

View file

@ -51,5 +51,11 @@ test.after(async () => {
});
test('see if dev tools are open', async (t) => {
t.false(await app.evaluate(({webContents}) => !!webContents.getFocusedWebContents()?.isDevToolsOpened()));
const result = app.evaluate(({webContents}) => {
const focused = webContents.getFocusedWebContents();
const isDevOpen = focused?.isDevToolsOpened();
return Boolean(isDevOpen);
});
t.false(await result);
});