Skip to content

Commit

Permalink
Add Jest (#34)
Browse files Browse the repository at this point in the history
* add jest

* add workflow

* update package-lock, explicit node 18

* add comment, cleanup
  • Loading branch information
friendlymatthew authored Jan 12, 2024
1 parent 64c7bca commit bc7d5c0
Show file tree
Hide file tree
Showing 7 changed files with 5,375 additions and 1,085 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,15 @@ jobs:
go-version: "1.21"
- run: go test -v ./...
- run: go vet -v ./...

node-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: '18'
- run: npm ci
- run: npm run build
- run: npm test
4 changes: 4 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
preset: "ts-jest",
testEnvironment: "node",
};
Loading

0 comments on commit bc7d5c0

Please sign in to comment.