js-multiformats icon indicating copy to clipboard operation
js-multiformats copied to clipboard

bug: not importing in jest

Open NikZak opened this issue 7 months ago • 0 comments

I have this in my file

import { base64url } from 'multiformats/bases/base64';

I run jest for testing and get this error

  ● Test suite failed to run

    Cannot find module 'multiformats/bases/base64' from 'packages/bbsVC/src/rdfCanonicalize.ts'
...
    > 6 | import { base64url } from 'multiformats/bases/base64';
        | ^
...
      at Resolver._throwModNotFoundError (node_modules/.pnpm/[email protected]/node_modules/jest-resolve/build/resolver.js:427:11)
      ...

Why is it not importing?

NikZak avatar Jul 15 '24 13:07 NikZak