Skip to content

Commit

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

* Remove "--sequence.concurrent" as it caused failure in some packages

* Revert to `vitest` 2.0.4 as 2.0.5 has more Chai problems: vitest-dev/vitest#4688

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Øyvind Smestad <oyvind@tidal.com>
  • Loading branch information
renovate[bot] and osmestad authored Aug 14, 2024
1 parent 1af6fb5 commit 25e8fe0
Show file tree
Hide file tree
Showing 11 changed files with 260 additions and 425 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"eslint-plugin-disable-autofix": "5.0.1",
"eslint-plugin-jsdoc": "50.2.1",
"typedoc": "0.26.3",
"vitest": "1.6.0"
"vitest": "2.0.4"
},
"prettier": {
"arrowParens": "avoid",
Expand Down
8 changes: 4 additions & 4 deletions packages/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"lint:fix": "pnpm run lint --fix",
"prepare": "vite build",
"preview": "vite preview",
"test": "vitest --sequence.concurrent",
"test": "vitest",
"test:coverage": "pnpm run test --coverage",
"test:ui": "pnpm run test:coverage --ui",
"typecheck": "tsc"
Expand All @@ -38,12 +38,12 @@
"@tidal-music/true-time": "workspace:^"
},
"devDependencies": {
"@vitest/coverage-v8": "1.6.0",
"@vitest/ui": "1.6.0",
"@vitest/coverage-v8": "2.0.4",
"@vitest/ui": "2.0.4",
"typescript": "5.5.3",
"vite": "5.3.2",
"vite-plugin-dts": "4.0.2",
"vite-plugin-top-level-await": "1.4.1",
"vitest": "1.6.0"
"vitest": "2.0.4"
}
}
8 changes: 4 additions & 4 deletions packages/catalogue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"lint:fix": "pnpm run lint --fix",
"preview": "vite preview",
"generateTypes": "openapi-typescript https://developer.tidal.com/apiref/api-specifications/api-public-catalogue-jsonapi/tidal-catalog-v2-openapi-3.0.json --output ./src/catalogueAPI.d.ts && echo \"/* eslint-disable */\n$(cat ./src/catalogueAPI.d.ts)\" > ./src/catalogueAPI.d.ts",
"test": "vitest --sequence.concurrent",
"test": "vitest",
"test:coverage": "pnpm run test --coverage",
"test:ui": "pnpm run test:coverage --ui",
"typecheck": "tsc"
Expand All @@ -39,12 +39,12 @@
"devDependencies": {
"@tidal-music/auth": "workspace:^",
"@tidal-music/common": "workspace:^",
"@vitest/coverage-v8": "1.6.0",
"@vitest/ui": "1.6.0",
"@vitest/coverage-v8": "2.0.4",
"@vitest/ui": "2.0.4",
"openapi-typescript": "6.7.6",
"typescript": "5.5.3",
"vite": "5.3.2",
"vite-plugin-dts": "4.0.2",
"vitest": "1.6.0"
"vitest": "2.0.4"
}
}
8 changes: 4 additions & 4 deletions packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"lint:ci": "eslint . --quiet",
"lint:fix": "pnpm run lint --fix",
"preview": "vite preview",
"test": "vitest --sequence.concurrent",
"test": "vitest",
"test:coverage": "pnpm run test --coverage",
"test:ui": "pnpm run test:coverage --ui",
"typecheck": "tsc"
Expand All @@ -35,11 +35,11 @@
"@tidal-music/common": "workspace:*"
},
"devDependencies": {
"@vitest/coverage-v8": "1.6.0",
"@vitest/ui": "1.6.0",
"@vitest/coverage-v8": "2.0.4",
"@vitest/ui": "2.0.4",
"typescript": "5.5.3",
"vite": "5.3.2",
"vite-plugin-dts": "4.0.2",
"vitest": "1.6.0"
"vitest": "2.0.4"
}
}
10 changes: 5 additions & 5 deletions packages/event-producer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,22 @@
"lint:ci": "eslint . --quiet",
"lint:fix": "pnpm run lint --fix",
"preview": "vite preview",
"test": "vitest --sequence.concurrent",
"test": "vitest",
"test:ci": "pnpm run test:coverage --reporter=json-summary --reporter=json",
"test:coverage": "pnpm run test --coverage",
"test:ui": "pnpm run test:coverage --ui",
"typecheck": "tsc"
},
"devDependencies": {
"@vitest/coverage-v8": "1.6.0",
"@vitest/ui": "1.6.0",
"@vitest/web-worker": "1.6.0",
"@vitest/coverage-v8": "2.0.4",
"@vitest/ui": "2.0.4",
"@vitest/web-worker": "2.0.4",
"happy-dom": "14.12.3",
"typescript": "5.5.3",
"vite": "5.3.2",
"vite-plugin-dts": "4.0.2",
"vite-plugin-top-level-await": "1.4.1",
"vitest": "1.6.0",
"vitest": "2.0.4",
"xml-js": "1.6.11"
},
"dependencies": {
Expand Down
8 changes: 4 additions & 4 deletions packages/player-web-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"lint:ci": "eslint . --quiet",
"lint:fix": "pnpm run lint --fix",
"preview": "vite preview",
"test": "vitest --sequence.concurrent",
"test": "vitest",
"test:coverage": "pnpm run test --coverage",
"test:ui": "pnpm run test:coverage --ui",
"typecheck": "tsc",
Expand All @@ -40,11 +40,11 @@
"@tidal-music/auth": "workspace:^",
"@tidal-music/common": "workspace:^",
"@tidal-music/player": "workspace:^",
"@vitest/coverage-v8": "1.6.0",
"@vitest/ui": "1.6.0",
"@vitest/coverage-v8": "2.0.4",
"@vitest/ui": "2.0.4",
"typescript": "5.5.3",
"vite": "5.3.2",
"vite-plugin-dts": "4.0.2",
"vitest": "1.6.0"
"vitest": "2.0.4"
}
}
2 changes: 1 addition & 1 deletion packages/player/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,6 @@
"vite": "5.3.2",
"vite-plugin-dts": "4.0.2",
"vite-plugin-top-level-await": "1.4.1",
"vitest": "1.6.0"
"vitest": "2.0.4"
}
}
8 changes: 4 additions & 4 deletions packages/search/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"lint:fix": "pnpm run lint --fix",
"preview": "vite preview",
"generateTypes": "openapi-typescript https://developer.tidal.com/apiref/api-specifications/api-public-search-jsonapi/tidal-search-v2-openapi-3.0.json --output ./src/searchAPI.d.ts && echo \"/* eslint-disable */\n$(cat ./src/searchAPI.d.ts)\" > ./src/searchAPI.d.ts",
"test": "vitest --sequence.concurrent",
"test": "vitest",
"test:coverage": "pnpm run test --coverage",
"test:ui": "pnpm run test:coverage --ui",
"typecheck": "tsc"
Expand All @@ -39,12 +39,12 @@
"devDependencies": {
"@tidal-music/auth": "workspace:^",
"@tidal-music/common": "workspace:^",
"@vitest/coverage-v8": "1.6.0",
"@vitest/ui": "1.6.0",
"@vitest/coverage-v8": "2.0.4",
"@vitest/ui": "2.0.4",
"openapi-typescript": "6.7.6",
"typescript": "5.5.3",
"vite": "5.3.2",
"vite-plugin-dts": "4.0.2",
"vitest": "1.6.0"
"vitest": "2.0.4"
}
}
8 changes: 4 additions & 4 deletions packages/template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"lint:ci": "eslint . --quiet",
"lint:fix": "pnpm run lint --fix",
"preview": "vite preview",
"test": "vitest --sequence.concurrent",
"test": "vitest",
"test:coverage": "pnpm run test --coverage",
"test:ui": "pnpm run test:coverage --ui",
"typecheck": "tsc"
Expand All @@ -36,11 +36,11 @@
"@tidal-music/template": "workspace:*"
},
"devDependencies": {
"@vitest/coverage-v8": "1.6.0",
"@vitest/ui": "1.6.0",
"@vitest/coverage-v8": "2.0.4",
"@vitest/ui": "2.0.4",
"typescript": "5.5.3",
"vite": "5.3.2",
"vite-plugin-dts": "4.0.2",
"vitest": "1.6.0"
"vitest": "2.0.4"
}
}
8 changes: 4 additions & 4 deletions packages/true-time/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@
"lint:ci": "eslint . --quiet",
"lint:fix": "pnpm run lint --fix",
"preview": "vite preview",
"test": "vitest --sequence.concurrent",
"test": "vitest",
"test:coverage": "pnpm run test --coverage"
},
"dependencies": {
"@tidal-music/true-time": "workspace:*"
},
"devDependencies": {
"@vitest/coverage-v8": "1.6.0",
"@vitest/ui": "1.6.0",
"@vitest/coverage-v8": "2.0.4",
"@vitest/ui": "2.0.4",
"typescript": "5.5.3",
"vite": "5.3.2",
"vite-plugin-dts": "4.0.2",
"vitest": "1.6.0"
"vitest": "2.0.4"
},
"files": [
"dist"
Expand Down
Loading

0 comments on commit 25e8fe0

Please sign in to comment.