fix(cli): module graph handles redirects properly (#8159)

Fixes #8154
This commit is contained in:
Kitson Kelly 2020-10-28 20:38:09 +11:00 committed by GitHub
parent a2f126068e
commit e01664d0ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 43 additions and 6 deletions

View file

@ -2859,6 +2859,12 @@ itest!(proto_exploit {
output: "proto_exploit.js.out",
});
itest!(redirect_cache {
http_server: true,
args: "cache --reload http://localhost:4548/cli/tests/subdir/redirects/a.ts",
output: "redirect_cache.out",
});
itest!(deno_test_coverage {
args: "test --coverage --unstable test_coverage.ts",
output: "test_coverage.out",

View file

@ -0,0 +1,6 @@
Download http://localhost:4548/cli/tests/subdir/redirects/a.ts
Download http://localhost:4546/cli/tests/subdir/redirects/a.ts
Download http://localhost:4545/cli/tests/subdir/redirects/a.ts
Download http://localhost:4545/cli/tests/subdir/redirects/b.ts
Download http://localhost:4545/cli/tests/subdir/redirects/a.ts
Check http://localhost:4548/cli/tests/subdir/redirects/a.ts

View file

@ -0,0 +1,9 @@
import { createA } from "./b.ts";
export class A {
private _a = "a";
}
export function start(): A {
return createA();
}

View file

@ -0,0 +1,5 @@
import { A } from "./a.ts";
export function createA(): A {
return new A();
}