Skip to content

Commit d9a8f45

Browse files
committed
Ignore the errors when assigning to global this
1 parent a20df25 commit d9a8f45

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

packages/cli/src/test-page.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ export function useTestPage(
4141
);
4242
await page.evaluate(source);
4343
await page.evaluate(() => {
44+
//@ts-ignore-error this is ok. it only happens in dev mode
4445
Object.assign(globalThis, {...globalThis["interactorAgent"]["interactors"]});
46+
//@ts-ignore-error this is ok. it only happens in dev mode
4547
Object.assign(globalThis, globalThis["interactorAgent"]["matchers"]);
4648
});
4749
digest = nextdigest;

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2791,7 +2791,7 @@ __metadata:
27912791
typescript: "npm:~5.4.5"
27922792
yargs: "npm:^17.7.2"
27932793
bin:
2794-
interactors: ./dist/index.js
2794+
interactors: ./dist/main.js
27952795
languageName: unknown
27962796
linkType: soft
27972797

0 commit comments

Comments
 (0)