diff options
Diffstat (limited to 'cli/tests/testdata')
-rw-r--r-- | cli/tests/testdata/test/deno_custom_jsx.json | 6 | ||||
-rw-r--r-- | cli/tests/testdata/test/hello_world.out | 5 | ||||
-rw-r--r-- | cli/tests/testdata/test/hello_world.ts | 9 |
3 files changed, 20 insertions, 0 deletions
diff --git a/cli/tests/testdata/test/deno_custom_jsx.json b/cli/tests/testdata/test/deno_custom_jsx.json new file mode 100644 index 000000000..7ef04d829 --- /dev/null +++ b/cli/tests/testdata/test/deno_custom_jsx.json @@ -0,0 +1,6 @@ +{ + "compilerOptions": { + "jsx": "react-jsx", + "jsxImportSource": "https://esm.sh/react@18.1.0" + } +} diff --git a/cli/tests/testdata/test/hello_world.out b/cli/tests/testdata/test/hello_world.out new file mode 100644 index 000000000..aee8a64d4 --- /dev/null +++ b/cli/tests/testdata/test/hello_world.out @@ -0,0 +1,5 @@ +running 1 test from ./test/hello_world.ts +hello world test ... ok ([WILDCARD]) + +ok | 1 passed | 0 failed ([WILDCARD]) + diff --git a/cli/tests/testdata/test/hello_world.ts b/cli/tests/testdata/test/hello_world.ts new file mode 100644 index 000000000..4a1c3463f --- /dev/null +++ b/cli/tests/testdata/test/hello_world.ts @@ -0,0 +1,9 @@ +Deno.test({ + name: "hello world test", + fn(): void { + const world = "world"; + if ("world" !== world) { + throw new Error("world !== world"); + } + }, +}); |