diff options
| author | 2023-04-28 01:36:55 +0800 | |
|---|---|---|
| committer | 2023-04-28 01:36:55 +0800 | |
| commit | fc8c5fdce62fb229202659408798a7b6c98f6e8b (patch) | |
| tree | 7554f80e50de4af6fd255afa7c21bcdd58a7af34 /cli/scripts/templates | |
| parent | dd84b9d64fb98746a230cd24233ff50a562c39c9 (diff) | |
| download | HydroRoll-fc8c5fdce62fb229202659408798a7b6c98f6e8b.tar.gz HydroRoll-fc8c5fdce62fb229202659408798a7b6c98f6e8b.zip | |
Diffstat (limited to 'cli/scripts/templates')
| -rw-r--r-- | cli/scripts/templates/jest.config.js | 10 | ||||
| -rw-r--r-- | cli/scripts/templates/src/__tests__/index.test.ts | 7 | ||||
| -rw-r--r-- | cli/scripts/templates/src/__tests__/tsconfig.json | 4 | ||||
| -rw-r--r-- | cli/scripts/templates/src/index.ts | 3 | ||||
| -rw-r--r-- | cli/scripts/templates/tsconfig.json | 9 |
5 files changed, 0 insertions, 33 deletions
diff --git a/cli/scripts/templates/jest.config.js b/cli/scripts/templates/jest.config.js deleted file mode 100644 index 0548306..0000000 --- a/cli/scripts/templates/jest.config.js +++ /dev/null @@ -1,10 +0,0 @@ -module.exports = { - roots: ["<rootDir>/src"], - transform: { - "^.+\\.tsx?$": "ts-jest", - }, - // testRegex: '(/__tests__/.*(\\.|/)(test|spec))\\.tsx?$', - moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"], - modulePathIgnorePatterns: ["<rootDir>/src/__fixtures__"], - preset: "ts-jest", -}; diff --git a/cli/scripts/templates/src/__tests__/index.test.ts b/cli/scripts/templates/src/__tests__/index.test.ts deleted file mode 100644 index 9a4831a..0000000 --- a/cli/scripts/templates/src/__tests__/index.test.ts +++ /dev/null @@ -1,7 +0,0 @@ -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 deleted file mode 100644 index bf65be6..0000000 --- a/cli/scripts/templates/src/__tests__/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "include": [".", "../."] -} diff --git a/cli/scripts/templates/src/index.ts b/cli/scripts/templates/src/index.ts deleted file mode 100644 index 715e93e..0000000 --- a/cli/scripts/templates/src/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export const sum = (a: number, b: number) => { - return a + b; -}; diff --git a/cli/scripts/templates/tsconfig.json b/cli/scripts/templates/tsconfig.json deleted file mode 100644 index 76ae392..0000000 --- a/cli/scripts/templates/tsconfig.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "rootDir": "src", - "outDir": "dist" - }, - "include": ["src"], - "exclude": ["node_modules"] -} |
