test: add jest config

This commit is contained in:
AB1908 2022-09-17 15:44:50 +05:30
parent 8accba7da6
commit 002f28a02b

13
jest.config.js Normal file
View file

@ -0,0 +1,13 @@
module.exports = {
"roots": [
"<rootDir>/src",
"<rootDir>"
],
"testMatch": [
"**/__tests__/**/*.+(ts|tsx|js)",
"**/?(*.)+(spec|test).+(ts|tsx|js)"
],
"transform": {
"^.+\\.(ts|tsx)$": "ts-jest"
},
}