multiformats / multiformats/js-multiformats
bug: not importing in jest
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 268
- Forks
- 57
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading packages/bbsVC/src/rdfCanonicalize.ts and reproducing the reported Jest failure. Then inspect the repository's Jest and module-resolution setup to determine why the multiformats/bases/base64 import is not resolved. Done means the import resolves and the affected test suite starts successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100