nodejs / nodejs/require-in-the-middle

Can't be tested with Jest

Open
#50 3 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
186
Forks
34
PR merge metrics
No merged PRs in 30d

Description

Seems like Jest magic on the require function is clashing with require-in-the-middle.
Not sure if there's a way to overcome this.
Decided to open this issue to discuss this, maybe someone can share a solution.

Related:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names Jest and require-in-the-middle but does not identify repository files or tests. Start by reproducing the conflict in a Jest test, then compare the behavior with the linked Jest issue and determine whether a supported solution can be demonstrated.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
testing-qa, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.