File tree Expand file tree Collapse file tree 5 files changed +18
-2
lines changed Expand file tree Collapse file tree 5 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ scuffle_package(
1212 proc_macro_deps = ["//crates/changelog" ],
1313 test = scuffle_test (
1414 data = glob (["assets/*" ]),
15+ insta = True ,
1516 env = {
1617 "ASSETS_DIR" : "crates/settings/assets" ,
1718 },
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ thiserror = "2"
6060# For examples:
6161serde_derive = " 1"
6262smart-default = " 0.7"
63+ insta = " 1.42"
6364
6465[package .metadata .xtask .powerset ]
6566additive-features = [
Original file line number Diff line number Diff line change @@ -357,8 +357,8 @@ mod tests {
357357 #[ test]
358358 fn parse_empty ( ) {
359359 let err = parse_settings :: < TestSettings > ( Options :: default ( ) ) . expect_err ( "expected error" ) ;
360- assert ! ( matches!( err, crate :: SettingsError :: Config ( config :: ConfigError :: Message ( _ ) ) ) ) ;
361- assert_eq ! ( err. to_string ( ) , "missing field ` key`" ) ;
360+ assert ! ( matches!( err, crate :: SettingsError :: Config ( _ ) ) ) ;
361+ insta :: assert_snapshot !( err, @ r# "missing configuration field " key""# ) ;
362362 }
363363
364364 #[ test]
Original file line number Diff line number Diff line change @@ -2173,6 +2173,11 @@ _NORMAL_DEV_DEPENDENCIES = {
21732173 },
21742174 },
21752175 "crates/settings" : {
2176+ _REQUIRED_FEATURE : {
2177+ _COMMON_CONDITION : {
2178+ "insta" : Label ("@cargo_vendor//:insta-1.43.2" ),
2179+ },
2180+ },
21762181 },
21772182 "crates/signal" : {
21782183 _REQUIRED_FEATURE : {
@@ -2435,6 +2440,10 @@ _NORMAL_DEV_ALIASES = {
24352440 },
24362441 },
24372442 "crates/settings" : {
2443+ _REQUIRED_FEATURE : {
2444+ _COMMON_CONDITION : {
2445+ },
2446+ },
24382447 },
24392448 "crates/signal" : {
24402449 _REQUIRED_FEATURE : {
@@ -3458,6 +3467,10 @@ _PROC_MACRO_DEV_ALIASES = {
34583467 },
34593468 },
34603469 "crates/settings" : {
3470+ _REQUIRED_FEATURE : {
3471+ _COMMON_CONDITION : {
3472+ },
3473+ },
34613474 },
34623475 "crates/signal" : {
34633476 _REQUIRED_FEATURE : {
You can’t perform that action at this time.
0 commit comments