diff --git a/.eslintrc.cjs b/.eslintrc.cjs index ce3b248..7aa6b3e 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -24,6 +24,7 @@ module.exports = { ".eslintrc.cjs", "coverage/*", "scripts/*", + "test/**/*.spec.ts", ], rules: { "@typescript-eslint/interface-name-prefix": "off", diff --git a/jest.config.ts b/jest.config.ts index b07211a..206eaad 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -1,24 +1,24 @@ import type { JestConfigWithTsJest } from "ts-jest"; const config: JestConfigWithTsJest = { - testEnvironment: "node", - roots: ["/src"], - testRegex: ".*\\.spec\\.ts$", - testPathIgnorePatterns: ["/node_modules/", "/bin/"], - collectCoverageFrom: ["src/**/*.ts", "!**/*.spec.ts", "src/**/index.ts"], - moduleNameMapper: { - "^@src/(.*)$": "/src/$1", - }, - setupFiles: ["reflect-metadata"], - transform: { - "^.+\\.ts$": [ - "ts-jest", - { - tsconfig: "tsconfig.json", - // Add any ts-jest specific options here - }, - ], - }, + testEnvironment: "node", + roots: ["/src", "/test"], + testRegex: ".*\\.spec\\.ts$", + testPathIgnorePatterns: ["/node_modules/", "/bin/"], + collectCoverageFrom: ["src/**/*.ts", "!**/*.spec.ts", "src/**/index.ts"], + moduleNameMapper: { + "^@src/(.*)$": "/src/$1", + }, + setupFiles: ["reflect-metadata"], + transform: { + "^.+\\.ts$": [ + "ts-jest", + { + tsconfig: "tsconfig.json", + // Add any ts-jest specific options here + }, + ], + }, }; export default config; diff --git a/test/test.spec.ts b/test/test.spec.ts index 5628bdb..a673e4c 100644 --- a/test/test.spec.ts +++ b/test/test.spec.ts @@ -1,3 +1,5 @@ -it("pass", () => { - expect(true).toBe(true); +describe("Test", () => { + it("pass", () => { + expect(true).toBe(true); + }); });