Skip to content

Commit 88d9050

Browse files
committed
test(stackable-version): Review and accept updated snapshots
1 parent 36ecc20 commit 88d9050

File tree

28 files changed

+897
-1631
lines changed

28 files changed

+897
-1631
lines changed

crates/stackable-versioned-macros/src/lib.rs

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,29 +1028,17 @@ where
10281028
}
10291029

10301030
#[cfg(test)]
1031-
mod snapshot_tests {
1031+
mod snapshots {
10321032
use insta::{assert_snapshot, glob};
10331033

10341034
use super::*;
10351035

1036-
// TODO (@Techassi): Combine tests, there are no default/k8s-specific tests anymore
10371036
#[test]
1038-
fn default() {
1037+
fn pass() {
1038+
// TODO (@Techassi): Re-add skip tests
10391039
let _settings_guard = test_utils::set_snapshot_path().bind_to_scope();
10401040

1041-
glob!("../tests/inputs/default/pass", "*.rs", |path| {
1042-
let formatted = test_utils::expand_from_file(path)
1043-
.inspect_err(|err| eprintln!("{err}"))
1044-
.unwrap();
1045-
assert_snapshot!(formatted);
1046-
});
1047-
}
1048-
1049-
#[test]
1050-
fn k8s() {
1051-
let _settings_guard = test_utils::set_snapshot_path().bind_to_scope();
1052-
1053-
glob!("../tests/inputs/k8s/pass", "*.rs", |path| {
1041+
glob!("../tests/inputs/pass", "*.rs", |path| {
10541042
let formatted = test_utils::expand_from_file(path)
10551043
.inspect_err(|err| eprintln!("{err}"))
10561044
.unwrap();

crates/stackable-versioned-macros/tests/snapshots/stackable_versioned_macros__snapshot_tests__default@attribute_enum.rs.snap

Lines changed: 0 additions & 95 deletions
This file was deleted.

crates/stackable-versioned-macros/tests/snapshots/stackable_versioned_macros__snapshot_tests__default@attribute_struct.rs.snap

Lines changed: 0 additions & 90 deletions
This file was deleted.

crates/stackable-versioned-macros/tests/snapshots/stackable_versioned_macros__snapshot_tests__default@basic_struct.rs.snap

Lines changed: 0 additions & 139 deletions
This file was deleted.

0 commit comments

Comments
 (0)