Skip to content

Commit

Permalink
Ignore the errors when assigning to global this
Browse files Browse the repository at this point in the history
  • Loading branch information
cowboyd committed Jun 10, 2024
1 parent a20df25 commit 5fe211d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/cli/src/test-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ export function useTestPage(
);
await page.evaluate(source);
await page.evaluate(() => {
//@ts-ignore-error this is ok. it only happens in dev mode
Object.assign(globalThis, {...globalThis["interactorAgent"]["interactors"]});
//@ts-ignore-error this is ok. it only happens in dev mode
Object.assign(globalThis, globalThis["interactorAgent"]["matchers"]);
});
digest = nextdigest;
Expand Down

0 comments on commit 5fe211d

Please sign in to comment.