Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jest reports "Invalid argument: --runInBand" #10801

Closed
Singtah opened this issue Nov 9, 2020 · 2 comments 路 May be fixed by joseroubert08/jest#118
Closed

Jest reports "Invalid argument: --runInBand" #10801

Singtah opened this issue Nov 9, 2020 · 2 comments 路 May be fixed by joseroubert08/jest#118

Comments

@Singtah
Copy link

Singtah commented Nov 9, 2020

Jest seems to fail on require statement. I need to keep --runInBand argument for other db related tests that uses the same ressource.

馃悰 Bug Report

    Invalid argument: --runInBand.

      3 | import {Anchor} from "../../../../corelogic/models/anchor.interface";
      4 |
    > 5 | const chp = require('chainpoint-js');
        |             ^
      6 | 
      7 |
      8 | export class RealChainpointGateway implements ChainpointGateway {

      at Config.parseArg (node_modules/bcfg/lib/config.js:884:17)
      at Config.load (node_modules/bcfg/lib/config.js:117:12)
      at node_modules/chainpoint-js/dist/bundle.js:1:9189
      at Module.<anonymous> (node_modules/chainpoint-js/dist/bundle.js:1:9257)
      at t (node_modules/chainpoint-js/dist/bundle.js:1:393)
      at Object.<anonymous> (node_modules/chainpoint-js/dist/bundle.js:1:1683)
      at t (node_modules/chainpoint-js/dist/bundle.js:1:393)
      at node_modules/chainpoint-js/dist/bundle.js:1:1192
      at node_modules/chainpoint-js/dist/bundle.js:1:1202
      at node_modules/chainpoint-js/dist/bundle.js:1:108
      at Object.<anonymous> (node_modules/chainpoint-js/dist/bundle.js:1:259)
      at Object.<anonymous> (src/adapters/gateways/internal/chainpoint/realChainpointGateway.ts:5:13)
      at Object.<anonymous> (src/adapters/gateways/internal/chainpoint/realChainpointGateway.ispec.ts:2:1)

I can provide small repo with 1 test file / 1 source file that imports the package

Expected behavior

Be able to require the package and running tests with runInBand

config file : https://pastebin.com/KZuKSWQW

  System:
    OS: Linux 4.4 Ubuntu 18.04.2 LTS (Bionic Beaver)
    CPU: (8) x64 AMD Ryzen 5 PRO 3500U w/ Radeon Vega Mobile Gfx
  Binaries:
    Node: 12.16.1 - /usr/bin/node
    Yarn: 1.22.4 - /mnt/c/Program Files (x86)/Yarn/bin/yarn
    npm: 6.14.2 - /usr/bin/npm
  npmPackages:
    jest: ^26.0.0 => 26.0.0
@SimenB
Copy link
Member

SimenB commented Nov 10, 2020

This is an issue with chainpoint-js as can be seen from the stack trace - it's not Jest that throws this error

Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants