Skip to content

Commit

Permalink
Update depedencies
Browse files Browse the repository at this point in the history
  • Loading branch information
nazarhussain committed Dec 1, 2023
1 parent 9d81528 commit cc9ae12
Show file tree
Hide file tree
Showing 4 changed files with 420 additions and 375 deletions.
14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,21 +97,19 @@
"ts-node": "^10.9.1",
"typescript": "^5.2.2",
"typescript-docs-verifier": "^2.5.0",
"vite-plugin-node-polyfills": "^0.15.0",
"vite-plugin-node-polyfills": "^0.17.0",
"vite-plugin-top-level-await": "^1.3.1",
"vitest": "1.0.0-beta.3",
"vitest": "1.0.0-beta.6",
"vite": "^5.0.4",
"vitest-when": "^0.2.0",
"wait-port": "^1.1.0",
"webdriverio": "^8.20.4",
"webdriverio": "^8.24.6",
"webpack": "^5.88.2"
},
"resolutions": {
"dns-over-http-resolver": "^2.1.1",
"chai": "^4.3.10",
"vite-plugin-node-polyfills/vite": "^4.5.0",
"vite-plugin-top-level-await/vite": "^4.5.0",
"vitest-when/vitest": "1.0.0-beta.3",
"vitest@>=0.31.0 <1.0.0": "1.0.0-beta.3",
"loupe": "^2.3.6"
"vitest-when/vitest": "1.0.0-beta.6",
"vitest@>=0.31.0 <1.0.0": "1.0.0-beta.6"
}
}
2 changes: 1 addition & 1 deletion packages/prover/test/e2e/cli/cmds/start.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe("prover/start", () => {
beforeAll(async function () {
await waitForCapellaFork();
await mkdir(path.dirname(paramsFilePath), {recursive: true});
await writeFile(paramsFilePath, JSON.stringify(chainConfigToJson(config as ChainConfig)));
await writeFile(paramsFilePath, JSON.stringify(chainConfigToJson(config)));

proc = await spawnCliCommand(
"packages/prover/bin/lodestar-prover.js",
Expand Down
20 changes: 12 additions & 8 deletions packages/test-utils/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,19 @@ export async function runCliCommand<T>(
return wrapTimeout(
// eslint-disable-next-line no-async-promise-executor
new Promise(async (resolve, reject) => {
await cli
.parseAsync(parseArgs(args), {}, (err, _argv, output) => {
if (err) return reject(err);
try {
await cli
.parseAsync(parseArgs(args), {}, (err, _argv, output) => {
if (err) return reject(err);

resolve(output);
})
.catch(() => {
// We are suppressing error here as we are throwing from inside the callback
});
resolve(output);
})
.catch(() => {
// We are suppressing error here as we are throwing from inside the callback
});
} catch (err) {
reject(err);
}
}),
opts.timeoutMs
);
Expand Down

0 comments on commit cc9ae12

Please sign in to comment.