chore: More flakey test improvements (#5801)

This commit is contained in:
Tom Moor
2023-09-09 18:30:19 -04:00
committed by GitHub
parent 7270e65f0c
commit 80ef0a38d6
37 changed files with 245 additions and 210 deletions

View File

@@ -1,11 +1,7 @@
import { faker } from "@faker-js/faker";
import { v4 as uuidv4 } from "uuid";
import { buildUser, buildTeam } from "@server/test/factories";
import {
getTestServer,
setCloudHosted,
setSelfHosted,
} from "@server/test/support";
import { getTestServer, setSelfHosted } from "@server/test/support";
const mockTeamInSessionId = uuidv4();
@@ -18,8 +14,6 @@ jest.mock("@server/utils/authentication", () => ({
const server = getTestServer();
describe("#auth.info", () => {
beforeEach(setCloudHosted);
it("should return current authentication", async () => {
const team = await buildTeam();
const team2 = await buildTeam();