aboutsummaryrefslogtreecommitdiff
path: root/packages/integrations/prefetch
diff options
context:
space:
mode:
Diffstat (limited to 'packages/integrations/prefetch')
-rw-r--r--packages/integrations/prefetch/package.json1
-rw-r--r--packages/integrations/prefetch/playwright.config.js5
2 files changed, 5 insertions, 1 deletions
diff --git a/packages/integrations/prefetch/package.json b/packages/integrations/prefetch/package.json
index 5575b3cd2..c15eb5eda 100644
--- a/packages/integrations/prefetch/package.json
+++ b/packages/integrations/prefetch/package.json
@@ -29,6 +29,7 @@
"test:match": "playwright test -g"
},
"devDependencies": {
+ "@playwright/test": "^1.26.0",
"@types/chai": "^4.3.1",
"@types/chai-as-promised": "^7.1.5",
"@types/mocha": "^9.1.1",
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',