mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 04:39:10 +00:00
test(std/fs): make tests runnable from any directory (#7388)
This commit is contained in:
parent
334ed0e2f4
commit
c5d50737f0
9 changed files with 18 additions and 9 deletions
|
@ -9,7 +9,8 @@ import {
|
|||
import * as path from "../path/mod.ts";
|
||||
import { emptyDir, emptyDirSync } from "./empty_dir.ts";
|
||||
|
||||
const testdataDir = path.resolve("fs", "testdata");
|
||||
const moduleDir = path.dirname(path.fromFileUrl(import.meta.url));
|
||||
const testdataDir = path.resolve(moduleDir, "testdata");
|
||||
|
||||
Deno.test("emptyDirIfItNotExist", async function (): Promise<void> {
|
||||
const testDir = path.join(testdataDir, "empty_dir_test_1");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue