Skip to content

Commit

Permalink
fix(dev): prevent fs-fixture causing a re-run loop
Browse files Browse the repository at this point in the history
Some part of the `tsx watch` mode causes it to observe file changes that
are caused by the fs-fixture tool in the test suite, leading to the test
suite running repeatedly. Ignoring the system's temporary directory
seems to at least put a bandaid on the problem.

This is unlikely to be compatible across every platform, so, suggestions
on improvements welcome.
  • Loading branch information
glsignal committed Jul 13, 2024
1 parent 49b3232 commit 351fc82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"scripts": {
"build": "pkgroll --target=node16.19.0",
"test": "tsx tests",
"dev": "tsx watch --conditions=development tests",
"dev": "tsx watch --ignore /tmp --conditions=development tests",
"lint": "lintroll --cache .",
"type-check": "tsc --noEmit",
"prepack": "pnpm build && clean-pkg-json"
Expand Down

0 comments on commit 351fc82

Please sign in to comment.