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

@ -5,18 +5,18 @@ The `medusa-test-utils` package provides utility functions to create integration
For example:
```ts
import { medusaIntegrationTestRunner } from "medusa-test-utils";
import { medusaIntegrationTestRunner } from 'medusa-test-utils';
medusaIntegrationTestRunner({
testSuite: ({ api, getContainer }) => {
describe("Custom endpoints", () => {
describe("GET /store/custom", () => {
it("returns correct message", async () => {
describe('Custom endpoints', () => {
describe('GET /store/custom', () => {
it('returns correct message', async () => {
const response = await api.get(`/store/custom`);
expect(response.status).toEqual(200);
expect(response.data).toHaveProperty("message");
expect(response.data.message).toEqual("Hello, World!");
expect(response.data).toHaveProperty('message');
expect(response.data.message).toEqual('Hello, World!');
});
});
});

View File

@ -1,13 +1,13 @@
import { medusaIntegrationTestRunner } from "medusa-test-utils";
import { medusaIntegrationTestRunner } from 'medusa-test-utils';
jest.setTimeout(60 * 1000);
medusaIntegrationTestRunner({
inApp: true,
env: {},
testSuite: ({ api }) => {
describe("Ping", () => {
it("ping the server health endpoint", async () => {
const response = await api.get("/health");
describe('Ping', () => {
it('ping the server health endpoint', async () => {
const response = await api.get('/health');
expect(response.status).toEqual(200);
});
});