Skip to content

Commit

Permalink
Merge pull request #17 from transitive-bullshit/feature/undici-and-av…
Browse files Browse the repository at this point in the history
…a-unit-tests
  • Loading branch information
transitive-bullshit authored Dec 5, 2022
2 parents af46206 + 26f1090 commit 9c96896
Show file tree
Hide file tree
Showing 11 changed files with 626 additions and 30 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,6 @@ jobs:
run: pnpm install --frozen-lockfile

- name: Run test
env:
SESSION_TOKEN: 'fake-session-token-for-CI'
run: pnpm run test
10 changes: 10 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"prepare": "husky install",
"pre-commit": "lint-staged",
"test": "run-p test:*",
"test:unit": "ava",
"test:prettier": "prettier '**/*.{js,jsx,ts,tsx}' --check"
},
"dependencies": {
Expand All @@ -47,6 +48,7 @@
"@types/node": "^18.11.9",
"@types/node-fetch": "2",
"@types/uuid": "^9.0.0",
"ava": "^5.1.0",
"del-cli": "^5.0.0",
"dotenv-safe": "^8.2.0",
"husky": "^8.0.2",
Expand All @@ -65,6 +67,14 @@
"prettier --write"
]
},
"ava": {
"extensions": {
"ts": "module"
},
"nodeArguments": [
"--loader=tsx"
]
},
"keywords": [
"openai",
"chatgpt",
Expand Down
Loading

0 comments on commit 9c96896

Please sign in to comment.