tailwindcss/package.json
Robin Malfait 479b725cd3
Bump Vitest to v4 (#19216)
This PR bumps Vitest from v2 to v4. As far as I know we don't use any
Vitest specific features in our tests, but had to upgrade the
`vitest.workspace.ts` file to a `vitest.config.ts` file instead.

The only features we use are the typical `describe`, `it`, `test`, and
`expect` functions.

The only other part we use is `vi.spyOn` and `vi.fn` but those didn't
change in API either.

The test shards were removed to prevent errors. Not all suites have
enough files / tests to be broken up into 3 parts so Vitest now errors
when that happens.

### Test plan

1. All tests should pass in CI.
2. All integration tests should pass in CI.

---------

Co-authored-by: Jordan Pittman <jordan@cryptica.me>
2025-11-20 18:16:20 -05:00

71 lines
1.9 KiB
JSON

{
"name": "@tailwindcss/root",
"private": true,
"version": "1.0.0",
"prettier": {
"semi": false,
"singleQuote": true,
"printWidth": 100,
"plugins": [
"prettier-plugin-organize-imports"
],
"overrides": [
{
"files": [
"tsconfig.json"
],
"options": {
"parser": "jsonc"
}
},
{
"files": [
"integrations/**/*.ts"
],
"options": {
"plugins": [
"prettier-plugin-embed",
"prettier-plugin-organize-imports"
]
}
}
]
},
"scripts": {
"format": "prettier --write .",
"lint": "prettier --check . && turbo lint",
"build": "turbo build --filter=!./playgrounds/*",
"postbuild": "node ./scripts/pack-packages.mjs",
"dev": "turbo dev --filter=!./playgrounds/*",
"test": "cargo test && vitest run --hideSkippedTests",
"test:integrations": "vitest --root=./integrations",
"test:ui": "pnpm run --filter=tailwindcss test:ui && pnpm run --filter=@tailwindcss/browser test:ui",
"tdd": "vitest --hideSkippedTests",
"bench": "vitest bench",
"version-packages": "node ./scripts/version-packages.mjs",
"vite": "pnpm run --filter=vite-playground dev",
"nextjs": "pnpm run --filter=nextjs-playground dev"
},
"license": "MIT",
"devDependencies": {
"@playwright/test": "^1.56.1",
"@types/node": "catalog:",
"postcss": "8.5.6",
"postcss-import": "^16.1.1",
"prettier": "catalog:",
"prettier-plugin-embed": "^0.5.0",
"prettier-plugin-organize-imports": "^4.3.0",
"tsup": "^8.5.1",
"turbo": "^2.6.1",
"typescript": "^5.5.4",
"vitest": "^4.0.3"
},
"packageManager": "pnpm@9.6.0",
"pnpm": {
"patchedDependencies": {
"lightningcss@1.30.2": "patches/lightningcss@1.30.2.patch",
"@parcel/watcher@2.5.1": "patches/@parcel__watcher@2.5.1.patch"
}
}
}