How does AVA decide where to put snapshots #2765
-
|
I've tests in two folders: How does AVA decide where to put snapshots? Shouldn't they always be inside a dedicated snapshot folder? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
|
See: Lines 396 to 405 in c57067b
You can also configure |
Beta Was this translation helpful? Give feedback.

See:
ava/lib/snapshot-manager.js
Lines 396 to 405 in c57067b
__snapshots__if the relative path to the test file contains a__tests__directory,snapshotsif it containstestortestsdirectories, and otherwise directly alongside the test file.You can also configure
snapshotDir, in which all snapshots are the…