Skip to content

Commit

Permalink
Merge pull request #4 from l-peacock/feature/unitTests
Browse files Browse the repository at this point in the history
Testing: Install jest and add unit tests
  • Loading branch information
l-peacock authored Feb 10, 2024
2 parents d2b6754 + 90e474a commit 5717649
Show file tree
Hide file tree
Showing 12 changed files with 16,574 additions and 7,878 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/__lwr_cache__
/node_modules
/coverage

# Mac OS System File
.DS_Store
12 changes: 12 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
export default {
preset: "@lwc/jest-preset",
moduleNameMapper: {
"^(base|ui)/(.+)": "<rootDir>/src/modules/$1/$2/$2",
},
collectCoverage: true,
collectCoverageFrom: [
"src/modules/**/**/*.{js,ts}",
"!**/node_modules/**",
"!**/vendor/**",
],
};
Loading

0 comments on commit 5717649

Please sign in to comment.