mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
refactor: Update import statements for jest in test files
This commit updates the import statements for jest in multiple test files. The previous import statements used "globals" as the module name, which is incorrect. The correct module name is "jest". This change ensures that the jest module is imported correctly, improving the accuracy and reliability of the test setup.
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user