You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apollo-federation/src/schema/schema_upgrader.rs
+3-4
Original file line number
Diff line number
Diff line change
@@ -518,7 +518,7 @@ mod tests {
518
518
&r#"Removed @provides directive on field "Random.x" as it is of non-composite type "Int": while not rejected by federation 0.x, such @provide is nonsensical and was ignored"#.to_string()
519
519
));
520
520
521
-
assert_eq!(
521
+
insta::assert_snapshot!(
522
522
s1.schema().schema().to_string(),
523
523
r#"
524
524
schema
@@ -596,7 +596,7 @@ mod tests {
596
596
]
597
597
);
598
598
599
-
assert_eq!(
599
+
insta::assert_snapshot!(
600
600
s.schema().schema().to_string(),
601
601
r#"
602
602
schema
@@ -831,7 +831,7 @@ mod tests {
831
831
// router that supports the build pipeline they're upgrading to, but that
832
832
// mechanism isn't in place yet.
833
833
// - Trevor
834
-
assert_eq!(
834
+
insta::assert_snapshot!(
835
835
subgraph.schema().schema().to_string(),
836
836
r#"
837
837
schema
@@ -842,7 +842,6 @@ mod tests {
842
842
}
843
843
"#
844
844
);
845
-
// TODO: Check if SDL assertions are better done with assert_snapshot
0 commit comments