Skip to content

Commit

Permalink
Clarify how to update fixutres with Buck in failure message
Browse files Browse the repository at this point in the history
Reviewed By: monicatang

Differential Revision: D52552339

fbshipit-source-id: 275b02da563a9e6275684d8aafcd34ae77cc00fb
  • Loading branch information
captbaritone authored and facebook-github-bot committed Jan 9, 2024
1 parent 8ef4b47 commit 88c40b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion compiler/crates/fixture-tests/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@ pub async fn test_fixture<T, U, V>(
.write_all(actual.as_bytes())
.unwrap();
} else {
panic!("Snapshot did not match. Run with UPDATE_SNAPSHOTS=1 to update.");
panic!(
"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"
);
}
}
}
Expand Down

0 comments on commit 88c40b3

Please sign in to comment.