Skip to content

bug: not importing in jest #299

@NikZak

Description

@NikZak

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/jest-resolve@29.7.0/node_modules/jest-resolve/build/resolver.js:427:11)
      ...

Why is it not importing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions