From fb7c4eb4910a504de3524ef5491956ebbed800c2 Mon Sep 17 00:00:00 2001 From: Camille Fontaine Date: Tue, 19 Aug 2025 20:01:18 -0700 Subject: [PATCH 1/3] feat(fixture-context) add important stuff --- tests/core/internal/factory-context/auto-counter.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/core/internal/factory-context/auto-counter.test.ts b/tests/core/internal/factory-context/auto-counter.test.ts index 46a2650..7c5f2bd 100644 --- a/tests/core/internal/factory-context/auto-counter.test.ts +++ b/tests/core/internal/factory-context/auto-counter.test.ts @@ -33,3 +33,6 @@ describe(AutoCounter.name, () => { }); }); }); + + +// test \ No newline at end of file From 0678d3ed6b99b1f654f94c817b6ab50df7ba1ad0 Mon Sep 17 00:00:00 2001 From: Camille Fontaine Date: Tue, 19 Aug 2025 20:15:51 -0700 Subject: [PATCH 2/3] lkj --- jest.config.ts | 4 ++-- tests/core/internal/factory-context/auto-counter.test.ts | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/jest.config.ts b/jest.config.ts index 3b2dd0b..17e3aab 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -1,11 +1,11 @@ import { pathsToModuleNameMapper } from "ts-jest"; -import { compilerOptions } from "./tsconfig.test.json"; +const tsConfig = require('./tsconfig.test.json'); export default { preset: "ts-jest", testEnvironment: "node", moduleDirectories: ["node_modules", ""], - moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths, { prefix: "/" }), + moduleNameMapper: pathsToModuleNameMapper(tsConfig.compilerOptions.paths, { prefix: "/" }), roots: ["/tests"], testMatch: ["**/*.test.ts"], transform: { diff --git a/tests/core/internal/factory-context/auto-counter.test.ts b/tests/core/internal/factory-context/auto-counter.test.ts index 7c5f2bd..bf0437d 100644 --- a/tests/core/internal/factory-context/auto-counter.test.ts +++ b/tests/core/internal/factory-context/auto-counter.test.ts @@ -32,7 +32,4 @@ describe(AutoCounter.name, () => { expect(instance.getNextValue("bar")).toBe(2); }); }); -}); - - -// test \ No newline at end of file +}); \ No newline at end of file From 1a0984d56490f52a86c74deae91e1e92248fa35b Mon Sep 17 00:00:00 2001 From: Camille Fontaine Date: Tue, 19 Aug 2025 20:18:10 -0700 Subject: [PATCH 3/3] lkj --- jest.config.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/jest.config.ts b/jest.config.ts index 17e3aab..f4c8f2c 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -1,5 +1,14 @@ import { pathsToModuleNameMapper } from "ts-jest"; -const tsConfig = require('./tsconfig.test.json'); +import { readFileSync } from 'fs'; +import { fileURLToPath } from 'url'; +import { dirname, join } from 'path'; + +const __filename = fileURLToPath(import.meta.url); +const __dirname = dirname(__filename); + +const tsConfig = JSON.parse( + readFileSync(join(__dirname, 'tsconfig.test.json'), 'utf8') +); export default { preset: "ts-jest",