Skip to content

Commit 88c40b3

Browse files
captbaritonefacebook-github-bot
authored andcommitted
Clarify how to update fixutres with Buck in failure message
Reviewed By: monicatang Differential Revision: D52552339 fbshipit-source-id: 275b02da563a9e6275684d8aafcd34ae77cc00fb
1 parent 8ef4b47 commit 88c40b3

File tree

1 file changed

+3
-1
lines changed
  • compiler/crates/fixture-tests/src

1 file changed

+3
-1
lines changed

compiler/crates/fixture-tests/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,9 @@ pub async fn test_fixture<T, U, V>(
170170
.write_all(actual.as_bytes())
171171
.unwrap();
172172
} else {
173-
panic!("Snapshot did not match. Run with UPDATE_SNAPSHOTS=1 to update.");
173+
panic!(
174+
"Snapshot did not match. Run with UPDATE_SNAPSHOTS=1 to update.\nIf using Buck you can use `buck test <YOUR_TEST_TARGET> -- --env UPDATE_SNAPSHOTS=1"
175+
);
174176
}
175177
}
176178
}

0 commit comments

Comments
 (0)