codeceptjs / codeceptjs/helper

Helper baseclass sets `this.opts` in `setConfig`, not `this.config`?

Open
#5 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1
Forks
4
PR merge metrics
No merged PRs in 30d

Description

I was trying to work out why the documented details around `Scenario(...).config('SomeHelper', {...})` weren't working for me, and as
far as I can tell, the default base class implementation of `_setConfig` is actually setting `this.opts` rather than `this.config` (which I presume is the correct version, since it's mentioned both in the docs and is assigned initially in the constructor).

https://github.com/codeceptjs/helper/blob/master/helper.js#L48

Unless I'm misunderstanding something here, I'd expect _setConfig to also be updating `config` member?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.