fix: Initialize Notifications resource in wonderevent tests

This commit is contained in:
demenik
2025-12-10 18:37:22 +01:00
parent 38f0debde5
commit 57904e055b

View File

@@ -3,6 +3,7 @@ use pomomon_garden::features::config::components::{BerrySeedConfig, GameConfig};
use pomomon_garden::features::core::states::AppState;
use pomomon_garden::features::grid::components::{Grid, Tile, TileState};
use pomomon_garden::features::inventory::components::ItemType;
use pomomon_garden::features::notification::components::Notifications;
use pomomon_garden::features::phase::components::{CurrentPhase, Phase, TimerSettings};
use pomomon_garden::features::wonderevent::components::{Position, WonderEventMessage};
use pomomon_garden::features::wonderevent::{
@@ -16,6 +17,7 @@ fn test_wonder_event_triggers() {
app.add_plugins(bevy::state::app::StatesPlugin);
app.add_plugins(WonderEventPlugin);
app.insert_resource(Notifications::default());
app.insert_resource(GameConfig::default());
app.insert_resource(TimerSettings {
focus_duration: 60, // 60 seconds
@@ -94,6 +96,7 @@ fn test_wonder_response_handling() {
app.add_plugins(MinimalPlugins);
app.add_plugins(bevy::state::app::StatesPlugin);
app.add_plugins(WonderEventPlugin);
app.insert_resource(Notifications::default());
app.insert_resource(GameConfig {
berry_seeds: vec![BerrySeedConfig {
name: "TestSeed".to_string(),