fix: test compilation — add lexicons_dir to test AppConfig, fix node::list arity

Author: Aaron Steven White
Commit f161cf52c7bfcb76d391412fbc252b50e1914cfd
Parent: 62e8664c2f
Structural diff unavailable

These commits were pushed via plain git push, so no pre-parsed schemas are available. Install git-remote-cospan and re-push via panproto:// to see scope-level changes, breaking change detection, and semantic diffs.

brew install panproto/tap/git-remote-cospan
3 files changed +4 -3
@@ -34,7 +34,7 @@ async fn node_upsert_and_list(pool: PgPool) {
3434 
3535     db::node::upsert(&pool, &node2).await.unwrap();
3636 
37-    let nodes = db::node::list(&pool, 10).await.unwrap();
37+    let nodes = db::node::list(&pool, 10, None).await.unwrap();
3838     assert_eq!(nodes.len(), 2);
3939 
4040     // Upsert same DID updates the row (no new row)
@@ -47,7 +47,7 @@ async fn node_upsert_and_list(pool: PgPool) {
4747     };
4848     db::node::upsert(&pool, &updated).await.unwrap();
4949 
50-    let nodes = db::node::list(&pool, 10).await.unwrap();
50+    let nodes = db::node::list(&pool, 10, None).await.unwrap();
5151     assert_eq!(nodes.len(), 2);
5252 }
5353 
@@ -23,6 +23,7 @@ async fn build_state(pool: PgPool) -> Arc<AppState> {
2323         database_url: String::new(), // not used, pool already connected
2424         jetstream_url: "wss://localhost:0/unused".to_string(),
2525         listen: "127.0.0.1:0".to_string(),
26+        lexicons_dir: "packages/lexicons".to_string(),
2627     };
2728 
2829     let oauth_config = OAuthConfig {
@@ -270,7 +270,7 @@ fn main() -> Result<()> {
270270     // Write appview-integrated copies and format them
271271     let appview_gen_dir = workspace_root.join("crates/cospan-appview/src/db/generated");
272272     fs::create_dir_all(&appview_gen_dir)?;
273-    let gen_rs_files = ["types.rs", "crud.rs"];
273+    let gen_rs_files = ["types.rs", "crud.rs", "mod.rs"];
274274     fs::write(appview_gen_dir.join("types.rs"), &all_row_types)?;
275275     fs::write(appview_gen_dir.join("crud.rs"), &all_crud)?;
276276     fs::write(
cospan · schematic version control on atproto built on AT Protocol