Skip to content

Commit

Permalink
bump reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
tianfeng92 committed Apr 4, 2024
1 parent 3f83a02 commit 2d25e98
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 12 deletions.
21 changes: 12 additions & 9 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"homepage": "https://github.com/saucelabs/sauce-playwright-runner",
"dependencies": {
"@playwright/test": "1.41.2",
"@saucelabs/playwright-reporter": "1.0.0",
"@saucelabs/playwright-reporter": "1.1.0",
"@saucelabs/testcomposer": "2.0.0",
"dotenv": "16.4.5",
"lodash": "4.17.21",
Expand Down
4 changes: 2 additions & 2 deletions src/playwright-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ async function runPlaywright(

const defaultArgs = {
output:
process.env.SAUCE_SYNC_WEB_ASSETS === 'true'
runCfg.env?.SAUCE_SYNC_WEB_ASSETS === 'true'
? undefined
: runCfg.playwrightOutputFolder,
config: configFile,
Expand Down Expand Up @@ -336,7 +336,7 @@ async function runPlaywright(
SAUCE_REPORT_OUTPUT_NAME: runCfg.sauceReportFile,
FORCE_COLOR: '0',
SAUCE_WEB_ASSETS_DIR:
process.env.SAUCE_SYNC_WEB_ASSETS === 'true' ? runCfg.assetsDir : '',
runCfg.env?.SAUCE_SYNC_WEB_ASSETS === 'true' ? runCfg.assetsDir : '',
};

utils.setEnvironmentVariables(env);
Expand Down
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export interface RunnerConfig {

args: Record<string, unknown>;
artifacts: Artifacts;
env?: Record<string, string>;
}

export interface Suite {
Expand Down

0 comments on commit 2d25e98

Please sign in to comment.