diff options
Diffstat (limited to 'cli/fs_util.rs')
-rw-r--r-- | cli/fs_util.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/fs_util.rs b/cli/fs_util.rs index 9d60dad28..5a32d5c39 100644 --- a/cli/fs_util.rs +++ b/cli/fs_util.rs @@ -406,7 +406,7 @@ pub fn path_with_stem_suffix(path: &Path, suffix: &str) -> PathBuf { #[cfg(test)] mod tests { use super::*; - use tempfile::TempDir; + use test_util::TempDir; #[test] fn resolve_from_cwd_child() { @@ -548,7 +548,7 @@ mod tests { // ├── g.d.ts // └── .gitignore - let t = TempDir::new().expect("tempdir fail"); + let t = TempDir::new(); let root_dir_path = t.path().join("dir.ts"); let root_dir_files = ["a.ts", "b.js", "c.tsx", "d.jsx"]; @@ -609,7 +609,7 @@ mod tests { // ├── g.d.ts // └── .gitignore - let t = TempDir::new().expect("tempdir fail"); + let t = TempDir::new(); let root_dir_path = t.path().join("dir.ts"); let root_dir_files = ["a.ts", "b.js", "c.tsx", "d.jsx"]; |