1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
use Utf8PathBuf;
use crate::;
async
// TODO: `cargo-leptos` sets the cwd which is a global env
// and that prevents builds to run in parallel in the same process
//
// #[tokio::test]
// async fn project_build() {
// let command = Commands::Build(Opts::default());
// let cli = Cli {
// manifest_path: Some(Utf8PathBuf::from("examples/project/Cargo.toml")),
// log: Vec::new(),
// command,
// };
// run(cli).await.unwrap();
// // when running the current working directory is changed to the manifest path.
// let site_dir = Utf8PathBuf::from("target/site");
// insta::assert_display_snapshot!(site_dir.ls_ascii(0).unwrap_or_default());
// }