diff options
author | 2022-09-28 23:13:33 +0800 | |
---|---|---|
committer | 2022-09-28 23:13:33 +0800 | |
commit | 812658ad2ab3732a99e35c4fd903e302e723db46 (patch) | |
tree | 37dc457bcfa8558e546d064eb315a74149010da1 /packages/integrations/prefetch/playwright.config.js | |
parent | f4bca41a2d85968a2c9f2379f99954c7bcb06df1 (diff) | |
download | astro-812658ad2ab3732a99e35c4fd903e302e723db46.tar.gz astro-812658ad2ab3732a99e35c4fd903e302e723db46.tar.zst astro-812658ad2ab3732a99e35c4fd903e302e723db46.zip |
Remove shamefully-hoist (#4842)
Diffstat (limited to 'packages/integrations/prefetch/playwright.config.js')
-rw-r--r-- | packages/integrations/prefetch/playwright.config.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/integrations/prefetch/playwright.config.js b/packages/integrations/prefetch/playwright.config.js index c8353201f..d9600393e 100644 --- a/packages/integrations/prefetch/playwright.config.js +++ b/packages/integrations/prefetch/playwright.config.js @@ -1,4 +1,7 @@ -import { devices } from '@playwright/test'; +// NOTE: Prefetch tests fail with `TypeError: process.stdout.clearLine is not a function` +// for some reason. This comes from Vite, and is conditionally called based on `isTTY`. +// We set it to false here to skip this odd behavior. +process.stdout.isTTY = false; const config = { testMatch: 'test/*.test.js', |