summaryrefslogtreecommitdiff
path: root/cli/tests/module_graph
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/module_graph')
-rw-r--r--cli/tests/module_graph/file_tests-checkwithconfig.ts5
-rw-r--r--cli/tests/module_graph/https_deno.land-std-http-server.ts5
-rw-r--r--cli/tests/module_graph/tsconfig_01.json13
3 files changed, 23 insertions, 0 deletions
diff --git a/cli/tests/module_graph/file_tests-checkwithconfig.ts b/cli/tests/module_graph/file_tests-checkwithconfig.ts
new file mode 100644
index 000000000..e7af5fa19
--- /dev/null
+++ b/cli/tests/module_graph/file_tests-checkwithconfig.ts
@@ -0,0 +1,5 @@
+import { ServerRequest } from "https://deno.land/std/http/server.ts";
+
+export default (req: ServerRequest) => {
+ req.respond({ body: `Hello, from Deno v${Deno.version.deno}!` });
+};
diff --git a/cli/tests/module_graph/https_deno.land-std-http-server.ts b/cli/tests/module_graph/https_deno.land-std-http-server.ts
new file mode 100644
index 000000000..0b3c995ec
--- /dev/null
+++ b/cli/tests/module_graph/https_deno.land-std-http-server.ts
@@ -0,0 +1,5 @@
+export class ServerRequest {
+ respond(value: { body: string }) {
+ console.log(value);
+ }
+}
diff --git a/cli/tests/module_graph/tsconfig_01.json b/cli/tests/module_graph/tsconfig_01.json
new file mode 100644
index 000000000..f7496d475
--- /dev/null
+++ b/cli/tests/module_graph/tsconfig_01.json
@@ -0,0 +1,13 @@
+{
+ "compilerOptions": {
+ "strict": false,
+ "noImplicitAny": false,
+ "noImplicitThis": false,
+ "alwaysStrict": false,
+ "strictNullChecks": false,
+ "strictFunctionTypes": true,
+ "strictPropertyInitialization": false,
+ "experimentalDecorators": true,
+ "emitDecoratorMetadata": true
+ }
+}