alchemy-sdk-js icon indicating copy to clipboard operation
alchemy-sdk-js copied to clipboard

Breaks Jest tests

Open elie222 opened this issue 2 years ago • 0 comments

[REQUIRED] Environment

  • Browser version: no browser
  • Alchemy SDK version: 2.2.1

[REQUIRED] Describe the problem

Alchemy SDK breaks our Jest tests:

    Details:

    /home/runner/work/..../node_modules/alchemy-sdk/dist/esm/index.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import * as utils from './api/utils';
                                                                                      ^^^^^^

    SyntaxError: Cannot use import statement outside a module

How to reproduce:

Use the SDK with Jest.

Relevant code or sample repro:

elie222 avatar Nov 17 '22 18:11 elie222