Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Dappeteer options not being passed by jest.config.js or package.json (when using the preset) #75

Closed
Tracked by #98
budowski opened this issue Dec 28, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@budowski
Copy link

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
@budowski budowski added the bug Something isn't working label Dec 28, 2021
@BeroBurny BeroBurny mentioned this issue Sep 14, 2022
4 tasks
@mpetrunic mpetrunic moved this to New Issues in Dappeteer Sep 22, 2022
@sofianeOuafir
Copy link

Creating a dappeteer.config.js file worked for me:


// in dappeteer.config.js

const config = {
  dappeteer: {
    headless: process.env.IN_BROWSER === 'false',
    metamaskVersion: 'v10.25.0',
  },
  metamask: {
    seed:
      'seed here',
    password: 'password here',
  },
}

module.exports = config


@BeroBurny
Copy link
Contributor

seems as resolved

@github-project-automation github-project-automation bot moved this from New Issues to Done/Closed in Dappeteer Mar 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
Status: Done/Closed
Development

No branches or pull requests

3 participants