This commit is contained in:
parent
2815f6ef12
commit
b9035c7338
4 changed files with 15 additions and 2 deletions
|
@ -1 +1,5 @@
|
|||
app.ts
|
||||
app.ts
|
||||
|
||||
tests/
|
||||
jest.config.cjs
|
||||
jest.setup.js
|
4
jest.config.cjs
Normal file
4
jest.config.cjs
Normal file
|
@ -0,0 +1,4 @@
|
|||
module.exports = {
|
||||
preset: "ts-jest",
|
||||
setupFiles: [ "./jest.setup.js" ]
|
||||
}
|
3
jest.setup.js
Normal file
3
jest.setup.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
jest.setTimeout(1 * 1000); // 1 second
|
||||
jest.resetModules();
|
||||
jest.resetAllMocks();
|
|
@ -73,7 +73,9 @@
|
|||
"./src",
|
||||
],
|
||||
"exclude": [
|
||||
"./tests"
|
||||
"./tests",
|
||||
"jest.config.cjs",
|
||||
"jest.setup.js"
|
||||
],
|
||||
"ts-node": {
|
||||
"esm": true
|
||||
|
|
Loading…
Reference in a new issue