diff --git a/tests/e2e/anytinkClient.js b/tests/e2e/anytinkClient.js index b2524dd..c16c945 100644 --- a/tests/e2e/anytinkClient.js +++ b/tests/e2e/anytinkClient.js @@ -11,7 +11,7 @@ class AnythinkClient { constructor() { this.client = axios.create({ baseURL: "http://localhost:3000", - timeout: 2000, + timeout: 10000, }); } diff --git a/tests/e2e/concurrent/items.test.js b/tests/e2e/concurrent/items.test.js index 229754f..58710a1 100644 --- a/tests/e2e/concurrent/items.test.js +++ b/tests/e2e/concurrent/items.test.js @@ -159,8 +159,8 @@ describe("Items Route", () => { }) ).toBe(true); - const retreivedItem = await anythinkClient.getItem(item.slug); - expect(matchObjects(retreivedItem, updatedItemResult)).toBe(true); + const retrievedItem = await anythinkClient.getItem(item.slug); + expect(matchObjects(retrievedItem, updatedItemResult)).toBe(true); }; }); @@ -265,17 +265,17 @@ describe("Items Route", () => { ).rejects.toThrow(); }); - test("Comments are retreived in reversed order", async () => { + test("Comments are retrieved in reversed order", async () => { const item = await anythinkClient.createItem(randomItemInfo(), user); - const commnets = await addComments(item, [ + const comments = await addComments(item, [ commentingUserA, commentingUserB, ]); const itemsComments = await anythinkClient.getComments(item.slug); - expect(itemsComments[0]).toMatchObject(commnets[1]); - expect(itemsComments[1]).toMatchObject(commnets[0]); + expect(itemsComments[0]).toMatchObject(comments[1]); + expect(itemsComments[1]).toMatchObject(comments[0]); }); test("Users can delete their own comments", async () => { diff --git a/tests/e2e/jest.concurrent.config.js b/tests/e2e/jest.concurrent.config.js index 51587fd..7b2b0a3 100644 --- a/tests/e2e/jest.concurrent.config.js +++ b/tests/e2e/jest.concurrent.config.js @@ -2,4 +2,5 @@ module.exports = { testPathIgnorePatterns: ["/node_modules/", "/sequential/"], globalSetup: "/setup.js", globalTeardown: "/teardown.js", + testTimeout: 30000, };