8000 fix(pwt): support async config by DudaGod · Pull Request #673 · gemini-testing/html-reporter · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix(pwt): support async config #673

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 10, 2025
Merged

Conversation

DudaGod
Copy link
Member
@DudaGod DudaGod commented Jun 10, 2025

No description provided.

@@ -230,7 +235,7 @@ function readPwtConfig(opts: ToolAdapterOptionsFromCli): {configPath: string, co
resolvedConfigPath = path.resolve(configPath);
// eslint-disable-next-line @typescript-eslint/no-var-requires
const configModule = require(resolvedConfigPath);
originalConfig = configModule.__esModule ? configModule.default : configModule;
originalConfig = await (configModule.__esModule ? configModule.default : configModule);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in order to support async pwt config

return new this(options);
}
): Promise<PlaywrightToolAdapter> {
const {config, configPath} = await readPwtConfig(options);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move read config to create method in order to be able to await it

Copy link
pkg-pr-new bot commented Jun 10, 2025

Open in StackBlitz

npm i https://pkg.pr.new/gemini-testing/html-reporter@673

commit: c86b8a9

Copy link
github-actions bot commented Jun 10, 2025

✅ Testplane run succeed

Report

@DudaGod DudaGod merged commit 69f3fa4 into master Jun 10, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0