Skip to content

Commit

Permalink
Merge pull request #20 from vordgi/get-10
Browse files Browse the repository at this point in the history
get-10 fix dynamic-force-dynamic test
  • Loading branch information
vordgi authored Feb 18, 2024
2 parents a581a54 + 6dc27b3 commit 0ebc4cb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ test("should return correct page config on dynamic force-dynamic page", async ({

const pageConfig = await page.$('#get-page-config');
const pageConfigRow = await pageConfig?.textContent();
expect(pageConfigRow && JSON.parse(pageConfigRow)).toEqual({ basePath: "", dynamic: 'force-dynamic', pagePath: `/dynamic/force-dynamic/page`, revalidate: 0 });
// locally it returns also revalidate: 0, but in github actions nope
expect(pageConfigRow && JSON.parse(pageConfigRow)).toMatchObject({ basePath: "", dynamic: 'force-dynamic', pagePath: `/dynamic/force-dynamic/page` });
});

0 comments on commit 0ebc4cb

Please sign in to comment.