Skip to content

Commit

Permalink
[v0.3] Migrate to vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
kigawas committed Oct 14, 2024
1 parent c6dc4a0 commit fe78502
Show file tree
Hide file tree
Showing 13 changed files with 864 additions and 2,228 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
node-version: 22
registry-url: "https://registry.npmjs.org"

- run: pnpm install && pnpm test -- --bail --ci
- run: pnpm install && pnpm test -- --bail 1

- run: pnpm run build && npm publish --tag v0.3-latest
env:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ jobs:
cache: pnpm
cache-dependency-path: pnpm-lock.yaml

- run: pnpm install && pnpm test -- --bail --ci
- run: pnpm install && pnpm test -- --bail 1

- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

- run: pnpm run build && npm publish --dry-run --tag v0.3-latest
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## 0.3.1 ~ 0.3.20
## 0.3.1 ~ 0.3.21

- Revamp tests
- Support Node 18, 20
Expand All @@ -9,6 +9,7 @@
- Update documentation
- Extract constant variables and rename some parameters
- Revamp CI
- Migrate to vitest

## 0.3.0

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ If you want a WASM version to run directly in modern browsers or on some blockch
## Install

```bash
npm install eciesjs
npm install eciesjs@v0.3-latest
```

## Quick Start
Expand Down
8 changes: 0 additions & 8 deletions jest.config.ts

This file was deleted.

17 changes: 8 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,25 @@
],
"scripts": {
"build": "npx tsc",
"test": "jest"
"test": "vitest"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ecies/js.git"
},
"version": "0.3.20",
"version": "0.3.21",
"dependencies": {
"@types/secp256k1": "^4.0.6",
"futoin-hkdf": "^1.5.3",
"secp256k1": "^5.0.0"
},
"devDependencies": {
"@types/jest": "^29.5.12",
"@types/node": "^22.4.1",
"jest": "^29.7.0",
"ts-jest": "^29.2.4",
"@types/node": "^22.7.5",
"@vitest/coverage-v8": "2.1.2",
"ts-node": "^10.9.2",
"typescript": "^5.5.4",
"undici": "^6.19.7"
"typescript": "^5.6.3",
"undici": "^6.20.0",
"vitest": "^2.1.2"
},
"packageManager": "pnpm@9.7.1+sha512.faf344af2d6ca65c4c5c8c2224ea77a81a5e8859cbc4e06b1511ddce2f0151512431dd19e6aff31f2c6a8f5f2aced9bd2273e1fed7dd4de1868984059d2c4247"
"packageManager": "pnpm@9.12.1+sha512.e5a7e52a4183a02d5931057f7a0dbff9d5e9ce3161e33fa68ae392125b79282a8a8a470a51dfc8a0ed86221442eb2fb57019b0990ed24fab519bf0e1bc5ccfc4"
}
Loading

0 comments on commit fe78502

Please sign in to comment.