diff --git a/packages/backend-core/jest.config.ts b/packages/backend-core/jest.config.ts index 2f34b55aa8..742339cda5 100644 --- a/packages/backend-core/jest.config.ts +++ b/packages/backend-core/jest.config.ts @@ -1,7 +1,7 @@ -import { Config } from "jest" +import { Config } from "@jest/types" const preset = require("ts-jest/jest-preset") -const testContainersSettings = { +const testContainersSettings: Config.InitialProjectOptions = { ...preset, preset: "@trendyol/jest-testcontainers", setupFiles: ["./tests/jestEnv.ts"], @@ -20,7 +20,7 @@ if (!process.env.CI) { console.log("Running tests with compiled dependency sources") } -const config: Config = { +const config: Config.InitialOptions = { projects: [ { ...testContainersSettings, diff --git a/packages/server/jest.config.ts b/packages/server/jest.config.ts index 390167e4c4..8e42c2cd40 100644 --- a/packages/server/jest.config.ts +++ b/packages/server/jest.config.ts @@ -1,9 +1,9 @@ -import { Config } from "jest" +import { Config } from "@jest/types" import * as fs from "fs" const preset = require("ts-jest/jest-preset") -const testContainersSettings = { +const testContainersSettings: Config.InitialProjectOptions = { ...preset, preset: "@trendyol/jest-testcontainers", setupFiles: ["./src/tests/jestEnv.ts"], @@ -29,7 +29,7 @@ if (!process.env.CI) { console.log("Running tests with compiled dependency sources") } -const config: Config = { +const config: Config.InitialOptions = { projects: [ { ...testContainersSettings,