summaryrefslogtreecommitdiff
path: root/cli/fs_util.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-04-01 11:15:37 -0400
committerGitHub <noreply@github.com>2022-04-01 11:15:37 -0400
commit1c37ac33526dc45ad0b3f83ca8294dbb55548096 (patch)
tree426978168928c5e7c2223e4906005fa23fb34cd6 /cli/fs_util.rs
parent8ca4c1819f3e7a8716c68034e256355334d53b44 (diff)
chore(tests): use custom temp dir creation for the tests (#14153)
Diffstat (limited to 'cli/fs_util.rs')
-rw-r--r--cli/fs_util.rs6
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"];