@@ -8,7 +8,7 @@ import * as path from "@std/path";
88import { getStdOutput , withBrowser } from "../../fresh/tests/test_utils.tsx" ;
99import { waitForText } from "../../fresh/tests/test_utils.tsx" ;
1010import { withChildProcessServer } from "../../fresh/tests/test_utils.tsx" ;
11- import { withTmpDir as withTmpDirBase } from "../../fresh/src/test_utils.ts" ;
11+ import { withTmpDir } from "../../fresh/src/test_utils.ts" ;
1212import { stub } from "@std/testing/mock" ;
1313
1414function stubPrompt ( result : string ) {
@@ -23,21 +23,14 @@ function stubConfirm(steps: Record<string, boolean> = {}) {
2323 ) ;
2424}
2525
26- function withTmpDir ( ) : Promise < { dir : string } & AsyncDisposable > {
27- return withTmpDirBase ( {
28- dir : path . join ( import . meta. dirname ! , ".." , ".." ) ,
29- prefix : "tmp_" ,
30- } ) ;
31- }
32-
3326async function patchProject ( dir : string ) : Promise < void > {
3427 const jsonPath = path . join ( dir , "deno.json" ) ;
3528 const json = JSON . parse ( await Deno . readTextFile ( jsonPath ) ) ;
3629
3730 json . workspace = [ ] ;
3831 // See https://github.com/denoland/deno/issues/27313
3932 // json.links = [path.fromFileURL(new URL("../..", import.meta.url))];
40- json . links = [ new URL ( "../.." , import . meta. url ) . href ] ;
33+ json . links = [ new URL ( "../../fresh " , import . meta. url ) . href ] ;
4134
4235 // assert with this stricter rule, before adding it to initialized projects
4336 json . lint . rules . include = [ "verbatim-module-syntax" ] ;
0 commit comments