summaryrefslogtreecommitdiff
path: root/tests/testdata/check/node_builtin_modules
diff options
context:
space:
mode:
authorMohammad Sulaiman <mohammad.sulaiman@exalt.ps>2024-10-02 12:22:35 +0300
committerGitHub <noreply@github.com>2024-10-02 09:22:35 +0000
commit3c193aef98bea6b3e0c9592cfdb43268e7a7e4af (patch)
treeadbf9730a91c0f692a633f028d8066819e37ab94 /tests/testdata/check/node_builtin_modules
parentd116709d064ce85922f1fd635d5915b4659c83d5 (diff)
chore: deprecate check itests (#25963)
Diffstat (limited to 'tests/testdata/check/node_builtin_modules')
-rw-r--r--tests/testdata/check/node_builtin_modules/mod.js3
-rw-r--r--tests/testdata/check/node_builtin_modules/mod.js.out5
-rw-r--r--tests/testdata/check/node_builtin_modules/mod.ts9
-rw-r--r--tests/testdata/check/node_builtin_modules/mod.ts.out13
4 files changed, 0 insertions, 30 deletions
diff --git a/tests/testdata/check/node_builtin_modules/mod.js b/tests/testdata/check/node_builtin_modules/mod.js
deleted file mode 100644
index 196fb9be9..000000000
--- a/tests/testdata/check/node_builtin_modules/mod.js
+++ /dev/null
@@ -1,3 +0,0 @@
-// @ts-check
-import fs from "node:fs";
-const _data = fs.readFileSync("./node_builtin.js", 123);
diff --git a/tests/testdata/check/node_builtin_modules/mod.js.out b/tests/testdata/check/node_builtin_modules/mod.js.out
deleted file mode 100644
index 97786ebae..000000000
--- a/tests/testdata/check/node_builtin_modules/mod.js.out
+++ /dev/null
@@ -1,5 +0,0 @@
-error: TS2769 [ERROR]: No overload matches this call.
- [WILDCARD]
-const _data = fs.readFileSync("./node_builtin.js", 123);
- ~~~
- at file:///[WILDCARD]/node_builtin_modules/mod.js:3:52
diff --git a/tests/testdata/check/node_builtin_modules/mod.ts b/tests/testdata/check/node_builtin_modules/mod.ts
deleted file mode 100644
index 0e62353fe..000000000
--- a/tests/testdata/check/node_builtin_modules/mod.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-import fs from "node:fs";
-const _data = fs.readFileSync("./node_builtin.js", 123);
-
-// check node:module specifically because for deno check it should
-// resolve to the @types/node package, but at runtime it uses a different
-// builtin object than deno_std
-import { builtinModules } from "node:module";
-// should error about being string[]
-const _testString: number[] = builtinModules;
diff --git a/tests/testdata/check/node_builtin_modules/mod.ts.out b/tests/testdata/check/node_builtin_modules/mod.ts.out
deleted file mode 100644
index 49b762cff..000000000
--- a/tests/testdata/check/node_builtin_modules/mod.ts.out
+++ /dev/null
@@ -1,13 +0,0 @@
-error: TS2769 [ERROR]: No overload matches this call.
- [WILDCARD]
-const _data = fs.readFileSync("./node_builtin.js", 123);
- ~~~
- at file:///[WILDCARD]/node_builtin_modules/mod.ts:2:52
-
-TS2322 [ERROR]: Type 'string[]' is not assignable to type 'number[]'.
- Type 'string' is not assignable to type 'number'.
-const _testString: number[] = builtinModules;
- ~~~~~~~~~~~
- at file:///[WILDCARD]/node_builtin_modules/mod.ts:9:7
-
-Found 2 errors.