upgrade to rc5 with breaking changes

This commit is contained in:
2024-10-16 15:36:47 +05:30
parent da100fcfb5
commit 1a8d961240
25 changed files with 4616 additions and 3588 deletions

View File

@ -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: {
@ -15,12 +15,12 @@ module.exports = {
testEnvironment: "node",
moduleFileExtensions: ["js", "ts", "json"],
modulePathIgnorePatterns: ["dist/"],
}
};
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"];
}