Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore: repair run_static_server.js (#6298)

Yury Semikhatskyf63f92be5ec8
diff --git a/tests/config/run_static_server.js b/utils/testserver/run_static_server.js
similarity index 86%
rename from tests/config/run_static_server.js
rename to utils/testserver/run_static_server.js
index b6ac3e8c74..b3b90f2411 100755
--- a/tests/config/run_static_server.js
+++ b/utils/testserver/run_static_server.js
@@ -16,12 +16,12 @@
*/
const path = require('path');
-const {TestServer} = require('../utils/testserver/');
+const {TestServer} = require('.');
const port = 8907;
const httpsPort = 8908;
-const assetsPath = path.join(__dirname, 'assets');
-const cachedPath = path.join(__dirname, 'assets', 'cached');
+const assetsPath = path.join(__dirname, '../../tests/assets');
+const cachedPath = path.join(__dirname, '../../tests/assets/cached');
Promise.all([
TestServer.create(assetsPath, port),