Skip to content

Commit

Permalink
Merge pull request #2454 from medusajs/chore/ignore-.medusa-folder
Browse files Browse the repository at this point in the history
jest ignore .medusa folder
  • Loading branch information
carlos-r-l-rodrigues authored Nov 14, 2024
2 parents 59bfc67 + 1bf5cf4 commit 21e09f6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { loadEnv } = require('@medusajs/utils')
loadEnv('test', process.cwd())
const { loadEnv } = require("@medusajs/utils");
loadEnv("test", process.cwd());

module.exports = {
transform: {
Expand All @@ -14,13 +14,13 @@ module.exports = {
},
testEnvironment: "node",
moduleFileExtensions: ["js", "ts", "json"],
modulePathIgnorePatterns: ["dist/"],
}
modulePathIgnorePatterns: ["dist/", "<rootDir>/.medusa/"],
};

if (process.env.TEST_TYPE === "integration:http") {
module.exports.testMatch = ["**/integration-tests/http/*.spec.[jt]s"]
module.exports.testMatch = ["**/integration-tests/http/*.spec.[jt]s"];
} else if (process.env.TEST_TYPE === "integration:modules") {
module.exports.testMatch = ["**/src/modules/*/__tests__/**/*.[jt]s"]
module.exports.testMatch = ["**/src/modules/*/__tests__/**/*.[jt]s"];
} else if (process.env.TEST_TYPE === "unit") {
module.exports.testMatch = ["**/src/**/__tests__/**/*.unit.spec.[jt]s"]
}
module.exports.testMatch = ["**/src/**/__tests__/**/*.unit.spec.[jt]s"];
}

0 comments on commit 21e09f6

Please sign in to comment.