Tweak ava config

This commit is contained in:
Philip Peterson 2024-11-22 22:41:30 -09:00
parent bd24ae3765
commit 42cf07e7ea
No known key found for this signature in database
GPG key ID: 354311183FC6519B
2 changed files with 8 additions and 2 deletions

View file

@ -2,5 +2,5 @@ module.exports = {
files: ['test/*'], files: ['test/*'],
extensions: ['ts'], extensions: ['ts'],
require: ['ts-node/register/transpile-only'], 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) => { 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);
}); });