diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index a9ae96f..318113c 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -57,6 +57,8 @@ jobs: rm -rf apps/nxmesh-master/frontend-dist || true cp -r apps/nxmesh-frontend/dist apps/nxmesh-master/frontend-dist + ls -la apps/nxmesh-master/frontend-dist + - name: Run tests run: cargo test --all-features -- --show-output diff --git a/apps/nxmesh-master/src/routes/frontend/mod.rs b/apps/nxmesh-master/src/routes/frontend/mod.rs index d510d1e..faaeb41 100644 --- a/apps/nxmesh-master/src/routes/frontend/mod.rs +++ b/apps/nxmesh-master/src/routes/frontend/mod.rs @@ -73,6 +73,16 @@ async fn get_file_handler( mod tests { use super::*; + #[tokio::test] + async fn test_asset() { + // list all embedded assets for debugging + let assets = FrontendAssets::iter().collect::>(); + assert!( + !assets.is_empty(), + "Expected to find embedded assets, but found none" + ); + } + #[tokio::test] async fn test_get_index_html() { let index_html = get_index_html();