Added prettier and prettied the code.

Created and added the razorpay payment module
This commit is contained in:
2025-02-16 04:37:30 +00:00
parent 513664dcbe
commit 6e3216a0ff
20 changed files with 767 additions and 415 deletions

View File

@ -1,26 +1,26 @@
const { loadEnv } = require("@medusajs/utils");
loadEnv("test", process.cwd());
const { loadEnv } = require('@medusajs/utils');
loadEnv('test', process.cwd());
module.exports = {
transform: {
"^.+\\.[jt]s$": [
"@swc/jest",
'^.+\\.[jt]s$': [
'@swc/jest',
{
jsc: {
parser: { syntax: "typescript", decorators: true },
parser: { syntax: 'typescript', decorators: true },
},
},
],
},
testEnvironment: "node",
moduleFileExtensions: ["js", "ts", "json"],
modulePathIgnorePatterns: ["dist/"],
testEnvironment: 'node',
moduleFileExtensions: ['js', 'ts', 'json'],
modulePathIgnorePatterns: ['dist/'],
};
if (process.env.TEST_TYPE === "integration:http") {
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"];
} else if (process.env.TEST_TYPE === "unit") {
module.exports.testMatch = ["**/src/**/__tests__/**/*.unit.spec.[jt]s"];
if (process.env.TEST_TYPE === 'integration:http') {
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'];
} else if (process.env.TEST_TYPE === 'unit') {
module.exports.testMatch = ['**/src/**/__tests__/**/*.unit.spec.[jt]s'];
}