From 5d7cd511b5b084f728660815ddd01777516ab2cf Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Tue, 26 Mar 2024 09:51:10 +0000 Subject: [PATCH] Correct path to global functions in jest.config.ts. --- packages/backend-core/jest.config.ts | 4 ++-- packages/worker/jest.config.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/backend-core/jest.config.ts b/packages/backend-core/jest.config.ts index 83e87a6f7a..fd60caf551 100644 --- a/packages/backend-core/jest.config.ts +++ b/packages/backend-core/jest.config.ts @@ -2,8 +2,8 @@ import { Config } from "@jest/types" const baseConfig: Config.InitialProjectOptions = { setupFiles: ["./tests/jestEnv.ts"], - globalSetup: "./src/tests/globalSetup.ts", - globalTeardown: "./src/tests/globalTeardown.ts", + globalSetup: "./../../globalSetup.ts", + globalTeardown: "./../../globalTeardown.ts", setupFilesAfterEnv: ["./tests/jestSetup.ts"], transform: { "^.+\\.ts?$": "@swc/jest", diff --git a/packages/worker/jest.config.ts b/packages/worker/jest.config.ts index b227ee1309..9113df0664 100644 --- a/packages/worker/jest.config.ts +++ b/packages/worker/jest.config.ts @@ -2,8 +2,8 @@ import { Config } from "@jest/types" import * as fs from "fs" const config: Config.InitialOptions = { - globalSetup: "./src/tests/globalSetup.ts", - globalTeardown: "./src/tests/globalTeardown.ts", + globalSetup: "./../../globalSetup.ts", + globalTeardown: "./../../globalTeardown.ts", setupFiles: ["./src/tests/jestEnv.ts"], setupFilesAfterEnv: ["./src/tests/jestSetup.ts"], collectCoverageFrom: ["src/**/*.{js,ts}", "../backend-core/src/**/*.{js,ts}"],