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,snapshots
if it containstest
ortests
directories, and otherwise directly alongside the test file.You can also configure
snapshotDir
, in which all snapshots are the…