Support ESM when watch mode reruns files
Open
Nobody has claimed this yet.
Component: CLI
Type: Enhancement
- Dominant language
- JavaScript
- Stars
- 4k
- Forks
- 773
- PR merge metrics
- No merged PRs in 30d
Description
Tell us about your runtime:
- QUnit version: 2.19.1
- Which environment are you using? (e.g., browser, Node): Node
- How are you running QUnit? (e.g., QUnit CLI, Grunt, Karma, manually in browser): Terminal
What are you trying to do?
Code that reproduces the problem:
Running qunit -w. On first run it successfully outputs the results of the tests, upon making a change to the test file, the error occurs:
What did you expect to happen?
Test should just re-run. Any help would be appreciated!
Contributor guide
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 reproducing the reported qunit -w workflow in Node with an ESM test file, then trace the watch-mode rerun path that handles the changed test file. Done means the initial run and subsequent rerun complete successfully without the reported error; the issue names no source files or dedicated tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- cli, testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100