diff --git a/CommonServer/Tests/Middleware/ProjectAuthorization.test.ts b/CommonServer/Tests/Middleware/ProjectAuthorization.test.ts index 05c573bbc5..2953ea4a17 100644 --- a/CommonServer/Tests/Middleware/ProjectAuthorization.test.ts +++ b/CommonServer/Tests/Middleware/ProjectAuthorization.test.ts @@ -15,6 +15,7 @@ import BadDataException from "Common/Types/Exception/BadDataException"; import ObjectID from "Common/Types/ObjectID"; import { UserTenantAccessPermission } from "Common/Types/Permission"; import ApiKey from "Model/Models/ApiKey"; +import { describe, expect, afterEach, jest } from "@jest/globals"; jest.mock("../../Services/ApiKeyService"); jest.mock("../../Services/AccessTokenService"); diff --git a/CommonServer/Tests/Services/BillingService.test.ts b/CommonServer/Tests/Services/BillingService.test.ts index b0a2b9fcc3..b8cafd5330 100644 --- a/CommonServer/Tests/Services/BillingService.test.ts +++ b/CommonServer/Tests/Services/BillingService.test.ts @@ -27,7 +27,7 @@ import { Subscription, } from "../TestingUtils/Services/Types"; import { Stripe, mockStripe } from "../TestingUtils/__mocks__/Stripe.mock"; -import { describe, expect, it } from "@jest/globals"; +import { describe, expect, beforeEach, jest } from "@jest/globals"; import MeteredPlan from "Common/Types/Billing/MeteredPlan"; import SubscriptionPlan from "Common/Types/Billing/SubscriptionPlan"; import SubscriptionStatus from "Common/Types/Billing/SubscriptionStatus"; diff --git a/CommonServer/Tests/Services/ProbeService.test.ts b/CommonServer/Tests/Services/ProbeService.test.ts index 065d042ce0..cac7b710b5 100644 --- a/CommonServer/Tests/Services/ProbeService.test.ts +++ b/CommonServer/Tests/Services/ProbeService.test.ts @@ -9,6 +9,7 @@ import Faker from "Common/Utils/Faker"; import Probe from "Model/Models/Probe"; import User from "Model/Models/User"; import { fail } from "assert"; +import { describe, expect, beforeEach, afterEach, test } from "@jest/globals"; describe("probeService", () => { let database!: Database; diff --git a/CommonUI/src/Tests/Components/Input.test.tsx b/CommonUI/src/Tests/Components/Input.test.tsx index 4e4c3bf8ce..6d6682dfa6 100644 --- a/CommonUI/src/Tests/Components/Input.test.tsx +++ b/CommonUI/src/Tests/Components/Input.test.tsx @@ -2,7 +2,7 @@ import Input, { ComponentProps, InputType } from "../../Components/Input/Input"; import "@testing-library/jest-dom/extend-expect"; import { cleanup, fireEvent, render, screen } from "@testing-library/react"; import React from "react"; -import { describe, expect, afterEach, jest } from "@jest/globals"; +import { describe, expect, afterEach, jest, test } from "@jest/globals"; describe("Input", () => { afterEach(() => {