Skip to content

Commit dd1c15c

Browse files
Update vitest npm packages to v3 (major) (#6192)
Co-authored-by: hash-worker[bot] <180894564+hash-worker[bot]@users.noreply.github.com> Co-authored-by: Tim Diekmann <post@timdiekmann.de> Co-authored-by: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com>
1 parent 87b8ad4 commit dd1c15c

File tree

15 files changed

+306
-131
lines changed

15 files changed

+306
-131
lines changed

apps/hash-ai-worker-ts/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,11 @@
105105
"@types/node": "22.13.8",
106106
"@types/papaparse": "5.3.15",
107107
"@types/sanitize-html": "2.13.0",
108-
"@vitest/coverage-istanbul": "2.1.9",
108+
"@vitest/coverage-istanbul": "3.0.7",
109109
"eslint": "9.20.1",
110110
"rimraf": "6.0.1",
111111
"typescript": "5.7.3",
112-
"vite-tsconfig-paths": "5.1.4",
113-
"vitest": "2.1.9",
112+
"vitest": "3.0.7",
114113
"wait-on": "8.0.2"
115114
}
116115
}

apps/hash-ai-worker-ts/vitest.config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import { monorepoRootDir } from "@local/hash-backend-utils/environment";
33
// eslint-disable-next-line import/no-extraneous-dependencies
44
import { loadEnv } from "vite";
5-
import tsconfigPaths from "vite-tsconfig-paths";
65
import { defineConfig } from "vitest/config";
76

87
export default defineConfig(({ mode }) => {
@@ -21,6 +20,6 @@ export default defineConfig(({ mode }) => {
2120
},
2221
environment: "node",
2322
},
24-
plugins: [tsconfigPaths()],
23+
plugins: [],
2524
};
2625
});

apps/hash-api/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,11 @@
124124
"@types/md5": "2.3.5",
125125
"@types/mime-types": "2.1.4",
126126
"@types/nodemailer": "6.4.17",
127-
"@vitest/coverage-istanbul": "2.1.9",
127+
"@vitest/coverage-istanbul": "3.0.7",
128128
"eslint": "9.20.1",
129129
"rimraf": "6.0.1",
130130
"typescript": "5.7.3",
131-
"vitest": "2.1.9",
131+
"vitest": "3.0.7",
132132
"wait-on": "8.0.2"
133133
}
134134
}

libs/@blockprotocol/type-system/typescript/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,14 @@
6161
"@rollup/plugin-wasm": "6.2.2",
6262
"@types/node": "22.13.8",
6363
"@types/react": "19.0.10",
64-
"@vitest/coverage-istanbul": "2.1.9",
64+
"@vitest/coverage-istanbul": "3.0.7",
6565
"eslint": "9.20.1",
6666
"react": "19.0.0",
6767
"rimraf": "6.0.1",
6868
"rollup": "4.34.9",
6969
"tslib": "2.8.1",
7070
"typescript": "5.7.3",
7171
"vite-plugin-wasm-pack": "0.1.12",
72-
"vitest": "2.1.9"
72+
"vitest": "3.0.7"
7373
}
7474
}

libs/@local/effect-dns/hickory/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
"@local/eslint": "0.0.0-private",
2222
"@local/tsconfig": "0.0.0-private",
2323
"@napi-rs/cli": "2.18.4",
24-
"@vitest/coverage-istanbul": "2.1.9",
24+
"@vitest/coverage-istanbul": "3.0.7",
2525
"eslint": "9.20.1",
2626
"rimraf": "6.0.1",
2727
"typescript": "5.7.3",
28-
"vitest": "2.1.9"
28+
"vitest": "3.0.7"
2929
},
3030
"napi": {
3131
"name": "effect-dns-hickory",

libs/@local/graph/sdk/typescript/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333
"devDependencies": {
3434
"@local/eslint": "0.0.0-private",
3535
"@local/tsconfig": "0.0.0-private",
36-
"@vitest/coverage-istanbul": "2.1.9",
36+
"@vitest/coverage-istanbul": "3.0.7",
3737
"eslint": "9.20.1",
3838
"rimraf": "6.0.1",
3939
"typescript": "5.7.3",
40-
"vitest": "2.1.9"
40+
"vitest": "3.0.7"
4141
}
4242
}

libs/@local/harpc/client/typescript/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@
4141
"devDependencies": {
4242
"@effect/platform": "0.77.4",
4343
"@effect/platform-node": "0.73.4",
44-
"@effect/vitest": "0.18.1",
44+
"@effect/vitest": "0.19.2",
4545
"@local/eslint": "0.0.0-private",
4646
"@local/tsconfig": "0.0.0-private",
4747
"@rust/harpc-wire-protocol": "0.0.0-private",
4848
"@types/node": "22.13.8",
49-
"@vitest/coverage-istanbul": "2.1.9",
49+
"@vitest/coverage-istanbul": "3.0.7",
5050
"eslint": "9.20.1",
5151
"rimraf": "6.0.1",
5252
"typescript": "5.7.3",
53-
"vitest": "2.1.9"
53+
"vitest": "3.0.7"
5454
}
5555
}

libs/@local/harpc/client/typescript/tests/codec/JsonDecoder.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { Decoder, JsonDecoder } from "../../src/codec/index.js";
1111
import { expectArrayBuffer } from "../wire-protocol/utils.js";
1212

1313
const decode = Effect.fn("decode")(function* (
14-
cx: vitest.TaskContext<vitest.RunnerTestCase> & vitest.TestContext,
14+
cx: vitest.TestContext,
1515
text: readonly string[],
1616
) {
1717
const decoder = yield* Decoder.Decoder;

libs/@local/harpc/client/typescript/tests/net/Request.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const makeRequest = Effect.fn("makeRequest")(function* <E, R>(
3333
});
3434

3535
const assertBody = (
36-
cx: vitest.TaskContext<vitest.RunnerTestCase> & vitest.TestContext,
36+
cx: vitest.TestContext,
3737
request: WireRequest.Request,
3838
bodyIs: (request: RequestBody.RequestBody) => boolean,
3939
body: string | number,

libs/@local/harpc/client/typescript/tests/wire-protocol/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export const callDecode = Effect.fn("callDecode")(function* (
5959
});
6060

6161
export const expectArrayBuffer = (
62-
cx: vitest.TaskContext<vitest.RunnerTestCase> & vitest.TestContext,
62+
cx: vitest.TestContext,
6363
value: ArrayBufferLike,
6464
): ArrayBuffer => {
6565
cx.expect(value).toBeInstanceOf(ArrayBuffer);

0 commit comments

Comments
 (0)