Skip to content

Commit

Permalink
Merge pull request #165 from theopensystemslab/oz/debugger-config
Browse files Browse the repository at this point in the history
feat: update jest config for debugger
  • Loading branch information
zz-hh-aa authored Dec 12, 2024
2 parents 52535c8 + 639992c commit 0e9965a
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,16 @@ const config: Config = {
// ],

// An array of file extensions your modules use
// moduleFileExtensions: [
// "js",
// "mjs",
// "cjs",
// "jsx",
// "ts",
// "tsx",
// "json",
// "node"
// ],
moduleFileExtensions: [
"js",
"mjs",
"cjs",
"jsx",
"ts",
"tsx",
"json",
"node"
],

// A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module
// moduleNameMapper: {},
Expand Down Expand Up @@ -132,9 +132,10 @@ const config: Config = {
// rootDir: undefined,

// A list of paths to directories that Jest should use to search for files in
// roots: [
// "<rootDir>"
// ],
roots: [
"<rootDir>"
],
modulePaths: ["<rootDir>"],

// Allows you to use a custom runner instead of Jest's default test runner
// runner: "jest-runner",
Expand All @@ -161,10 +162,7 @@ const config: Config = {
// testLocationInResults: false,

// The glob patterns Jest uses to detect test files
// testMatch: [
// "**/__tests__/**/*.[jt]s?(x)",
// "**/?(*.)+(spec|test).[tj]s?(x)"
// ],
testMatch: ["**/*.test.ts"],

// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
// testPathIgnorePatterns: [
Expand All @@ -181,7 +179,11 @@ const config: Config = {
// testRunner: "jest-circus/runner",

// A map from regular expressions to paths to transformers
// transform: undefined,
transform: {
"^.+\\.tsx?$": ["ts-jest", {
tsconfig: "tsconfig.json"
}]
},

// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
// transformIgnorePatterns: [
Expand Down

0 comments on commit 0e9965a

Please sign in to comment.