We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa74e58 commit b792eebCopy full SHA for b792eeb
testing/test-setup/src/lib/chrome-path.mock.ts
@@ -15,9 +15,12 @@ beforeEach(async () => {
15
error.message.includes('No Chrome installations found.')
16
) {
17
const chromium = await import('chromium');
18
- console.info(
19
- `${error.message} Using chromium from node_modules instead: ${chromium.path}`,
20
- );
+ // console.info may be overridden by multi-progress-bars or other libraries
+ if (typeof console.info === 'function') {
+ console.info(
21
+ `${error.message} Using chromium from node_modules instead: ${chromium.path}`,
22
+ );
23
+ }
24
vi.stubEnv('CHROME_PATH', chromium.path);
25
} else {
26
throw error;
0 commit comments