Skip to content

Commit

Permalink
スナップショットテストを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
miyaji255 committed Jun 30, 2024
1 parent be3c103 commit 87fc829
Show file tree
Hide file tree
Showing 14 changed files with 530 additions and 669 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v2
with:
node-version: 20

- run: pnpm install
- run: pnpm test
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ node_modules
test
src
.vscode
tsconffig.json
tsconfig.json
tsup.config.ts
vitest.config.ts
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"type": "module",
"version": "0.1.2",
"scripts": {
"build": "tsup"
"build": "tsup",
"test": "vitest --run"
},
"main": "./dist/index.js",
"exports": {
Expand All @@ -26,13 +27,15 @@
"esbuild": ">=0.17.0"
},
"dependencies": {
"@types/node": "^20.14.9",
"estree-util-visit": "^2.0.0",
"meriyah": "^4.5.0"
},
"devDependencies": {
"@types/node": "^20.14.9",
"esbuild": "^0.21.5",
"is-number": "^7.0.0",
"tsup": "^8.1.0",
"typescript": "^5.5.2"
"tsx": "^4.16.0",
"typescript": "^5.5.2",
"vitest": "^1.6.0"
}
}
Loading

0 comments on commit 87fc829

Please sign in to comment.