Skip to content

Commit afa7655

Browse files
committed
bump buildFunction test timeouts to 20000
1 parent cb420b2 commit afa7655

File tree

4 files changed

+17
-15
lines changed

4 files changed

+17
-15
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ describe("Function Tests", () => {
8585

8686
schema = await loadSchema(schemaPath);
8787
inputQueryAST = await loadInputQuery(inputQueryPath);
88-
}, 10000);
88+
}, 20000);
8989

9090
const fixturesDir = path.join(__dirname, "fixtures");
9191
const fixtureFiles = fs

test-app/extensions/cart-validation-js/tests/default.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe("Default Integration Test", () => {
2626

2727
schema = await loadSchema(schemaPath);
2828
inputQueryAST = await loadInputQuery(inputQueryPath);
29-
}, 10000); // 10 second timeout for building the function
29+
}, 20000); // 10 second timeout for building the function
3030

3131
const fixturesDir = path.join(__dirname, "fixtures");
3232
const fixtureFiles = fs

test-app/extensions/discount-function/tests/default.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe("Default Integration Test", () => {
2626

2727
schema = await loadSchema(schemaPath);
2828
inputQueryAST = await loadInputQuery(inputQueryPath);
29-
}, 10000); // 10 second timeout for building the function
29+
}, 20000); // 10 second timeout for building the function
3030

3131
const fixturesDir = path.join(__dirname, "fixtures");
3232
const fixtureFiles = fs
Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
import { describe, it, expect } from 'vitest';
2-
import { buildFunction } from '../../src/methods/build-function.ts';
1+
import { describe, it, expect } from "vitest";
2+
import { buildFunction } from "../../src/methods/build-function.ts";
33

4-
describe('buildFunction', () => {
5-
it('should build a function using Shopify CLI', async () => {
6-
const result = await buildFunction('test-app/extensions/cart-validation-js');
7-
8-
expect(result).toBeDefined();
9-
expect(result).toHaveProperty('success');
10-
expect(result).toHaveProperty('output');
11-
expect(result).toHaveProperty('error');
12-
}, 10000); // 10 second timeout for build operations
13-
});
4+
describe("buildFunction", () => {
5+
it("should build a function using Shopify CLI", async () => {
6+
const result = await buildFunction(
7+
"test-app/extensions/cart-validation-js"
8+
);
9+
10+
expect(result).toBeDefined();
11+
expect(result).toHaveProperty("success");
12+
expect(result).toHaveProperty("output");
13+
expect(result).toHaveProperty("error");
14+
}, 20000); // 10 second timeout for build operations
15+
});

0 commit comments

Comments
 (0)