Skip to content

Commit

Permalink
FIxes
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesNK committed Aug 14, 2024
1 parent 944cfdf commit af000bb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
const JestPuppeteerEnvironment = require("jest-environment-puppeteer").TestEnvironment;
const expect = require('expect-puppeteer').expect;

class CustomEnvironment extends JestPuppeteerEnvironment {
// Load page and get test names to run
async setup() {
await super.setup();

if (this.global.context.isIncognito === undefined) {
this.global.context.isIncognito = () => false;
}

console.log('Calling gRPC-Web client app');

var page = this.global.page;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions testassets/InteropTestsGrpcWebWebsite/Tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"dependencies": {
"jest": "^29.7.0",
"jest-puppeteer": "^10.0.1",
"expect-puppeteer": "^10.0.0",
"puppeteer": "^23.0.2"
}
}

0 comments on commit af000bb

Please sign in to comment.