Skip to content

Commit

Permalink
chore: use vitest, rewrite to disposable server
Browse files Browse the repository at this point in the history
  • Loading branch information
kettanaito committed Oct 25, 2024
1 parent a681d0b commit b928d56
Show file tree
Hide file tree
Showing 16 changed files with 1,222 additions and 2,640 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GH_ADMIN_TOKEN }}

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
always-auth: true
registry-url: https://registry.npmjs.org

- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v4
with:
version: 8.15
version: 8.15.6

- name: Setup Git
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
always-auth: true
registry-url: https://registry.npmjs.org

- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v4
with:
version: 8.15
version: 8.15.6

- name: Install dependencies
run: pnpm install
Expand Down
3 changes: 0 additions & 3 deletions jest.config.js

This file was deleted.

33 changes: 14 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
],
"license": "MIT",
"scripts": {
"start": "tsc -w",
"test": "jest",
"start": "tsc -w -p ./tsconfig.src.json",
"test": "vitest",
"lint": "eslint \"{examples,src,test}/**/*.ts\"",
"clean": "rimraf ./lib",
"build": "pnpm clean && tsc",
"build": "pnpm clean && tsc -p ./tsconfig.src.json",
"example-build": "pnpm build && cd examples && rimraf ./lib && tsc && cp -R public lib/examples/public",
"example:basic": "pnpm example-build && node examples/lib/examples/basic-server.js",
"example:custom": "pnpm example-build && node examples/lib/examples/custom-server.js",
Expand Down Expand Up @@ -48,30 +48,25 @@
"@open-draft/test-server": "0.4.x",
"@ossjs/release": "^0.8.0",
"@types/express": "^4.17.17",
"@types/jest": "^27.0.2",
"@types/node": "^20.8.7",
"@types/node-fetch": "^2.5.11",
"@typescript-eslint/eslint-plugin": "^6.10.0",
"@typescript-eslint/parser": "^6.10.0",
"eslint": "^8.35.0",
"eslint-config-prettier": "^8.7.0",
"eslint-plugin-prettier": "^4.2.1",
"@typescript-eslint/eslint-plugin": "^8.11.0",
"@typescript-eslint/parser": "^8.11.0",
"eslint": "^8.53.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"husky": "^7.0.4",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"lint-staged": "^11.2.6",
"msw": "^2.0.0",
"node-fetch": "^2.6.1",
"prettier": "^2.8.4",
"msw": "^2.5.1",
"prettier": "^3.3.3",
"rimraf": "^4.4.0",
"ts-jest": "^29.1.1",
"typescript": "^5.0.0"
"typescript": "^5.6.3",
"vitest": "^2.1.3"
},
"peerDependencies": {
"msw": ">=2.0.0"
},
"engines": {
"node": ">=18"
},
"packageManager": "pnpm@7.12.2"
}
"packageManager": "pnpm@8.15.6"
}
Loading

0 comments on commit b928d56

Please sign in to comment.