Skip to content

Commit

Permalink
chore: update dependencies (#30)
Browse files Browse the repository at this point in the history
* chore: upgrade @open-draft/test-server

* chore: upgrade typescript

* chore: upgrade prettier

* chore: migrate to vitest

* chore: run vitest once

* chore: upgrade playwright

* chore: fix "har:fixture" command
  • Loading branch information
kettanaito authored Jun 7, 2023
1 parent 4814626 commit 0237b4e
Show file tree
Hide file tree
Showing 35 changed files with 920 additions and 2,717 deletions.
5 changes: 1 addition & 4 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'jest', 'prettier'],
plugins: ['@typescript-eslint', 'prettier'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'prettier',
],
rules: {
'jest/no-disabled-tests': 'warn',
'jest/no-focused-tests': 'error',
'jest/no-identical-title': 'error',
'@typescript-eslint/no-var-requires': 'off',
},
}
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ $ touch test/traffic/fixtures/request/<NEW-SCENARIO>.ts
Run the usage example in the browser:

```sh
$ yarn har:fixture <NEW-SCENARIO>.ts
$ pnpm har:fixture test/traffic/fixtures/request/<NEW-SCENARIO>.ts
```

Export the Network log as the `*.har` file using the browser's Dev Tools.
Expand Down
3 changes: 0 additions & 3 deletions jest.config.ts

This file was deleted.

21 changes: 9 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
"scripts": {
"start": "pnpm build --watch",
"lint": "eslint ./{src,test}/**/*.ts",
"har:fixture": "ts-node test/traffic/fixtures/requests/command.ts",
"har:fixture": "ts-node ./test/traffic/fixtures/requests/command.ts",
"prepare": "pnpm simple-git-hooks init",
"prebuild": "pnpm lint",
"build": "tsup src/index.ts --format cjs,esm --out-dir lib --dts --clean",
"test": "jest",
"test": "vitest run",
"prepublishOnly": "pnpm test && pnpm build"
},
"files": [
Expand All @@ -46,30 +46,27 @@
"devDependencies": {
"@commitlint/cli": "^17.6.5",
"@commitlint/config-conventional": "^17.6.5",
"@open-draft/test-server": "^0.2.3",
"@open-draft/test-server": "^0.5.1",
"@types/compression": "^1.7.1",
"@types/jest": "^26.0.20",
"@types/node": "18",
"@typescript-eslint/eslint-plugin": "^4.29.1",
"@typescript-eslint/parser": "^4.29.1",
"compression": "^1.7.4",
"cross-fetch": "^3.1.4",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-jest": "^24.1.3",
"eslint-plugin-prettier": "^3.4.0",
"jest": "^26.6.3",
"jsdom": "^22.1.0",
"lint-staged": "^10.5.3",
"msw": "^1.2.1",
"playwright": "^1.13.1",
"prettier": "^2.3.2",
"playwright": "^1.34.3",
"prettier": "^2.8.8",
"rimraf": "^3.0.2",
"simple-git-hooks": "^2.8.1",
"ts-jest": "26.5.6",
"ts-node": "^10.2.0",
"ts-node": "^10.9.1",
"tslib": "^2.3.1",
"tsup": "^5.11.13",
"typescript": "^4.3.5"
"typescript": "^5.1.3",
"vitest": "^0.32.0"
},
"dependencies": {
"@apidevtools/swagger-parser": "^10.0.2",
Expand Down
Loading

0 comments on commit 0237b4e

Please sign in to comment.