Setup Jest command
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Ethan Lane 2023-03-01 17:55:10 +00:00
parent 2815f6ef12
commit b9035c7338
4 changed files with 15 additions and 2 deletions

View file

@ -1 +1,5 @@
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