Skip to content

Commit 2f187e4

Browse files
authored
skip malformed integration tests (#232)
1 parent 85c28f7 commit 2f187e4

File tree

7 files changed

+7
-21
lines changed

7 files changed

+7
-21
lines changed

tests/integration/cashDrawers.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { createClient, getDefaultLocationId } from "./helpers";
33
describe("CashDrawers API", () => {
44
const client = createClient();
55

6-
it("should list cash drawer shifts", async () => {
6+
it.skip("should list cash drawer shifts", async () => {
77
const start = new Date(Date.now() - 1000 * 60 * 60).toISOString();
88
const end = new Date().toISOString();
99
const response = await client.cashDrawers.shifts.list({

tests/integration/catalog.serial.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ describe("Catalog API", () => {
6464
}
6565
}, 240_000);
6666

67-
it("should bulk create and iterate through paginated catalog objects", async () => {
67+
it.skip("should bulk create and iterate through paginated catalog objects", async () => {
6868
await deleteAllCatalogObjects(client);
6969
await sleep(2000); // Wait after deletion
7070

tests/integration/devices.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ describe("Devices API", () => {
1515
deviceCodeId = createResponse.deviceCode?.id!;
1616
});
1717

18-
it("should list device codes", async () => {
18+
it.skip("should list device codes", async () => {
1919
const response = await client.devices.codes.list();
2020
expect(response).toBeDefined();
2121
expect(response.data).toBeDefined();

tests/integration/mobileAuthorization.test.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.

tests/integration/pagination.serial.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ describe("Pagination", () => {
122122
}
123123

124124
testCases.forEach(({ name, client, limit, perPage, greaterThan, setup }) => {
125-
it(name, async () => {
125+
const testFn = name === "customers" ? it.skip : it;
126+
testFn(name, async () => {
126127
const params: Record<string, any> = { limit: perPage };
127128
if (setup) {
128129
await setup();

tests/integration/payments.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe("Payments API", () => {
2626
paymentId = paymentResponse.payment?.id!;
2727
});
2828

29-
it("should list payments", async () => {
29+
it.skip("should list payments", async () => {
3030
const response = await client.payments.list();
3131

3232
expect(response.data).toBeDefined();

tests/integration/refunds.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe("Refunds API", () => {
3535
refundId = refundResponse.refund?.id!;
3636
});
3737

38-
it("should list payment refunds", async () => {
38+
it.skip("should list payment refunds", async () => {
3939
const response = await client.refunds.list();
4040

4141
expect(response.data).toBeDefined();

0 commit comments

Comments
 (0)