diff options
Diffstat (limited to 'std/fs/copy_test.ts')
-rw-r--r-- | std/fs/copy_test.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/std/fs/copy_test.ts b/std/fs/copy_test.ts index d21524505..db9451200 100644 --- a/std/fs/copy_test.ts +++ b/std/fs/copy_test.ts @@ -12,7 +12,8 @@ import { ensureDir, ensureDirSync } from "./ensure_dir.ts"; import { ensureFile, ensureFileSync } from "./ensure_file.ts"; import { ensureSymlink, ensureSymlinkSync } from "./ensure_symlink.ts"; -const testdataDir = path.resolve("fs", "testdata"); +const moduleDir = path.dirname(path.fromFileUrl(import.meta.url)); +const testdataDir = path.resolve(moduleDir, "testdata"); function testCopy( name: string, |