()
| 741 | |
| 742 | #[test] |
| 743 | fn skips_projects_inside_node_modules() { |
| 744 | let dir = tempfile::tempdir().unwrap(); |
| 745 | let cwd = dir.path().canonicalize().unwrap(); |
| 746 | let buried = cwd.join("node_modules").join("pkg"); |
| 747 | fs::create_dir_all(&buried).unwrap(); |
| 748 | make_project(&buried); |
| 749 | |
| 750 | let out = gather_local_projects_from(&cwd, &None); |
| 751 | assert!( |
| 752 | !out.contains(&buried), |
| 753 | "projects inside node_modules must be skipped, got {out:?}" |
| 754 | ); |
| 755 | } |
| 756 | |
| 757 | #[test] |
| 758 | fn skips_home_data_dir_via_canonical_path() { |
nothing calls this directly
no test coverage detected