Skip to content

Commit

Permalink
feat(perftool): update deps, add more verbose timeout error
Browse files Browse the repository at this point in the history
  • Loading branch information
akhdrv committed Aug 2, 2024
1 parent 06ac7dd commit e134491
Show file tree
Hide file tree
Showing 8 changed files with 2,013 additions and 1,946 deletions.
5 changes: 1 addition & 4 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no -- commitlint --edit
npx --no -- commitlint --edit
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm exec lint-staged
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,27 +24,27 @@
"release": "auto shipit"
},
"devDependencies": {
"@auto-it/conventional-commits": "11.1.6",
"@auto-it/npm": "11.1.6",
"@auto-it/conventional-commits": "11.2.0",
"@auto-it/npm": "11.2.0",
"@commitlint/cli": "19.3.0",
"@commitlint/config-conventional": "19.2.2",
"@typescript-eslint/eslint-plugin": "7.10.0",
"@typescript-eslint/parser": "7.10.0",
"auto": "11.1.6",
"@typescript-eslint/eslint-plugin": "7.18.0",
"@typescript-eslint/parser": "7.18.0",
"auto": "11.2.0",
"eslint": "8.57.0",
"eslint-config-airbnb": "19.0.4",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-jest": "28.5.0",
"eslint-plugin-jsx-a11y": "6.8.0",
"eslint-plugin-prettier": "5.1.3",
"eslint-plugin-react": "7.34.1",
"eslint-plugin-jest": "28.6.0",
"eslint-plugin-jsx-a11y": "6.9.0",
"eslint-plugin-prettier": "5.2.1",
"eslint-plugin-react": "7.35.0",
"eslint-plugin-react-hooks": "4.6.2",
"husky": "9.0.11",
"lerna": "8.1.3",
"lint-staged": "15.2.4",
"prettier": "3.2.5",
"semver": "7.6.2",
"husky": "9.1.4",
"lerna": "8.1.7",
"lint-staged": "15.2.7",
"prettier": "3.3.3",
"semver": "7.6.3",
"yaml-lint": "1.7.0"
},
"auto": {
Expand Down
2 changes: 1 addition & 1 deletion packages/perftool/lib/api/intercept.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export type InterceptParams = {
method?: Method;
source: string;
} & (
| { responseType: 'abort'; response: undefined }
| { responseType: 'abort'; response?: undefined }
| { responseType?: 'file'; response: string }
| { responseType: 'json'; response: JSONSerializable }
);
Expand Down
5 changes: 4 additions & 1 deletion packages/perftool/lib/controller/executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,10 @@ export default class Executor<T extends Task<any, any, any>[]> implements IExecu
result.promise,
defer(
this.config.runWaitTimeout,
() => new Error(`timeout ${this.config.runWaitTimeout}ms reached waiting for run to end`),
() =>
new Error(
`timeout ${this.config.runWaitTimeout}ms reached waiting for run ${test.subjectId} to end`,
),
),
]).finally(() => {
return page.close();
Expand Down
28 changes: 14 additions & 14 deletions packages/perftool/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@
"react-dom": ">=16.8.0"
},
"dependencies": {
"@babel/core": "7.24.5",
"@babel/preset-env": "7.24.5",
"@babel/preset-react": "7.24.1",
"@babel/preset-typescript": "7.24.1",
"@swc/core": "1.5.7",
"@babel/core": "7.25.2",
"@babel/preset-env": "7.25.3",
"@babel/preset-react": "7.24.7",
"@babel/preset-typescript": "7.24.7",
"@swc/core": "1.7.5",
"babel-loader": "9.1.3",
"chalk": "5.3.0",
"chart.js": "4.4.3",
Expand All @@ -67,33 +67,33 @@
"jstat": "1.9.6",
"loglevel": "1.9.1",
"loglevel-plugin-prefix": "0.8.4",
"lru-cache": "10.2.2",
"mime": "4.0.3",
"minimatch": "9.0.4",
"lru-cache": "11.0.0",
"mime": "4.0.4",
"minimatch": "10.0.1",
"morgan": "1.10.0",
"puppeteer": "22.9.0",
"puppeteer": "22.15.0",
"react-chartjs-2": "5.2.0",
"react-json-tree": "0.19.0",
"serialize-error": "11.0.3",
"shallow-equal": "3.1.0",
"simple-git": "3.24.0",
"simple-git": "3.25.0",
"ts-node": "10.9.2",
"typescript": "5.4.5",
"webpack": "5.91.0"
"typescript": "5.5.4",
"webpack": "5.93.0"
},
"devDependencies": {
"@jest/globals": "29.7.0",
"@types/express": "4.17.21",
"@types/jest": "29.5.12",
"@types/morgan": "1.9.9",
"@types/node": "20.12.12",
"@types/node": "22.1.0",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"ts-jest": "29.1.3"
"ts-jest": "29.2.4"
},
"contributors": [
"Artem Khaidarov (https://github.com/akhdrv)"
Expand Down
Loading

0 comments on commit e134491

Please sign in to comment.