Skip to content

Commit

Permalink
Update vitest monorepo to v2 (major) (directus#23809)
Browse files Browse the repository at this point in the history
* Update vitest monorepo to v2

* Fix buffer mocking

* Forks is now the default

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Pascal Jufer <[email protected]>
  • Loading branch information
renovate[bot] and paescuj authored Oct 8, 2024
1 parent aabef57 commit 690b228
Show file tree
Hide file tree
Showing 28 changed files with 316 additions and 224 deletions.
4 changes: 2 additions & 2 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -216,13 +216,13 @@
"@types/stream-json": "1.7.7",
"@types/wellknown": "0.5.8",
"@types/ws": "8.5.12",
"@vitest/coverage-v8": "1.5.3",
"@vitest/coverage-v8": "2.1.2",
"copyfiles": "2.4.1",
"form-data": "4.0.0",
"get-port": "7.1.0",
"knex-mock-client": "2.0.1",
"typescript": "5.6.2",
"vitest": "1.5.3"
"vitest": "2.1.2"
},
"optionalDependencies": {
"@keyv/redis": "2.8.5",
Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
"tus-js-client": "4.2.3",
"typescript": "5.6.2",
"vite": "5.2.11",
"vitest": "1.5.3",
"vitest": "2.1.2",
"vue": "3.4.27",
"vue-i18n": "9.14.0",
"vue-router": "4.4.3",
Expand Down
4 changes: 2 additions & 2 deletions packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@
"@directus/tsconfig": "workspace:*",
"@histoire/plugin-vue": "0.17.17",
"@vitejs/plugin-vue": "5.0.4",
"@vitest/coverage-v8": "1.5.3",
"@vitest/coverage-v8": "2.1.2",
"histoire": "0.17.17",
"pinia": "2.2.2",
"rollup-plugin-node-externals": "7.1.3",
"typescript": "5.6.2",
"vite": "5.2.11",
"vite-plugin-dts": "4.2.3",
"vitest": "1.5.3",
"vitest": "2.1.2",
"vue": "3.4.27",
"vue-i18n": "9.14.0",
"vue-router": "4.4.3"
Expand Down
4 changes: 2 additions & 2 deletions packages/composables/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@
"@directus/tsconfig": "workspace:*",
"@directus/types": "workspace:*",
"@types/lodash-es": "4.17.12",
"@vitest/coverage-v8": "1.5.3",
"@vitest/coverage-v8": "2.1.2",
"@vue/test-utils": "2.4.6",
"tsup": "8.2.4",
"typescript": "5.6.2",
"vitest": "1.5.3",
"vitest": "2.1.2",
"vue": "3.4.27"
},
"peerDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/env/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
"@directus/tsconfig": "workspace:*",
"@types/lodash-es": "4.17.12",
"@types/node": "18.19.50",
"@vitest/coverage-v8": "1.5.3",
"@vitest/coverage-v8": "2.1.2",
"tsup": "8.2.4",
"typescript": "5.6.2",
"vitest": "1.5.3"
"vitest": "2.1.2"
},
"dependencies": {
"@directus/constants": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/errors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
"@directus/random": "workspace:*",
"@directus/tsconfig": "workspace:*",
"@types/ms": "0.7.34",
"@vitest/coverage-v8": "1.5.3",
"@vitest/coverage-v8": "2.1.2",
"tsup": "8.2.4",
"typescript": "5.6.2",
"vitest": "1.5.3"
"vitest": "2.1.2"
}
}
4 changes: 2 additions & 2 deletions packages/extensions-registry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
"@directus/tsconfig": "workspace:*",
"@types/lodash-es": "4.17.12",
"@types/validate-npm-package-name": "4.0.2",
"@vitest/coverage-v8": "1.5.3",
"@vitest/coverage-v8": "2.1.2",
"tsup": "8.2.4",
"typescript": "5.6.2",
"vitest": "1.5.3"
"vitest": "2.1.2"
}
}
4 changes: 2 additions & 2 deletions packages/extensions-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@
"@directus/tsconfig": "workspace:*",
"@types/fs-extra": "11.0.4",
"@types/inquirer": "9.0.7",
"@vitest/coverage-v8": "1.5.3",
"@vitest/coverage-v8": "2.1.2",
"typescript": "5.6.2",
"vitest": "1.5.3"
"vitest": "2.1.2"
},
"engines": {
"node": ">=12.20.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/extensions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@
"@types/lodash-es": "4.17.12",
"@types/node": "18.19.50",
"@types/tmp": "0.2.6",
"@vitest/coverage-v8": "1.5.3",
"@vitest/coverage-v8": "2.1.2",
"knex": "3.1.0",
"pino": "9.4.0",
"tmp": "0.2.3",
"tsup": "8.2.4",
"typescript": "5.6.2",
"vitest": "1.5.3",
"vitest": "2.1.2",
"vue": "3.4.27",
"vue-router": "4.4.3"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/format-title/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"@directus/tsconfig": "workspace:*",
"tsup": "8.2.4",
"typescript": "5.6.2",
"vitest": "1.5.3"
"vitest": "2.1.2"
},
"engines": {
"node": ">=18"
Expand Down
4 changes: 2 additions & 2 deletions packages/memory/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
"devDependencies": {
"@directus/tsconfig": "workspace:*",
"@types/node": "18.19.50",
"@vitest/coverage-v8": "1.5.3",
"@vitest/coverage-v8": "2.1.2",
"tsup": "8.2.4",
"typescript": "5.6.2",
"vitest": "1.5.3"
"vitest": "2.1.2"
}
}
4 changes: 2 additions & 2 deletions packages/pressure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
"@directus/random": "workspace:*",
"@directus/tsconfig": "workspace:*",
"@types/express": "4.17.21",
"@vitest/coverage-v8": "1.5.3",
"@vitest/coverage-v8": "2.1.2",
"tsup": "8.2.4",
"typescript": "5.6.2",
"vitest": "1.5.3"
"vitest": "2.1.2"
}
}
4 changes: 2 additions & 2 deletions packages/random/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
"devDependencies": {
"@directus/tsconfig": "workspace:*",
"@types/node": "18.19.50",
"@vitest/coverage-v8": "1.5.3",
"@vitest/coverage-v8": "2.1.2",
"tsup": "8.2.4",
"typescript": "5.6.2",
"vitest": "1.5.3"
"vitest": "2.1.2"
}
}
4 changes: 2 additions & 2 deletions packages/release-notes-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
"@directus/tsconfig": "workspace:*",
"@types/node": "18.19.50",
"@types/semver": "7.5.8",
"@vitest/coverage-v8": "1.5.3",
"@vitest/coverage-v8": "2.1.2",
"typescript": "5.6.2",
"vitest": "1.5.3"
"vitest": "2.1.2"
}
}
4 changes: 2 additions & 2 deletions packages/storage-driver-azure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
"devDependencies": {
"@directus/tsconfig": "workspace:*",
"@ngneat/falso": "7.2.0",
"@vitest/coverage-v8": "1.5.3",
"@vitest/coverage-v8": "2.1.2",
"tsup": "8.2.4",
"typescript": "5.6.2",
"vitest": "1.5.3"
"vitest": "2.1.2"
}
}
4 changes: 2 additions & 2 deletions packages/storage-driver-cloudinary/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
"devDependencies": {
"@directus/tsconfig": "workspace:*",
"@ngneat/falso": "7.2.0",
"@vitest/coverage-v8": "1.5.3",
"@vitest/coverage-v8": "2.1.2",
"tsup": "8.2.4",
"typescript": "5.6.2",
"vitest": "1.5.3"
"vitest": "2.1.2"
}
}
3 changes: 2 additions & 1 deletion packages/storage-driver-cloudinary/src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
randGitShortSha as randUnique,
randWord,
} from '@ngneat/falso';
import { Blob } from 'node:buffer';
import { Blob, Buffer } from 'node:buffer';
import type { Hash } from 'node:crypto';
import { createHash } from 'node:crypto';
import type { ParsedPath } from 'node:path';
Expand All @@ -31,6 +31,7 @@ import { DriverCloudinary } from './index.js';
vi.mock('@directus/utils/node');
vi.mock('@directus/utils');
vi.mock('node:path');
vi.mock('node:buffer');
vi.mock('node:crypto');
vi.mock('undici');

Expand Down
4 changes: 2 additions & 2 deletions packages/storage-driver-gcs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
"devDependencies": {
"@directus/tsconfig": "workspace:*",
"@ngneat/falso": "7.2.0",
"@vitest/coverage-v8": "1.5.3",
"@vitest/coverage-v8": "2.1.2",
"tsup": "8.2.4",
"typescript": "5.6.2",
"vitest": "1.5.3"
"vitest": "2.1.2"
}
}
4 changes: 2 additions & 2 deletions packages/storage-driver-local/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
"@directus/tsconfig": "workspace:*",
"@ngneat/falso": "7.2.0",
"@types/node": "18.19.50",
"@vitest/coverage-v8": "1.5.3",
"@vitest/coverage-v8": "2.1.2",
"tsup": "8.2.4",
"typescript": "5.6.2",
"vitest": "1.5.3"
"vitest": "2.1.2"
}
}
4 changes: 2 additions & 2 deletions packages/storage-driver-s3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
"devDependencies": {
"@directus/tsconfig": "workspace:*",
"@ngneat/falso": "7.2.0",
"@vitest/coverage-v8": "1.5.3",
"@vitest/coverage-v8": "2.1.2",
"tsup": "8.2.4",
"typescript": "5.6.2",
"vitest": "1.5.3"
"vitest": "2.1.2"
}
}
4 changes: 2 additions & 2 deletions packages/storage-driver-supabase/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
"devDependencies": {
"@directus/tsconfig": "workspace:*",
"@ngneat/falso": "7.2.0",
"@vitest/coverage-v8": "1.5.3",
"@vitest/coverage-v8": "2.1.2",
"tsup": "8.2.4",
"typescript": "5.6.2",
"vitest": "1.5.3"
"vitest": "2.1.2"
}
}
4 changes: 2 additions & 2 deletions packages/storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
"devDependencies": {
"@directus/tsconfig": "workspace:*",
"@types/node": "18.19.50",
"@vitest/coverage-v8": "1.5.3",
"@vitest/coverage-v8": "2.1.2",
"tsup": "8.2.4",
"typescript": "5.6.2",
"vitest": "1.5.3"
"vitest": "2.1.2"
}
}
4 changes: 2 additions & 2 deletions packages/update-check/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
"@npm/types": "2.0.0",
"@types/node": "18.19.50",
"@types/semver": "7.5.8",
"@vitest/coverage-v8": "1.5.3",
"@vitest/coverage-v8": "2.1.2",
"strip-ansi": "7.1.0",
"tsup": "8.2.4",
"typescript": "5.6.2",
"vitest": "1.5.3"
"vitest": "2.1.2"
}
}
4 changes: 2 additions & 2 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@
"@types/lodash-es": "4.17.12",
"@types/node": "18.19.50",
"@types/tmp": "0.2.6",
"@vitest/coverage-v8": "1.5.3",
"@vitest/coverage-v8": "2.1.2",
"tmp": "0.2.3",
"tsup": "8.2.4",
"typescript": "5.6.2",
"vitest": "1.5.3",
"vitest": "2.1.2",
"vue": "3.4.27"
},
"peerDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/validation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
"devDependencies": {
"@directus/tsconfig": "workspace:*",
"@directus/types": "workspace:*",
"@vitest/coverage-v8": "1.5.3",
"@vitest/coverage-v8": "2.1.2",
"tsup": "8.2.4",
"typescript": "5.6.2",
"vitest": "1.5.3"
"vitest": "2.1.2"
},
"dependencies": {
"@directus/errors": "workspace:*",
Expand Down
Loading

0 comments on commit 690b228

Please sign in to comment.