Skip to content

Commit

Permalink
debug failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
leoortizz committed Apr 29, 2024
1 parent e6a2557 commit c4d2992
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/webframeworks-deploy-tests/tests.ts
Expand Up @@ -239,10 +239,14 @@ describe("webframeworks", function (this) {
).toString(),
);
const apiStaticResponse = await fetch(`${NEXTJS_HOST}/app/api/static`);

const jsonResponse = await apiStaticResponse.json();

Check warning on line 243 in scripts/webframeworks-deploy-tests/tests.ts

View workflow job for this annotation

GitHub Actions / lint (20)

Unsafe assignment of an `any` value
console.log({ apiStaticJSON, jsonResponse });

expect(apiStaticResponse.ok).to.be.true;
expect(apiStaticResponse.headers.get("content-type")).to.eql("application/json");
expect(apiStaticResponse.headers.get("custom-header")).to.eql("custom-value");
expect(await apiStaticResponse.json()).to.eql(apiStaticJSON);
expect(jsonResponse).to.eql(apiStaticJSON);
});

it("should have working SSG", async () => {
Expand Down

0 comments on commit c4d2992

Please sign in to comment.