We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9204618 commit d532e49Copy full SHA for d532e49
1 file changed
tests/browser.test.ts
@@ -7,6 +7,7 @@ import {describe, it} from 'node:test';
7
import assert from 'node:assert';
8
import os from 'node:os';
9
import path from 'node:path';
10
+import {executablePath} from 'puppeteer';
11
import {launch} from '../src/browser.js';
12
13
describe('browser', () => {
@@ -17,13 +18,16 @@ describe('browser', () => {
17
18
headless: true,
19
isolated: false,
20
userDataDir: folderPath,
21
+ executablePath: executablePath(),
22
});
23
try {
24
25
+ console.log('launching the second browser')
26
const browser2 = await launch({
27
28
29
30
31
32
await browser2.close();
33
assert.fail('not reached');
0 commit comments