Skip to content

Commit 3445cff

Browse files
committed
Chnage test directory in jest config
1 parent cc07dce commit 3445cff

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

jest.config.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
const isCI = require("is-ci");
33

44
/** @type {Partial<import('@jest/types').Config.DefaultOptions>} */
5-
module.exports = {
6-
testMatch: ["**/__tests__/**/*.test.ts"],
5+
const config = {
6+
testMatch: ["**/test/**/*.spec.ts"],
77
collectCoverageFrom: ["<rootDir>/src/**/*", "!<rootDir>/src/lualib/**/*"],
88
watchPathIgnorePatterns: ["/watch\\.ts$"],
99

@@ -12,8 +12,10 @@ module.exports = {
1212
preset: "ts-jest",
1313
globals: {
1414
"ts-jest": {
15-
tsConfig: "<rootDir>/__tests__/tsconfig.json",
15+
tsConfig: "<rootDir>/test/tsconfig.json",
1616
diagnostics: { warnOnly: !isCI },
1717
},
1818
},
1919
};
20+
21+
module.exports = config;

0 commit comments

Comments
 (0)