summaryrefslogtreecommitdiff
path: root/tests/testdata/test/trace_ops_caught_error
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2024-02-16 10:49:42 -0700
committerGitHub <noreply@github.com>2024-02-16 10:49:42 -0700
commitc92717a1a43d31951cd8a1161afb766ef339aa21 (patch)
tree48a8fa58531d525c87824d55a6a934e42037815e /tests/testdata/test/trace_ops_caught_error
parent88d7c50cd559b9fd0189d2a2c1df6e2f1b790ddb (diff)
chore(cli): pre-factor the sanitizer tests (#22436)
Moving tests around so that we can make #22413 smaller
Diffstat (limited to 'tests/testdata/test/trace_ops_caught_error')
-rw-r--r--tests/testdata/test/trace_ops_caught_error/main.out6
-rw-r--r--tests/testdata/test/trace_ops_caught_error/main.ts12
2 files changed, 0 insertions, 18 deletions
diff --git a/tests/testdata/test/trace_ops_caught_error/main.out b/tests/testdata/test/trace_ops_caught_error/main.out
deleted file mode 100644
index 192ed3a6d..000000000
--- a/tests/testdata/test/trace_ops_caught_error/main.out
+++ /dev/null
@@ -1,6 +0,0 @@
-Check file:///[WILDCARD]/trace_ops_caught_error/main.ts
-running 1 test from ./test/trace_ops_caught_error/main.ts
-handle thrown error in async function ... ok ([WILDCARD])
-
-ok | 1 passed | 0 failed ([WILDCARD])
-
diff --git a/tests/testdata/test/trace_ops_caught_error/main.ts b/tests/testdata/test/trace_ops_caught_error/main.ts
deleted file mode 100644
index 8194a8b2a..000000000
--- a/tests/testdata/test/trace_ops_caught_error/main.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-Deno.test("handle thrown error in async function", async () => {
- const dirPath = Deno.makeTempDirSync();
- const filePath = `${dirPath}/file.txt`;
- try {
- await Deno.stat(filePath);
- } catch {
- await Deno.writeTextFile(filePath, "");
- } finally {
- await Deno.remove(filePath);
- await Deno.remove(dirPath);
- }
-});