@@ -413,12 +413,7 @@ async fn cursor_position_append_eof() -> anyhow::Result<()> {
413413#[tokio::test(flavor = "multi_thread")]
414414async fn select_mode_tree_sitter_next_function_is_union_of_objects() -> anyhow::Result<()> {
415415 test_with_config(
416− Args {
417− files: vec![(PathBuf::from("foo.rs"), Position::default())],
418− ..Default::default()
419− },
420− Config::default(),
421− helpers::test_syntax_conf(None),
416+ AppBuilder::new().with_file("foo.rs", None),
422417 (
423418 helpers::platform_line(indoc! {"\
424419 #[/|]#// Increments
@@ -443,12 +438,7 @@ async fn select_mode_tree_sitter_next_function_is_union_of_objects() -> anyhow::
443438#[tokio::test(flavor = "multi_thread")]
444439async fn select_mode_tree_sitter_prev_function_unselects_object() -> anyhow::Result<()> {
445440 test_with_config(
446− Args {
447− files: vec![(PathBuf::from("foo.rs"), Position::default())],
448− ..Default::default()
449− },
450− Config::default(),
451− helpers::test_syntax_conf(None),
441+ AppBuilder::new().with_file("foo.rs", None),
452442 (
453443 helpers::platform_line(indoc! {"\
454444 /// Increments
@@ -474,12 +464,7 @@ async fn select_mode_tree_sitter_prev_function_unselects_object() -> anyhow::Res
474464async fn select_mode_tree_sitter_prev_function_goes_backwards_to_object() -> anyhow::Result<()> {
475465 // Note: the anchor stays put and the head moves back.
476466 test_with_config(
477− Args {
478− files: vec![(PathBuf::from("foo.rs"), Position::default())],
479− ..Default::default()
480− },
481− Config::default(),
482− helpers::test_syntax_conf(None),
467+ AppBuilder::new().with_file("foo.rs", None),
483468 (
484469 helpers::platform_line(indoc! {"\
485470 /// Increments
@@ -503,12 +488,7 @@ async fn select_mode_tree_sitter_prev_function_goes_backwards_to_object() -> any
503488 .await?;
504489
505490 test_with_config(
506− Args {
507− files: vec![(PathBuf::from("foo.rs"), Position::default())],
508− ..Default::default()
509− },
510− Config::default(),
511− helpers::test_syntax_conf(None),
491+ AppBuilder::new().with_file("foo.rs", None),
512492 (
513493 helpers::platform_line(indoc! {"\
514494 /// Increments