Skip to content
This repository was archived by the owner on Mar 27, 2022. It is now read-only.

Commit 4c37a46

Browse files
committed
feat(config): 🔧 for typescript and jest
1 parent 0a5896d commit 4c37a46

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

jest.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
2+
module.exports = {
3+
preset: 'ts-jest',
4+
testEnvironment: 'node',
5+
};

tsconfig.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"compilerOptions": {
3+
"module": "ESNext",
4+
"target": "ES2021",
5+
"strict": true,
6+
"esModuleInterop": true,
7+
"sourceMap": true
8+
},
9+
"exclude": [
10+
"node_modules"
11+
]
12+
}

0 commit comments

Comments
 (0)