Skip to content

Commit 623cfa5

Browse files
committed
test: add jest, configure path aliases, and add test step to CI workflow
1 parent 9dc0203 commit 623cfa5

File tree

4 files changed

+4818
-1182
lines changed

4 files changed

+4818
-1182
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ jobs:
2727
- name: Install dependencies
2828
run: npm ci
2929

30+
- name: Run tests
31+
run: npm test
32+
3033
- name: Build with Rollup
3134
run: npm run build
3235

jest.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export default {
2+
moduleNameMapper: {
3+
"^\\$lib/(.*)$": "<rootDir>/src/lib/$1",
4+
},
5+
};

0 commit comments

Comments
 (0)