Skip to content

Commit

Permalink
Added Jest unit testing
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexJSully committed Aug 8, 2024
1 parent a19ad76 commit 081e764
Show file tree
Hide file tree
Showing 6 changed files with 11,535 additions and 2,206 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["@babel/preset-env"]
}
2 changes: 2 additions & 0 deletions .github/workflows/code-qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ jobs:
run: npm run prettier:check
- name: Quality check - eslint
run: npm run eslint:check
- name: Run Jest tests
run: npm run test
8 changes: 8 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default {
coverageDirectory: "coverage",
moduleFileExtensions: ["js", "json", "node"],
testEnvironment: "node",
transform: {
"^.+\\.js$": "babel-jest",
},
};
Loading

0 comments on commit 081e764

Please sign in to comment.