Skip to content

test: prevent watch mode from retriggering - #1301

Closed
Benjamin Christopher Simmonds (benibenj) wants to merge 1 commit into
mainfrom
benibenj/agents/easy-issue-implementation-draft-pr
Closed

test: prevent watch mode from retriggering#1301
Benjamin Christopher Simmonds (benibenj) wants to merge 1 commit into
mainfrom
benibenj/agents/easy-issue-implementation-draft-pr

Conversation

@benibenj

Copy link
Copy Markdown
Contributor

Summary

  • ignore test-generated src/test/fixtures/tmp-* directories in Mocha watch mode
  • prevent npm run watch:test from retriggering indefinitely when tests create temporary fixtures

Fixes #1215.

Validation

  • npm run compile
  • npm test (179 passing; two unrelated Windows failures in the existing version test: a 5-second npm version timeout and subsequent EPERM cleanup failure)
  • git diff --check
  • verified the Mocha configuration parses with the expected watch-ignore glob

Ignore temporary fixture directories generated by the test suite so Mocha watch mode does not rerun indefinitely. Fixes #1215.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

watch:test triggers infinitely because its watching generated files

1 participant