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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fails to import chainpoint-js during test sessions #9

Closed
Singtah opened this issue Nov 10, 2020 · 0 comments
Closed

fails to import chainpoint-js during test sessions #9

Singtah opened this issue Nov 10, 2020 · 0 comments

Comments

@Singtah
Copy link

Singtah commented Nov 10, 2020

I can't load the client library during Jest test sessions. Not sure why it fails with --runInBand arg which is valid.

`Invalid argument: --runInBand.

  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)`

jestjs/jest#10801

System: OS: Linux 4.4 Ubuntu 18.04.2 LTS (Bionic Beaver) 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

@jacohend jacohend closed this as completed Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants