Skip to content

Commit

Permalink
Update vitest npm packages to v3 (major) (#6192)
Browse files Browse the repository at this point in the history
Co-authored-by: hash-worker[bot] <180894564+hash-worker[bot]@users.noreply.github.com>
Co-authored-by: Tim Diekmann <[email protected]>
Co-authored-by: Tim Diekmann <[email protected]>
  • Loading branch information
3 people authored Mar 3, 2025
1 parent 87b8ad4 commit dd1c15c
Show file tree
Hide file tree
Showing 15 changed files with 306 additions and 131 deletions.
5 changes: 2 additions & 3 deletions apps/hash-ai-worker-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,11 @@
"@types/node": "22.13.8",
"@types/papaparse": "5.3.15",
"@types/sanitize-html": "2.13.0",
"@vitest/coverage-istanbul": "2.1.9",
"@vitest/coverage-istanbul": "3.0.7",
"eslint": "9.20.1",
"rimraf": "6.0.1",
"typescript": "5.7.3",
"vite-tsconfig-paths": "5.1.4",
"vitest": "2.1.9",
"vitest": "3.0.7",
"wait-on": "8.0.2"
}
}
3 changes: 1 addition & 2 deletions apps/hash-ai-worker-ts/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { monorepoRootDir } from "@local/hash-backend-utils/environment";
// eslint-disable-next-line import/no-extraneous-dependencies
import { loadEnv } from "vite";
import tsconfigPaths from "vite-tsconfig-paths";
import { defineConfig } from "vitest/config";

export default defineConfig(({ mode }) => {
Expand All @@ -21,6 +20,6 @@ export default defineConfig(({ mode }) => {
},
environment: "node",
},
plugins: [tsconfigPaths()],
plugins: [],
};
});
4 changes: 2 additions & 2 deletions apps/hash-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@
"@types/md5": "2.3.5",
"@types/mime-types": "2.1.4",
"@types/nodemailer": "6.4.17",
"@vitest/coverage-istanbul": "2.1.9",
"@vitest/coverage-istanbul": "3.0.7",
"eslint": "9.20.1",
"rimraf": "6.0.1",
"typescript": "5.7.3",
"vitest": "2.1.9",
"vitest": "3.0.7",
"wait-on": "8.0.2"
}
}
4 changes: 2 additions & 2 deletions libs/@blockprotocol/type-system/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@
"@rollup/plugin-wasm": "6.2.2",
"@types/node": "22.13.8",
"@types/react": "19.0.10",
"@vitest/coverage-istanbul": "2.1.9",
"@vitest/coverage-istanbul": "3.0.7",
"eslint": "9.20.1",
"react": "19.0.0",
"rimraf": "6.0.1",
"rollup": "4.34.9",
"tslib": "2.8.1",
"typescript": "5.7.3",
"vite-plugin-wasm-pack": "0.1.12",
"vitest": "2.1.9"
"vitest": "3.0.7"
}
}
4 changes: 2 additions & 2 deletions libs/@local/effect-dns/hickory/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
"@local/eslint": "0.0.0-private",
"@local/tsconfig": "0.0.0-private",
"@napi-rs/cli": "2.18.4",
"@vitest/coverage-istanbul": "2.1.9",
"@vitest/coverage-istanbul": "3.0.7",
"eslint": "9.20.1",
"rimraf": "6.0.1",
"typescript": "5.7.3",
"vitest": "2.1.9"
"vitest": "3.0.7"
},
"napi": {
"name": "effect-dns-hickory",
Expand Down
4 changes: 2 additions & 2 deletions libs/@local/graph/sdk/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
"devDependencies": {
"@local/eslint": "0.0.0-private",
"@local/tsconfig": "0.0.0-private",
"@vitest/coverage-istanbul": "2.1.9",
"@vitest/coverage-istanbul": "3.0.7",
"eslint": "9.20.1",
"rimraf": "6.0.1",
"typescript": "5.7.3",
"vitest": "2.1.9"
"vitest": "3.0.7"
}
}
6 changes: 3 additions & 3 deletions libs/@local/harpc/client/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@
"devDependencies": {
"@effect/platform": "0.77.4",
"@effect/platform-node": "0.73.4",
"@effect/vitest": "0.18.1",
"@effect/vitest": "0.19.2",
"@local/eslint": "0.0.0-private",
"@local/tsconfig": "0.0.0-private",
"@rust/harpc-wire-protocol": "0.0.0-private",
"@types/node": "22.13.8",
"@vitest/coverage-istanbul": "2.1.9",
"@vitest/coverage-istanbul": "3.0.7",
"eslint": "9.20.1",
"rimraf": "6.0.1",
"typescript": "5.7.3",
"vitest": "2.1.9"
"vitest": "3.0.7"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { Decoder, JsonDecoder } from "../../src/codec/index.js";
import { expectArrayBuffer } from "../wire-protocol/utils.js";

const decode = Effect.fn("decode")(function* (
cx: vitest.TaskContext<vitest.RunnerTestCase> & vitest.TestContext,
cx: vitest.TestContext,
text: readonly string[],
) {
const decoder = yield* Decoder.Decoder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const makeRequest = Effect.fn("makeRequest")(function* <E, R>(
});

const assertBody = (
cx: vitest.TaskContext<vitest.RunnerTestCase> & vitest.TestContext,
cx: vitest.TestContext,
request: WireRequest.Request,
bodyIs: (request: RequestBody.RequestBody) => boolean,
body: string | number,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const callDecode = Effect.fn("callDecode")(function* (
});

export const expectArrayBuffer = (
cx: vitest.TaskContext<vitest.RunnerTestCase> & vitest.TestContext,
cx: vitest.TestContext,
value: ArrayBufferLike,
): ArrayBuffer => {
cx.expect(value).toBeInstanceOf(ArrayBuffer);
Expand Down
4 changes: 2 additions & 2 deletions libs/@local/hash-backend-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@
"@types/node": "22.13.8",
"@types/uuid": "9.0.8",
"@types/wait-on": "5.3.4",
"@vitest/coverage-istanbul": "2.1.9",
"@vitest/coverage-istanbul": "3.0.7",
"eslint": "9.20.1",
"rimraf": "6.0.1",
"typescript": "5.7.3",
"vitest": "2.1.9"
"vitest": "3.0.7"
}
}
4 changes: 2 additions & 2 deletions libs/@local/hash-isomorphic-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@
"@types/lodash-es": "4.17.12",
"@types/node": "22.13.8",
"@types/pluralize": "0.0.33",
"@vitest/coverage-istanbul": "2.1.9",
"@vitest/coverage-istanbul": "3.0.7",
"eslint": "9.20.1",
"graphql": "16.10.0",
"next": "15.2.0",
"react": "19.0.0",
"rimraf": "6.0.1",
"typescript": "5.7.3",
"vitest": "2.1.9"
"vitest": "3.0.7"
}
}
4 changes: 2 additions & 2 deletions libs/@local/hash-subgraph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@
},
"devDependencies": {
"@local/eslint": "0.0.0-private",
"@vitest/coverage-istanbul": "2.1.9",
"@vitest/coverage-istanbul": "3.0.7",
"eslint": "9.20.1",
"rimraf": "6.0.1",
"typescript": "5.7.3",
"vitest": "2.1.9"
"vitest": "3.0.7"
}
}
4 changes: 2 additions & 2 deletions tests/hash-backend-integration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@
"@local/eslint": "0.0.0-private",
"@local/tsconfig": "0.0.0-private",
"@types/node-fetch": "2.6.12",
"@vitest/coverage-istanbul": "2.1.9",
"@vitest/coverage-istanbul": "3.0.7",
"eslint": "9.20.1",
"rimraf": "6.0.1",
"typescript": "5.7.3",
"vitest": "2.1.9"
"vitest": "3.0.7"
}
}
Loading

0 comments on commit dd1c15c

Please sign in to comment.