Skip to content

Commit

Permalink
fix: Load TestCafe config from project folder
Browse files Browse the repository at this point in the history
  • Loading branch information
tianfeng92 committed Apr 1, 2024
1 parent db6dbaa commit be40696
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/testcafe-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ export function buildCommandLine(
// proxy to communicate with the browser.
function isCDPDisabled() {
const cfg = require(path.join(__dirname, 'sauce-testcafe-config.cjs'));

Check warning on line 267 in src/testcafe-runner.ts

View workflow job for this annotation

GitHub Actions / test

Require statement not part of import statement
console.log('cfg: ', cfg);
return cfg.disableNativeAutomation;
}

Expand Down

0 comments on commit be40696

Please sign in to comment.