Compare commits

...

2 Commits

Author SHA1 Message Date
Andrey Antukh
fb755a861c Restore back node based http server for e2e tests 2026-01-26 18:18:06 +01:00
Andrey Antukh
539a3923e0 🔥 Remove unused svg from frontend resources 2026-01-26 18:18:06 +01:00
3 changed files with 21 additions and 67 deletions

View File

@@ -85,7 +85,7 @@ export default defineConfig({
/* Run your local dev server before starting the tests */
webServer: {
timeout: 2 * 60 * 1000,
command: "caddy file-server --root resources/public/ --listen :3000",
command: "node ./scripts/e2e-server.js",
url: "http://localhost:3000",
reuseExistingServer: !process.env.CI,
},

View File

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 138 KiB

View File

@@ -0,0 +1,20 @@
import express from "express";
import compression from "compression";
import { fileURLToPath } from "url";
import path from "path";
const app = express();
const port = 3000;
app.use(compression());
const staticPath = path.join(
fileURLToPath(import.meta.url),
"../../resources/public",
);
app.use(express.static(staticPath));
app.listen(port, () => {
console.log(`Listening at 0.0.0.0:${port}`);
});