diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2023-02-17 23:58:52 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-17 23:58:52 +0900 |
commit | a01af067d79e78ea8e2c21cf0ef92d86d425f8eb (patch) | |
tree | b6345e86f04b61effd2be9b5dfd8c48507de7d65 /cli/tests/node_compat/runner.ts | |
parent | 1a7666a6ca63b3dc6872d8f4631a2799af534159 (diff) |
test: add node compat tests (#17805)
Diffstat (limited to 'cli/tests/node_compat/runner.ts')
-rw-r--r-- | cli/tests/node_compat/runner.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cli/tests/node_compat/runner.ts b/cli/tests/node_compat/runner.ts new file mode 100644 index 000000000..f12cc69b0 --- /dev/null +++ b/cli/tests/node_compat/runner.ts @@ -0,0 +1,7 @@ +// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. +import { createRequire } from "node:module"; +const file = Deno.args[0]; +if (!file) { + throw new Error("No file provided"); +} +createRequire(import.meta.url)(file); |