Skip to content

Commit

Permalink
🧪 add integration test and docs
Browse files Browse the repository at this point in the history
* Related to #57
  • Loading branch information
JoshuaTheMiller committed Oct 26, 2024
1 parent 110e6ef commit 294b24f
Show file tree
Hide file tree
Showing 9 changed files with 596 additions and 513 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ what.json
package-lock.json
out.txt
junit.xml
*.env*

## https://raw.githubusercontent.com/github/gitignore/main/Node.gitignore

Expand Down
5 changes: 4 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ module.exports = {
transform: {
"^.+.tsx?$": ["ts-jest",{}],
},
collectCoverageFrom: ['src/**/*.ts']
collectCoverageFrom: ['src/**/*.ts'],
setupFiles: [
"dotenv/config"
]
};
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
"main": "app.ts",
"module": "es2015",
"scripts": {
"test": "jest --coverage --reporters=jest-junit",
"test:unit": "jest test/unit --coverage --reporters=jest-junit",
"test:int": "jest test/integration",
"test:all": "jest --coverage --reporters=jest-junit",
"test":"npm run test:unit",
"dev": "nodemon",
"start": "node ./out/app.js",
"build": "tsc && shx cp ./src/openapi.yaml ./out/openapi.yaml",
Expand Down
Loading

0 comments on commit 294b24f

Please sign in to comment.