From dd84b9d64fb98746a230cd24233ff50a562c39c9 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Fri, 28 Apr 2023 01:36:44 +0800 Subject: --- cli/scripts/templates/src/__tests__/index.test.ts | 7 +++++++ cli/scripts/templates/src/__tests__/tsconfig.json | 4 ++++ 2 files changed, 11 insertions(+) create mode 100644 cli/scripts/templates/src/__tests__/index.test.ts create mode 100644 cli/scripts/templates/src/__tests__/tsconfig.json (limited to 'cli/scripts/templates/src/__tests__') diff --git a/cli/scripts/templates/src/__tests__/index.test.ts b/cli/scripts/templates/src/__tests__/index.test.ts new file mode 100644 index 0000000..9a4831a --- /dev/null +++ b/cli/scripts/templates/src/__tests__/index.test.ts @@ -0,0 +1,7 @@ +import { sum } from "../."; + +describe("Hello", () => { + it("renders without crashing", () => { + expect(sum(1, 2)).toEqual(3); + }); +}); diff --git a/cli/scripts/templates/src/__tests__/tsconfig.json b/cli/scripts/templates/src/__tests__/tsconfig.json new file mode 100644 index 0000000..bf65be6 --- /dev/null +++ b/cli/scripts/templates/src/__tests__/tsconfig.json @@ -0,0 +1,4 @@ +{ + "extends": "../../tsconfig.json", + "include": [".", "../."] +} -- cgit v1.2.3-70-g09d2