Setup Jest #57

Merged
Vylpes merged 7 commits from feature/1-jest into develop 2023-04-22 13:20:31 +01:00
4 changed files with 15 additions and 2 deletions
Showing only changes of commit b9035c7338 - Show all commits

View file

@ -1 +1,5 @@
app.ts
app.ts
tests/
jest.config.cjs
jest.setup.js

4
jest.config.cjs Normal file
View file

@ -0,0 +1,4 @@
module.exports = {
preset: "ts-jest",
setupFiles: [ "./jest.setup.js" ]
}

3
jest.setup.js Normal file
View file

@ -0,0 +1,3 @@
jest.setTimeout(1 * 1000); // 1 second
jest.resetModules();
jest.resetAllMocks();

View file

@ -73,7 +73,9 @@
"./src",
],
"exclude": [
"./tests"
"./tests",
"jest.config.cjs",
"jest.setup.js"
],
"ts-node": {
"esm": true