aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/examples/with-docker/packages/logger/src/__tests__
diff options
context:
space:
mode:
Diffstat (limited to 'examples/with-docker/packages/logger/src/__tests__')
-rw-r--r--examples/with-docker/packages/logger/src/__tests__/log.test.ts10
-rw-r--r--examples/with-docker/packages/logger/src/__tests__/tsconfig.json4
2 files changed, 14 insertions, 0 deletions
diff --git a/examples/with-docker/packages/logger/src/__tests__/log.test.ts b/examples/with-docker/packages/logger/src/__tests__/log.test.ts
new file mode 100644
index 0000000..fa597a8
--- /dev/null
+++ b/examples/with-docker/packages/logger/src/__tests__/log.test.ts
@@ -0,0 +1,10 @@
+import { log } from "..";
+
+jest.spyOn(global.console, "log");
+
+describe("logger", () => {
+ it("prints a message", () => {
+ log("hello");
+ expect(console.log).toBeCalled();
+ });
+});
diff --git a/examples/with-docker/packages/logger/src/__tests__/tsconfig.json b/examples/with-docker/packages/logger/src/__tests__/tsconfig.json
new file mode 100644
index 0000000..bf65be6
--- /dev/null
+++ b/examples/with-docker/packages/logger/src/__tests__/tsconfig.json
@@ -0,0 +1,4 @@
+{
+ "extends": "../../tsconfig.json",
+ "include": [".", "../."]
+}