Skip to content

Commit

Permalink
Add missing jest files
Browse files Browse the repository at this point in the history
  • Loading branch information
Swimburger committed Apr 15, 2024
1 parent 4511560 commit 60ee84a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
14 changes: 14 additions & 0 deletions jest.integration.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/** @type {import('jest').Config} */
const config = {
preset: "ts-jest",
testEnvironment: "node",
collectCoverage: true,
modulePathIgnorePatterns: ["<rootDir>/dist"],
testMatch: ["**/tests/integration/**/*.test.ts"],
clearMocks: true,
maxConcurrency: 1,
};

process.env.TESTDATA_DIR = "tests/static";

module.exports = config;
12 changes: 12 additions & 0 deletions jest.unit.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/** @type {import('jest').Config} */
const config = {
preset: "ts-jest",
testEnvironment: "node",
collectCoverage: true,
modulePathIgnorePatterns: ["<rootDir>/dist"],
testMatch: ["**/tests/unit/**/*.test.ts"],
};

process.env.TESTDATA_DIR = "tests/static";

module.exports = config;

0 comments on commit 60ee84a

Please sign in to comment.