Skip to content

Commit

Permalink
test: switch to vitest and reach 96% testing coverage (#126)
Browse files Browse the repository at this point in the history
* test(vitest): 96% line coverage

* test: use a spy instead of mock

* ci: pass coverage correctly

* ci: remove docs from name

* test: remove unecessary comment

* ci: use npm cache

* docs: use enmap.evie.dev over .codes
  • Loading branch information
dan-online authored May 17, 2024
1 parent bd5b7c3 commit dc309cc
Show file tree
Hide file tree
Showing 14 changed files with 2,711 additions and 5,418 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
ci:
name: Tests and Docs
name: Tests
runs-on: ubuntu-latest
steps:
- name: Checkout Project
Expand All @@ -17,8 +17,8 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'npm'
- name: Install Dependencies
run: npm install
- name: Run Tests
run: npm run test

run: npm run test -- --coverage
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ out/
!.yarn/sdks
!.yarn/versions
.retype/
coverage/
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
build
yarn.lock
docs
180 changes: 147 additions & 33 deletions docs/api.md

Large diffs are not rendered by default.

8 changes: 0 additions & 8 deletions jest.config.js

This file was deleted.

Loading

0 comments on commit dc309cc

Please sign in to comment.