dappeteer
dappeteer copied to clipboard
Dappeteer options not being passed by jest.config.js or package.json (when using the preset)
Describe the bug
Dappeteer options not being passed by jest.config.js or package.json (when using @chainsafe/dappeteer
Jest preset).
To Reproduce
Steps to reproduce the behavior:
package.json -> jest
key:
"jest": {
"preset": "@chainsafe/dappeteer",
"dappeteer": {
"metamaskVersion": "v10.1.1"
}
}
Same thing happens when using jest.config.js
file.
Other Jest options (e.g. verbose=false) do work when using the same config.
Expected behavior Dappeteer options should be passed as-is when using the preset. Currently the workaround is to use custom setup/teardown/environment files that pass these options.
System:
- OS: MacOS
- OS version v12.1
- NodeJs version: v14.18.2
- dAppeteer version v2.3.0
- testing framework: jest
- testing framework version: v27.4.5