diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2023-03-05 17:47:04 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-05 12:47:04 -0500 |
commit | 273777f7d9201de92b6f8c6f2f9579321165ec17 (patch) | |
tree | 2e325382337062ddc6408e2f76b19b5f68d4b4bd /cli/tests/testdata | |
parent | c9c782940ea693664c462fb6f94d214ed54a158c (diff) |
fix(check): include dts files in tsc roots (#18026)
Diffstat (limited to 'cli/tests/testdata')
-rw-r--r-- | cli/tests/testdata/check/check_dts.d.ts | 2 | ||||
-rw-r--r-- | cli/tests/testdata/check/check_dts.out | 4 | ||||
-rw-r--r-- | cli/tests/testdata/test/doc.out | 1 | ||||
-rw-r--r-- | cli/tests/testdata/test/doc.ts | 2 |
4 files changed, 7 insertions, 2 deletions
diff --git a/cli/tests/testdata/check/check_dts.d.ts b/cli/tests/testdata/check/check_dts.d.ts new file mode 100644 index 000000000..9cf60f063 --- /dev/null +++ b/cli/tests/testdata/check/check_dts.d.ts @@ -0,0 +1,2 @@ +// TS1039 [ERROR]: Initializers are not allowed in ambient contexts. +export const a: string = Deno.version.deno; diff --git a/cli/tests/testdata/check/check_dts.out b/cli/tests/testdata/check/check_dts.out new file mode 100644 index 000000000..e7ff9a009 --- /dev/null +++ b/cli/tests/testdata/check/check_dts.out @@ -0,0 +1,4 @@ +error: TS1039 [ERROR]: Initializers are not allowed in ambient contexts. +export const a: string = Deno.version.deno; + ~~~~~~~~~~~~~~~~~ + at file:///[WILDCARD]/check_dts.d.ts:2:26 diff --git a/cli/tests/testdata/test/doc.out b/cli/tests/testdata/test/doc.out index 1766912e5..cd8bbb620 100644 --- a/cli/tests/testdata/test/doc.out +++ b/cli/tests/testdata/test/doc.out @@ -1,4 +1,3 @@ -Check [WILDCARD]/doc.ts$2-5.ts Check [WILDCARD]/doc.ts$6-9.js Check [WILDCARD]/doc.ts$10-13.jsx Check [WILDCARD]/doc.ts$14-17.ts diff --git a/cli/tests/testdata/test/doc.ts b/cli/tests/testdata/test/doc.ts index 52fe6bdf0..519479fc5 100644 --- a/cli/tests/testdata/test/doc.ts +++ b/cli/tests/testdata/test/doc.ts @@ -27,7 +27,7 @@ */ /** - * ``` + * ```ts * import { check } from "./doc.ts"; * * console.assert(check() == 42); |