Skip to content

Commit 0aa41d4

Browse files
chore(deps): update vitest monorepo to v4 (major) (#119)
* chore(deps): update vitest monorepo to v4 * chore(deps): use typescript v6 * chore(setup): use latest `pnpm` --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cristi Petre <driimus@vivaldi.net>
1 parent 1bb60d3 commit 0aa41d4

File tree

5 files changed

+1516
-1514
lines changed

5 files changed

+1516
-1514
lines changed

package.json

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -17,33 +17,34 @@
1717
"test": "turbo run test"
1818
},
1919
"devDependencies": {
20-
"@changesets/changelog-github": "^0.5.0",
21-
"@changesets/cli": "^2.27.1",
22-
"@eslint/js": "^9.22.0",
23-
"@faker-js/faker": "^9.6.0",
20+
"@changesets/changelog-github": "^0.5.2",
21+
"@changesets/cli": "^2.30.0",
22+
"@eslint/js": "^9.39.4",
23+
"@faker-js/faker": "^9.9.0",
2424
"@tsconfig/node-lts": "^24.0.0",
2525
"@tsconfig/strictest": "^2.0.8",
26-
"@types/aws-lambda": "^8.10.146",
27-
"@types/node": "^24.0.0",
28-
"@typescript-eslint/eslint-plugin": "^8.23.0",
29-
"@typescript-eslint/parser": "^8.23.0",
30-
"@vitest/coverage-v8": "^3.0.0",
31-
"@vitest/eslint-plugin": "^1.1.16",
32-
"eslint": "^9.19.0",
33-
"eslint-config-prettier": "^10.0.1",
34-
"eslint-plugin-import-x": "^4.6.1",
35-
"eslint-plugin-prettier": "^5.2.3",
26+
"@types/aws-lambda": "^8.10.161",
27+
"@types/node": "^24.12.2",
28+
"@typescript-eslint/eslint-plugin": "^8.58.1",
29+
"@typescript-eslint/parser": "^8.58.1",
30+
"@vitest/coverage-v8": "^4.1.4",
31+
"@vitest/eslint-plugin": "^1.6.15",
32+
"eslint": "^9.39.4",
33+
"eslint-config-prettier": "^10.1.8",
34+
"eslint-plugin-import-x": "^4.16.2",
35+
"eslint-plugin-prettier": "^5.5.5",
3636
"eslint-plugin-simple-import-sort": "^12.1.1",
37-
"eslint-plugin-turbo": "^2.4.0",
37+
"eslint-plugin-turbo": "^2.9.6",
3838
"eslint-plugin-unicorn": "^57.0.0",
39-
"fishery": "^2.2.2",
40-
"prettier": "^3.2.4",
41-
"turbo": "^2.0.1",
42-
"typescript": "^5.9.3",
43-
"typescript-eslint": "^8.23.0",
44-
"vitest": "^3.0.0"
39+
"fishery": "^2.4.0",
40+
"prettier": "^3.8.2",
41+
"turbo": "^2.9.6",
42+
"typescript": "^6.0.2",
43+
"typescript-eslint": "^8.58.1",
44+
"vite": "^8.0.8",
45+
"vitest": "^4.1.4"
4546
},
46-
"packageManager": "pnpm@10.25.0+sha256.0f3726654b0b5e52e5800904de168afc3c667e2abf84bdb06d9ac1386104bd90",
47+
"packageManager": "pnpm@10.33.0+sha512.10568bb4a6afb58c9eb3630da90cc9516417abebd3fabbe6739f0ae795728da1491e9db5a544c76ad8eb7570f5c4bb3d6c637b2cb41bfdcdb47fa823c8649319",
4748
"engines": {
4849
"node": ">=24.11.0"
4950
}

packages/lambda-batch-processor/tests/batchProcessor.test.ts

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -72,20 +72,19 @@ describe('BatchProcessor', () => {
7272
});
7373

7474
it('surfaces failures with the non-retryable errors handler', async () => {
75-
const handlingFunction = vi.fn<[PermanentFailure<SQSRecord>]>(async () => {});
76-
const nonRetryableErrorHandler = new (class Test
77-
implements PermanentFailureHandler<SQSEvent>
78-
{
79-
async handleRejections(accumulator: FailureAccumulator<SQSRecord>) {
80-
try {
81-
for (const failure of accumulator.permanentFailures) {
82-
await handlingFunction(failure);
75+
const handlingFunction = vi.fn<(failure: PermanentFailure) => Promise<void>>(async () => {});
76+
const nonRetryableErrorHandler =
77+
new (class Test implements PermanentFailureHandler<SQSEvent> {
78+
async handleRejections(accumulator: FailureAccumulator<SQSRecord>) {
79+
try {
80+
for (const failure of accumulator.permanentFailures) {
81+
await handlingFunction(failure);
82+
}
83+
} catch {
84+
accumulator.surfacePermanentFailures();
8385
}
84-
} catch {
85-
accumulator.surfacePermanentFailures();
8686
}
87-
}
88-
})();
87+
})();
8988
const p = new TestProcessor(handler, {
9089
nonRetryableErrors: [ValidationError],
9190
nonRetryableErrorHandler,

0 commit comments

Comments
 (0)