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 = {
|
const baseConfig: Config.InitialProjectOptions = {
|
||||||
setupFiles: ["./tests/jestEnv.ts"],
|
setupFiles: ["./tests/jestEnv.ts"],
|
||||||
globalSetup: "./src/tests/globalSetup.ts",
|
globalSetup: "./../../globalSetup.ts",
|
||||||
globalTeardown: "./src/tests/globalTeardown.ts",
|
globalTeardown: "./../../globalTeardown.ts",
|
||||||
setupFilesAfterEnv: ["./tests/jestSetup.ts"],
|
setupFilesAfterEnv: ["./tests/jestSetup.ts"],
|
||||||
transform: {
|
transform: {
|
||||||
"^.+\\.ts?$": "@swc/jest",
|
"^.+\\.ts?$": "@swc/jest",
|
||||||
|
|
|
@ -2,8 +2,8 @@ import { Config } from "@jest/types"
|
||||||
import * as fs from "fs"
|
import * as fs from "fs"
|
||||||
|
|
||||||
const config: Config.InitialOptions = {
|
const config: Config.InitialOptions = {
|
||||||
globalSetup: "./src/tests/globalSetup.ts",
|
globalSetup: "./../../globalSetup.ts",
|
||||||
globalTeardown: "./src/tests/globalTeardown.ts",
|
globalTeardown: "./../../globalTeardown.ts",
|
||||||
setupFiles: ["./src/tests/jestEnv.ts"],
|
setupFiles: ["./src/tests/jestEnv.ts"],
|
||||||
setupFilesAfterEnv: ["./src/tests/jestSetup.ts"],
|
setupFilesAfterEnv: ["./src/tests/jestSetup.ts"],
|
||||||
collectCoverageFrom: ["src/**/*.{js,ts}", "../backend-core/src/**/*.{js,ts}"],
|
collectCoverageFrom: ["src/**/*.{js,ts}", "../backend-core/src/**/*.{js,ts}"],
|
||||||
|
|
Loading…
Reference in New Issue