Skip to content

Commit

Permalink
fix: pr comments fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Bayheck committed Aug 24, 2024
1 parent 5fd5a24 commit 647bf4a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/test-run/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -545,8 +545,7 @@ export default class TestRun extends AsyncEventEmitter {
}

private async _initRequestHooks (): Promise<void> {
if (!this.test.skip)
await Promise.all(this.test.requestHooks.map(hook => this._initRequestHook(hook)));
await Promise.all(this.test.requestHooks.map(hook => this._initRequestHook(hook)));
}

private _prepareSkipJsErrorsOption (): boolean | ExecuteClientFunctionCommand {
Expand Down Expand Up @@ -1444,8 +1443,10 @@ export default class TestRun extends AsyncEventEmitter {
}

public async initialize (): Promise<void> {
await this._clearCookiesAndStorages();
await this._initRequestHooks();
if (!this.test.skip) {
await this._clearCookiesAndStorages();
await this._initRequestHooks();
}
}

private async _clearCookiesAndStorages (): Promise<void> {
Expand Down

0 comments on commit 647bf4a

Please sign in to comment.