JamieMason / JamieMason/expect-more
Support jest esm mode
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 172
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description
## Description
I'm using jest in esm mode, because my code simply requires it. But i can't use this library as it expects jest globals.
## Suggested Solution
Import `expect` from `@jest/globals` .
https://jestjs.io/docs/ecmascript-modules#differences-between-esm-and-commonjs
## Help Needed
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 with the Jest ESM differences documentation linked in the issue and inspect where this library relies on Jest globals. Done means the library can be used in Jest ESM mode without assuming globals, with tests covering that mode.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- testing-qa
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100