Skip to content

Commit 44f5649

Browse files
authored
rephrasing
1 parent dc23014 commit 44f5649

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contributor_docs/unit_testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ visualTest('2D objects maintain correct size', function(p5, screenshot) {
229229
});
230230
```
231231

232-
No manual registration necessary. Any file placed in `test/unit/visual/cases` is auto-discovered by Vitest.
232+
To add a new test file, place it into `test/unit/visual/cases`. This will be auto-discovered by Vitest - no manual registration needed.
233233

234234
When you add a new test, running `npm test` will generate new screenshots for any visual tests that do not yet have them. Those screenshots will then be used as a reference the next time tests run to make sure the sketch looks the same. If a test intentionally needs to look different, you can delete the folder matching the test name in the `test/unit/visual/screenshots` folder, and then re-run `npm test` to generate a new one.
235235

0 commit comments

Comments
 (0)