import { beforeEach, describe, it } from "vitest"; import supertest from "supertest"; import app from "../main.js"; const request = supertest(app); describe.concurrent("Root handlers tests", function() { describe.concurrent("When not logged in", function() { it("GET /", async function() { await request.get("/").expect("Content-Type", /text\/plain/).expect(302, /Redirecting to \/login$/); }); it("GET /login", async function() { await request.get("/login").expect("Content-Type", /text\/html/).expect(200, /