Correct path to global functions in jest.config.ts.
This commit is contained in:
parent
f3e9e3d35e
commit
5d7cd511b5
|
@ -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",
|
||||
|
|
|
@ -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}"],
|
||||
|
|
Loading…
Reference in New Issue