mirror of
https://github.com/penpot/penpot.git
synced 2025-05-10 10:36:38 +02:00
✨ Swap http-server for a custom server with express (front-end integration tests)
This commit is contained in:
parent
47804429c0
commit
306a8edbec
3 changed files with 99 additions and 251 deletions
13
frontend/scripts/e2e-server.js
Normal file
13
frontend/scripts/e2e-server.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
import express from "express";
|
||||
import { fileURLToPath } from "url";
|
||||
import path from "path";
|
||||
|
||||
const app = express();
|
||||
const port = 3500;
|
||||
|
||||
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}`);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue