Skip to content

Commit

Permalink
Merge pull request #13 from nico-i/bug/ci-fix
Browse files Browse the repository at this point in the history
chore: ci fix
  • Loading branch information
nico-i authored Jan 6, 2024
2 parents d7e7aa2 + 5137632 commit 800bdcd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ src/**/*

Dockerfile
example.env
tsconfig.json
tsconfig.json
jest.config.js
9 changes: 6 additions & 3 deletions jest.config.js → jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */

const { pathsToModuleNameMapper } = require("ts-jest");
const { compilerOptions } = require("./tsconfig");
import type { JestConfigWithTsJest } from "ts-jest";
import { compilerOptions } from "./tsconfig.json";

module.exports = {
const jestConfig: JestConfigWithTsJest = {
preset: "ts-jest",
testEnvironment: "node",
roots: ["<rootDir>"],
modulePaths: [compilerOptions.baseUrl], // <-- This will be set to 'baseUrl' value
modulePaths: [compilerOptions.baseUrl],
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths),
automock: false,
modulePathIgnorePatterns: ["<rootDir>/dist/"],
setupFiles: ["./setupJest.js"],
};

export default jestConfig;

0 comments on commit 800bdcd

Please sign in to comment.