Skip to content

Commit c61c649

Browse files
authored
test: fail on missing per-kind snapshot instead of auto-writing it (#21027)
1 parent a514897 commit c61c649

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/harness/snapshot/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ const matchKindSnapshot = function (caseDir, kind, received) {
121121
getActiveSnapshotState() || expect.getState().snapshotState;
122122

123123
const kindState = new SnapshotState(snapshotPath, {
124-
updateSnapshot: parentState._updateSnapshot,
124+
updateSnapshot: parentState._updateSnapshot === "all" ? "all" : "none",
125125
snapshotFormat: parentState.snapshotFormat,
126126
expand: parentState.expand,
127127
prettierPath: parentState._prettierPath,

0 commit comments

Comments
 (0)