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,15 +1,13 @@
import { faker } from "@faker-js/faker";
import TeamDomain from "@server/models/TeamDomain";
import { buildTeam, buildUser } from "@server/test/factories";
import { setCloudHosted, setSelfHosted } from "@server/test/support";
import { setSelfHosted } from "@server/test/support";
import teamProvisioner from "./teamProvisioner";
describe("teamProvisioner", () => {
const ip = "127.0.0.1";
describe("hosted", () => {
beforeEach(setCloudHosted);
it("should create team and authentication provider", async () => {
const subdomain = faker.internet.domainWord();
const result = await teamProvisioner({