refactor: rename test/cli -> test/e2e, test/core -> test/unit (#10209)

This commit is contained in:
Vladimir
2026-04-27 16:15:56 +02:00
committed by GitHub
parent 6de1617afe
commit 310115500e
1012 changed files with 380 additions and 378 deletions
+6 -6
View File
@@ -1,6 +1,6 @@
---
name: vitest-test-writer
description: "Use this agent when the user needs to write comprehensive tests for Vitest features. This includes unit tests for individual functions, integration tests for CLI functionality, and browser mode tests. The agent should be invoked when implementing new features that require test coverage, fixing bugs that need regression tests, or expanding test coverage for existing functionality.\\n\\nExamples:\\n\\n<example>\\nContext: User has just implemented a new utility function in the codebase.\\nuser: \"I just added a new parseConfig function to the config package\"\\nassistant: \"I see you've added a new function. Let me use the vitest-test-writer agent to create comprehensive tests for it.\"\\n<commentary>\\nSince a new function was added, use the Task tool to launch the vitest-test-writer agent to write unit tests in test/core.\\n</commentary>\\n</example>\\n\\n<example>\\nContext: User is working on a CLI feature.\\nuser: \"Please add a --json flag to the list command\"\\nassistant: \"I'll implement the --json flag for the list command.\"\\n<function call to implement the feature>\\nassistant: \"Now let me use the vitest-test-writer agent to write integration tests for this new CLI flag.\"\\n<commentary>\\nSince a CLI feature was implemented, use the Task tool to launch the vitest-test-writer agent to write integration tests in test/cli using runInlineTests.\\n</commentary>\\n</example>\\n\\n<example>\\nContext: User wants to ensure a feature works in both normal and browser modes.\\nuser: \"Can you write tests for the new snapshot feature?\"\\nassistant: \"I'll use the vitest-test-writer agent to write comprehensive tests for the snapshot feature, covering both normal and browser modes.\"\\n<commentary>\\nSince the feature needs testing in multiple modes, use the Task tool to launch the vitest-test-writer agent to write tests in test/cli (for features supporting both modes).\\n</commentary>\\n</example>"
description: "Use this agent when the user needs to write comprehensive tests for Vitest features. This includes unit tests for individual functions, integration tests for CLI functionality, and browser mode tests. The agent should be invoked when implementing new features that require test coverage, fixing bugs that need regression tests, or expanding test coverage for existing functionality.\\n\\nExamples:\\n\\n<example>\\nContext: User has just implemented a new utility function in the codebase.\\nuser: \"I just added a new parseConfig function to the config package\"\\nassistant: \"I see you've added a new function. Let me use the vitest-test-writer agent to create comprehensive tests for it.\"\\n<commentary>\\nSince a new function was added, use the Task tool to launch the vitest-test-writer agent to write unit tests in test/unit.\\n</commentary>\\n</example>\\n\\n<example>\\nContext: User is working on a CLI feature.\\nuser: \"Please add a --json flag to the list command\"\\nassistant: \"I'll implement the --json flag for the list command.\"\\n<function call to implement the feature>\\nassistant: \"Now let me use the vitest-test-writer agent to write integration tests for this new CLI flag.\"\\n<commentary>\\nSince a CLI feature was implemented, use the Task tool to launch the vitest-test-writer agent to write integration tests in test/e2e using runInlineTests.\\n</commentary>\\n</example>\\n\\n<example>\\nContext: User wants to ensure a feature works in both normal and browser modes.\\nuser: \"Can you write tests for the new snapshot feature?\"\\nassistant: \"I'll use the vitest-test-writer agent to write comprehensive tests for the snapshot feature, covering both normal and browser modes.\"\\n<commentary>\\nSince the feature needs testing in multiple modes, use the Task tool to launch the vitest-test-writer agent to write tests in test/e2e (for features supporting both modes).\\n</commentary>\\n</example>"
model: opus
color: green
---
@@ -13,9 +13,9 @@ You write comprehensive, high-quality tests that follow the established patterns
## Test Location Rules
- **Unit tests**: Place in `test/core/`. These test individual functions by importing them directly, regardless of which package defines them.
- **Integration tests**: Place in `test/cli/`. These test CLI functionality and features that require running Vitest as a process.
- **Browser mode tests**: Place in `test/browser/`. However, if a feature supports both normal tests AND browser tests, place the tests in `test/cli/`.
- **Unit tests**: Place in `test/unit/`. These test individual functions by importing them directly, regardless of which package defines them.
- **Integration tests**: Place in `test/e2e/`. These test CLI functionality and features that require running Vitest as a process.
- **Browser mode tests**: Place in `test/browser/`. However, if a feature supports both normal tests AND browser tests, place the tests in `test/e2e/`.
## Testing Patterns You Must Follow
@@ -51,7 +51,7 @@ To ensure all tests actually passed (not just that they ran), use `testTree` or
## Writing Unit Tests
For unit tests in `test/core/`:
For unit tests in `test/unit/`:
1. Import the function directly from its source package
2. Test pure functionality without process spawning
3. Cover edge cases, error conditions, and typical usage
@@ -59,7 +59,7 @@ For unit tests in `test/core/`:
## Writing Integration Tests
For integration tests in `test/cli/`:
For integration tests in `test/e2e/`:
1. Use `runInlineTests` to define test scenarios
2. Create realistic test file content
3. Validate both stderr and the test results structure
+1 -1
View File
@@ -1,3 +1,3 @@
* text=auto eol=lf
test/cli/fixtures/reporters/indicator-position.test.js eol=crlf
test/e2e/fixtures/reporters/indicator-position.test.js eol=crlf
+3 -3
View File
@@ -23,16 +23,16 @@ bench/test/*/*/
docs/public/user-avatars
.eslintcache
docs/.vitepress/cache/
!test/cli/fixtures/dotted-files/**/.cache
!test/e2e/fixtures/dotted-files/**/.cache
test/**/__screenshots__/**/*
test/**/__traces__/**/*
test/browser/fixtures/update-snapshot/basic.test.ts
test/cli/fixtures/browser-multiple/basic-*
test/e2e/fixtures/browser-multiple/basic-*
.vitest-reports
*.tsbuildinfo
# exclude static html reporter folder
test/browser/html/
test/core/html/
test/unit/html/
.vitest
explainFiles.txt
.vitest-dump
+1 -1
View File
@@ -58,7 +58,7 @@
"label": "npm: test",
"isBackground": true,
"dependsOn": ["npm: dev"],
"detail": "vitest -r test/core --api",
"detail": "vitest -r test/unit --api",
"problemMatcher": {
"owner": "typescript",
"fileLocation": "relative",
+2 -2
View File
@@ -32,7 +32,7 @@ Vitest is a next-generation testing framework powered by Vite. This is a monorep
- **All tests**: `CI=true pnpm test:ci`
- **Examples**: `CI=true pnpm test:examples`
- **Specific test suite**: `CI=true cd test/<test-folder> && pnpm test <test-file>`
- **Core directory test**: `CI=true pnpm test <test-file>` (for `test/core`)
- **Unit directory test**: `CI=true pnpm test <test-file>` (for `test/unit`)
- **Browser tests**: `CI=true pnpm test:browser:playwright` or `CI=true pnpm test:browser:webdriverio`
**IMPORTANT: Do NOT use `--` when passing test filters to pnpm.**
@@ -70,7 +70,7 @@ If you need to typecheck tests, run `pnpm typecheck` from the root of the worksp
- `mocker` - Module mocking
### Test Organization (`test/`)
- `test/core` - Core functionality tests
- `test/unit` - Core functionality tests
- `test/browser` - Browser-specific tests
- Various test suites organized by feature
+1 -1
View File
@@ -2,7 +2,7 @@
extend-exclude = [
"*.js.map",
"*.svg",
"test/cli/test/fixtures/reporters/html/**",
"test/e2e/test/fixtures/reporters/html/**",
]
[default.extend-words]
+5 -5
View File
@@ -14,17 +14,17 @@ export default antfu(
'**/assets/**',
'**/*.d.ts',
'**/*.timestamp-*',
'test/core/src/self',
'test/core/test/mocking/already-hoisted.test.ts',
'test/unit/src/self',
'test/unit/test/mocking/already-hoisted.test.ts',
'test/cache/cache/.vitest-base/results.json',
'test/core/src/wasm/wasm-bindgen-no-cyclic',
'test/unit/src/wasm/wasm-bindgen-no-cyclic',
'test/workspaces/results.json',
'test/workspaces-browser/results.json',
'test/reporters/fixtures/with-syntax-error.test.js',
'test/network-imports/public/[email protected]',
'test/coverage-test/src/transpiled.js',
'test/coverage-test/src/original.ts',
'test/cli/deps/error/*',
'test/e2e/deps/error/*',
'examples/**/mockServiceWorker.js',
'examples/sveltekit/.svelte-kit',
'packages/browser/**/esm-client-injector.js',
@@ -127,7 +127,7 @@ export default antfu(
files: [
`docs/${GLOB_SRC}`,
`packages/web-worker/${GLOB_SRC}`,
`test/core/${GLOB_SRC}`,
`test/unit/${GLOB_SRC}`,
],
rules: {
'no-restricted-globals': 'off',
+1 -1
View File
@@ -50,7 +50,7 @@ export function withTimeout<T extends (...args: any[]) => any>(
const { setTimeout, clearTimeout } = getSafeTimers()
// this function name is used to filter error in test/cli/test/fails.test.ts
// this function name is used to filter error in test/e2e/test/fails.test.ts
return (function runWithTimeout(...args: T extends (...args: infer A) => any ? A : never) {
const startTime = now()
const runner = getRunner()
+1 -1
View File
@@ -72,7 +72,7 @@ The new Explorer is using a flat structure to represent the tree via virtual scr
It is using a new approach to handle the tree list, now we have a separated vue shallow ref for entries in the ui ([uiEntries in composables/explorer/state.ts](client/composables/explorer/state.ts)), and the WebSocket state using vue shallow ref for both, `idsMap` and `filesMap`, while keeping the state itself with Vue reactive.
Now we are able to update the tree list only when the entries are updated and not when the WebSocket state is updated, which is a huge performance improvement.
Some numbers running `test/core` with Vitest UI (162 files with 3 workspaces: 5100+ tests) in a `i7-12700H` laptop:
Some numbers running `test/unit` with Vitest UI (162 files with 3 workspaces: 5100+ tests) in a `i7-12700H` laptop:
- tree list: after server finishing running the tests, Vitest UI took ~1 minute to finish rendering the full tree (~150MB of memory usage)
- explorer: Vitest UI finishing rendering the full tree before the server reporter shows the tests summary (~10MB of memory usage)
+271 -271
View File
@@ -1263,138 +1263,6 @@ importers:
specifier: 'catalog:'
version: 3.2.0
test/cli:
devDependencies:
'@opentelemetry/api':
specifier: ^1.9.0
version: 1.9.0
'@opentelemetry/sdk-node':
specifier: ^0.213.0
version: 0.213.0(@opentelemetry/[email protected])
'@opentelemetry/sdk-trace-web':
specifier: ^2.6.0
version: 2.6.0(@opentelemetry/[email protected])
'@test/pkg-reporter':
specifier: link:./deps/pkg-reporter
version: link:deps/pkg-reporter
'@test/test-dep-error':
specifier: file:./deps/error
version: file:test/cli/deps/error
'@test/test-dep-linked':
specifier: link:./deps/linked
version: link:deps/linked
'@test/test-dep-url':
specifier: link:./deps/dep-url
version: link:deps/dep-url
'@types/ws':
specifier: 'catalog:'
version: 8.18.1
'@vitejs/plugin-basic-ssl':
specifier: ^2.1.4
version: 2.1.4([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))
'@vitest/browser-playwright':
specifier: workspace:*
version: link:../../packages/browser-playwright
'@vitest/browser-preview':
specifier: workspace:*
version: link:../../packages/browser-preview
'@vitest/browser-webdriverio':
specifier: workspace:*
version: link:../../packages/browser-webdriverio
'@vitest/mocker':
specifier: workspace:*
version: link:../../packages/mocker
'@vitest/runner':
specifier: workspace:*
version: link:../../packages/runner
'@vitest/utils':
specifier: workspace:*
version: link:../../packages/utils
flatted:
specifier: 'catalog:'
version: 3.4.2
obug:
specifier: ^2.1.1
version: 2.1.1
playwright:
specifier: 'catalog:'
version: 1.59.0
test-dep-invalid:
specifier: link:./deps/dep-invalid
version: link:deps/dep-invalid
test-dep-simple:
specifier: file:./deps/dep-simple
version: file:test/cli/deps/dep-simple
tinyspy:
specifier: 'catalog:'
version: 4.0.4
typescript:
specifier: 'catalog:'
version: 5.9.3
unplugin-swc:
specifier: ^1.5.9
version: 1.5.9(@swc/[email protected](@swc/[email protected]))([email protected])
vite:
specifier: 7.1.5
version: 7.1.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])
vitest:
specifier: workspace:*
version: link:../../packages/vitest
vitest-sonar-reporter:
specifier: 'catalog:'
version: 3.0.0(vitest@packages+vitest)
ws:
specifier: 'catalog:'
version: 8.19.0
test/cli/dts/browser-playwright:
devDependencies:
'@vitest/browser-playwright':
specifier: workspace:*
version: link:../../../../packages/browser-playwright
vitest:
specifier: workspace:*
version: link:../../../../packages/vitest
test/cli/dts/config:
devDependencies:
vitest:
specifier: workspace:*
version: link:../../../../packages/vitest
test/cli/dts/exact-optional-property-no-node:
devDependencies:
'@vitest/runner':
specifier: workspace:*
version: link:../../../../packages/runner
vitest:
specifier: workspace:*
version: link:../../../../packages/vitest
test/cli/dts/exact-optional-property-node:
devDependencies:
'@vitest/runner':
specifier: workspace:*
version: link:../../../../packages/runner
vitest:
specifier: workspace:*
version: link:../../../../packages/vitest
test/cli/dts/fixture-extend:
devDependencies:
vitest:
specifier: workspace:*
version: link:../../../../packages/vitest
test/cli/dts/no-dispose:
devDependencies:
'@vitest/runner':
specifier: workspace:*
version: link:../../../../packages/runner
vitest:
specifier: workspace:*
version: link:../../../../packages/vitest
test/config:
devDependencies:
'@test/test-dep-config':
@@ -1446,117 +1314,6 @@ importers:
specifier: file:../conditions-subpackage
version: file:test/config/fixtures/conditions-subpackage
test/core:
devDependencies:
'@babel/core':
specifier: 'catalog:'
version: 7.29.0
'@babel/plugin-proposal-decorators':
specifier: 'catalog:'
version: 7.29.0(@babel/[email protected])
'@rolldown/plugin-babel':
specifier: 'catalog:'
version: 0.2.1(@babel/[email protected])(@babel/[email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))
'@standard-schema/spec':
specifier: ^1.1.0
version: 1.1.0
'@test/dep-esm-non-existing':
specifier: link:./deps/dep-esm-non-existing
version: link:deps/dep-esm-non-existing
'@test/vite-environment-external':
specifier: link:./projects/vite-environment-external
version: link:projects/vite-environment-external
'@test/vite-external':
specifier: link:./projects/vite-external
version: link:projects/vite-external
'@vitest/expect':
specifier: workspace:*
version: link:../../packages/expect
'@vitest/mocker':
specifier: workspace:*
version: link:../../packages/mocker
'@vitest/pretty-format':
specifier: workspace:*
version: link:../../packages/pretty-format
'@vitest/runner':
specifier: workspace:*
version: link:../../packages/runner
'@vitest/test-dep-cjs':
specifier: file:./deps/dep-cjs
version: file:test/core/deps/dep-cjs
'@vitest/test-dep-nested-cjs':
specifier: file:./deps/dep-nested-cjs
version: file:test/core/deps/dep-nested-cjs
'@vitest/test-dep1':
specifier: file:./deps/dep1
version: file:test/core/deps/dep1
'@vitest/test-dep2':
specifier: file:./deps/dep2
version: file:test/core/deps/dep2
'@vitest/test-fn':
specifier: file:./deps/dep-fn
version: file:test/core/deps/dep-fn
'@vitest/utils':
specifier: workspace:*
version: link:../../packages/utils
'@vitest/web-worker':
specifier: workspace:^
version: link:../../packages/web-worker
'@vueuse/integrations':
specifier: ^14.2.1
version: 14.2.1([email protected])([email protected])([email protected])([email protected]([email protected]))
axios:
specifier: ^1.13.4
version: 1.13.4
immutable:
specifier: 5.1.5
version: 5.1.5
loupe:
specifier: 'catalog:'
version: 3.2.1
memfs:
specifier: ^4.56.11
version: 4.56.11([email protected])
obug:
specifier: ^2.1.1
version: 2.1.1
react:
specifier: ^19.2.4
version: 19.2.4
react-18:
specifier: npm:[email protected]
version: [email protected]
sinon:
specifier: 'catalog:'
version: 21.0.3
sinon-chai:
specifier: 'catalog:'
version: 4.0.1([email protected])([email protected])
temporal-polyfill:
specifier: ~0.3.0
version: 0.3.0
tinyrainbow:
specifier: 'catalog:'
version: 3.1.0
tinyspy:
specifier: ^4.0.4
version: 4.0.4
url:
specifier: ^0.11.4
version: 0.11.4
vitest:
specifier: workspace:*
version: link:../../packages/vitest
vitest-environment-custom:
specifier: file:./vitest-environment-custom
version: file:test/core/vitest-environment-custom
vitest-package-exports:
specifier: ^1.2.0
version: 1.2.0
vue:
specifier: 'catalog:'
version: 3.5.29([email protected])
test/coverage-test:
devDependencies:
'@jridgewell/remapping':
@@ -1623,6 +1380,138 @@ importers:
specifier: 'catalog:'
version: 3.5.29([email protected])
test/e2e:
devDependencies:
'@opentelemetry/api':
specifier: ^1.9.0
version: 1.9.0
'@opentelemetry/sdk-node':
specifier: ^0.213.0
version: 0.213.0(@opentelemetry/[email protected])
'@opentelemetry/sdk-trace-web':
specifier: ^2.6.0
version: 2.6.0(@opentelemetry/[email protected])
'@test/pkg-reporter':
specifier: link:./deps/pkg-reporter
version: link:deps/pkg-reporter
'@test/test-dep-error':
specifier: file:./deps/error
version: file:test/e2e/deps/error
'@test/test-dep-linked':
specifier: link:./deps/linked
version: link:deps/linked
'@test/test-dep-url':
specifier: link:./deps/dep-url
version: link:deps/dep-url
'@types/ws':
specifier: 'catalog:'
version: 8.18.1
'@vitejs/plugin-basic-ssl':
specifier: ^2.1.4
version: 2.1.4([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))
'@vitest/browser-playwright':
specifier: workspace:*
version: link:../../packages/browser-playwright
'@vitest/browser-preview':
specifier: workspace:*
version: link:../../packages/browser-preview
'@vitest/browser-webdriverio':
specifier: workspace:*
version: link:../../packages/browser-webdriverio
'@vitest/mocker':
specifier: workspace:*
version: link:../../packages/mocker
'@vitest/runner':
specifier: workspace:*
version: link:../../packages/runner
'@vitest/utils':
specifier: workspace:*
version: link:../../packages/utils
flatted:
specifier: 'catalog:'
version: 3.4.2
obug:
specifier: ^2.1.1
version: 2.1.1
playwright:
specifier: 'catalog:'
version: 1.59.0
test-dep-invalid:
specifier: link:./deps/dep-invalid
version: link:deps/dep-invalid
test-dep-simple:
specifier: file:./deps/dep-simple
version: file:test/e2e/deps/dep-simple
tinyspy:
specifier: 'catalog:'
version: 4.0.4
typescript:
specifier: 'catalog:'
version: 5.9.3
unplugin-swc:
specifier: ^1.5.9
version: 1.5.9(@swc/[email protected](@swc/[email protected]))([email protected])
vite:
specifier: 7.1.5
version: 7.1.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])
vitest:
specifier: workspace:*
version: link:../../packages/vitest
vitest-sonar-reporter:
specifier: 'catalog:'
version: 3.0.0(vitest@packages+vitest)
ws:
specifier: 'catalog:'
version: 8.19.0
test/e2e/dts/browser-playwright:
devDependencies:
'@vitest/browser-playwright':
specifier: workspace:*
version: link:../../../../packages/browser-playwright
vitest:
specifier: workspace:*
version: link:../../../../packages/vitest
test/e2e/dts/config:
devDependencies:
vitest:
specifier: workspace:*
version: link:../../../../packages/vitest
test/e2e/dts/exact-optional-property-no-node:
devDependencies:
'@vitest/runner':
specifier: workspace:*
version: link:../../../../packages/runner
vitest:
specifier: workspace:*
version: link:../../../../packages/vitest
test/e2e/dts/exact-optional-property-node:
devDependencies:
'@vitest/runner':
specifier: workspace:*
version: link:../../../../packages/runner
vitest:
specifier: workspace:*
version: link:../../../../packages/vitest
test/e2e/dts/fixture-extend:
devDependencies:
vitest:
specifier: workspace:*
version: link:../../../../packages/vitest
test/e2e/dts/no-dispose:
devDependencies:
'@vitest/runner':
specifier: workspace:*
version: link:../../../../packages/runner
vitest:
specifier: workspace:*
version: link:../../../../packages/vitest
test/node-runner: {}
test/snapshots:
@@ -1681,6 +1570,117 @@ importers:
specifier: workspace:*
version: link:../../packages/vitest
test/unit:
devDependencies:
'@babel/core':
specifier: 'catalog:'
version: 7.29.0
'@babel/plugin-proposal-decorators':
specifier: 'catalog:'
version: 7.29.0(@babel/[email protected])
'@rolldown/plugin-babel':
specifier: 'catalog:'
version: 0.2.1(@babel/[email protected])(@babel/[email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))
'@standard-schema/spec':
specifier: ^1.1.0
version: 1.1.0
'@test/dep-esm-non-existing':
specifier: link:./deps/dep-esm-non-existing
version: link:deps/dep-esm-non-existing
'@test/vite-environment-external':
specifier: link:./projects/vite-environment-external
version: link:projects/vite-environment-external
'@test/vite-external':
specifier: link:./projects/vite-external
version: link:projects/vite-external
'@vitest/expect':
specifier: workspace:*
version: link:../../packages/expect
'@vitest/mocker':
specifier: workspace:*
version: link:../../packages/mocker
'@vitest/pretty-format':
specifier: workspace:*
version: link:../../packages/pretty-format
'@vitest/runner':
specifier: workspace:*
version: link:../../packages/runner
'@vitest/test-dep-cjs':
specifier: file:./deps/dep-cjs
version: file:test/unit/deps/dep-cjs
'@vitest/test-dep-nested-cjs':
specifier: file:./deps/dep-nested-cjs
version: file:test/unit/deps/dep-nested-cjs
'@vitest/test-dep1':
specifier: file:./deps/dep1
version: file:test/unit/deps/dep1
'@vitest/test-dep2':
specifier: file:./deps/dep2
version: file:test/unit/deps/dep2
'@vitest/test-fn':
specifier: file:./deps/dep-fn
version: file:test/unit/deps/dep-fn
'@vitest/utils':
specifier: workspace:*
version: link:../../packages/utils
'@vitest/web-worker':
specifier: workspace:^
version: link:../../packages/web-worker
'@vueuse/integrations':
specifier: ^14.2.1
version: 14.2.1([email protected])([email protected])([email protected])([email protected]([email protected]))
axios:
specifier: ^1.13.4
version: 1.13.4
immutable:
specifier: 5.1.5
version: 5.1.5
loupe:
specifier: 'catalog:'
version: 3.2.1
memfs:
specifier: ^4.56.11
version: 4.56.11([email protected])
obug:
specifier: ^2.1.1
version: 2.1.1
react:
specifier: ^19.2.4
version: 19.2.4
react-18:
specifier: npm:[email protected]
version: [email protected]
sinon:
specifier: 'catalog:'
version: 21.0.3
sinon-chai:
specifier: 'catalog:'
version: 4.0.1([email protected])([email protected])
temporal-polyfill:
specifier: ~0.3.0
version: 0.3.0
tinyrainbow:
specifier: 'catalog:'
version: 3.1.0
tinyspy:
specifier: ^4.0.4
version: 4.0.4
url:
specifier: ^0.11.4
version: 0.11.4
vitest:
specifier: workspace:*
version: link:../../packages/vitest
vitest-environment-custom:
specifier: file:./vitest-environment-custom
version: file:test/unit/vitest-environment-custom
vitest-package-exports:
specifier: ^1.2.0
version: 1.2.0
vue:
specifier: 'catalog:'
version: 3.5.29([email protected])
test/workspaces:
devDependencies:
'@jridgewell/remapping':
@@ -5187,8 +5187,8 @@ packages:
peerDependencies:
vue: ^2.7.0 || ^3.0.0
'@test/test-dep-error@file:test/cli/deps/error':
resolution: {directory: test/cli/deps/error, type: directory}
'@test/test-dep-error@file:test/e2e/deps/error':
resolution: {directory: test/e2e/deps/error, type: directory}
'@testing-library/[email protected]':
resolution: {integrity: sha512-o4PXJQidqJl82ckFaXUeoAW+XysPLauYI43Abki5hABd853iMhitooc6znOnczgbTYmEP6U6/y1ZyKAIsvMKGg==}
@@ -5585,11 +5585,11 @@ packages:
vitest:
optional: true
'@vitest/test-dep-cjs@file:test/core/deps/dep-cjs':
resolution: {directory: test/core/deps/dep-cjs, type: directory}
'@vitest/test-dep-cjs@file:test/unit/deps/dep-cjs':
resolution: {directory: test/unit/deps/dep-cjs, type: directory}
'@vitest/test-dep-nested-cjs@file:test/core/deps/dep-nested-cjs':
resolution: {directory: test/core/deps/dep-nested-cjs, type: directory}
'@vitest/test-dep-nested-cjs@file:test/unit/deps/dep-nested-cjs':
resolution: {directory: test/unit/deps/dep-nested-cjs, type: directory}
'@vitest/test-dep-optimizer-external@file:test/config/deps/optimizer/external':
resolution: {directory: test/config/deps/optimizer/external, type: directory}
@@ -5597,14 +5597,14 @@ packages:
'@vitest/test-dep-optimizer-optimized@file:test/config/deps/optimizer/optimized':
resolution: {directory: test/config/deps/optimizer/optimized, type: directory}
'@vitest/test-dep1@file:test/core/deps/dep1':
resolution: {directory: test/core/deps/dep1, type: directory}
'@vitest/test-dep1@file:test/unit/deps/dep1':
resolution: {directory: test/unit/deps/dep1, type: directory}
'@vitest/test-dep2@file:test/core/deps/dep2':
resolution: {directory: test/core/deps/dep2, type: directory}
'@vitest/test-dep2@file:test/unit/deps/dep2':
resolution: {directory: test/unit/deps/dep2, type: directory}
'@vitest/test-fn@file:test/core/deps/dep-fn':
resolution: {directory: test/core/deps/dep-fn, type: directory}
'@vitest/test-fn@file:test/unit/deps/dep-fn':
resolution: {directory: test/unit/deps/dep-fn, type: directory}
'@voidzero-dev/[email protected]':
resolution: {integrity: sha512-JsNrJDxbrpEb8KvoiRiSwI8XIDuqRpC5puLMoh4TO1EmANpy2BWLtHzL24PiS3Mi2yYA9jgj2LFJ5L7/3uk5gQ==}
@@ -9848,8 +9848,8 @@ packages:
test-dep-error@file:test/browser/deps/test-dep-error:
resolution: {directory: test/browser/deps/test-dep-error, type: directory}
test-dep-simple@file:test/cli/deps/dep-simple:
resolution: {directory: test/cli/deps/dep-simple, type: directory}
test-dep-simple@file:test/e2e/deps/dep-simple:
resolution: {directory: test/e2e/deps/dep-simple, type: directory}
[email protected]:
resolution: {integrity: sha512-8zll7REEv4GDD3x4/0pW+ppIxSNs7H1J10IKFZsuOMscumCdM2a+toDGLPA3T+1+fLBql4zbt5z83GEQGGV5VA==}
@@ -10363,8 +10363,8 @@ packages:
vitest: workspace:*
vue: ^3.0.0
vitest-environment-custom@file:test/core/vitest-environment-custom:
resolution: {directory: test/core/vitest-environment-custom, type: directory}
vitest-environment-custom@file:test/unit/vitest-environment-custom:
resolution: {directory: test/unit/vitest-environment-custom, type: directory}
[email protected]:
resolution: {integrity: sha512-eSpazGhRMgGfUdaWgMeLM3v4l5P/1wFDA6gTe43Q+wT/r1jn/k8Ft9tsVleMU+gjzLXlwaPHSpt1/5+JMsnPWw==}
@@ -13620,7 +13620,7 @@ snapshots:
'@tanstack/virtual-core': 3.13.13
vue: 3.5.29([email protected])
'@test/test-dep-error@file:test/cli/deps/error': {}
'@test/test-dep-error@file:test/e2e/deps/error': {}
'@testing-library/[email protected]':
dependencies:
@@ -13913,7 +13913,7 @@ snapshots:
'@typescript-eslint/visitor-keys': 8.56.1
debug: 4.4.3
minimatch: 10.2.3
semver: 7.7.3
semver: 7.7.4
tinyglobby: 0.2.15
ts-api-utils: 2.4.0([email protected])
typescript: 5.9.3
@@ -14134,21 +14134,21 @@ snapshots:
transitivePeerDependencies:
- supports-color
'@vitest/test-dep-cjs@file:test/core/deps/dep-cjs': {}
'@vitest/test-dep-cjs@file:test/unit/deps/dep-cjs': {}
'@vitest/test-dep-nested-cjs@file:test/core/deps/dep-nested-cjs': {}
'@vitest/test-dep-nested-cjs@file:test/unit/deps/dep-nested-cjs': {}
'@vitest/test-dep-optimizer-external@file:test/config/deps/optimizer/external': {}
'@vitest/test-dep-optimizer-optimized@file:test/config/deps/optimizer/optimized': {}
'@vitest/test-dep1@file:test/core/deps/dep1': {}
'@vitest/test-dep1@file:test/unit/deps/dep1': {}
'@vitest/test-dep2@file:test/core/deps/dep2':
'@vitest/test-dep2@file:test/unit/deps/dep2':
dependencies:
'@vitest/test-dep1': file:test/core/deps/dep1
'@vitest/test-dep1': file:test/unit/deps/dep1
'@vitest/test-fn@file:test/core/deps/dep-fn': {}
'@vitest/test-fn@file:test/unit/deps/dep-fn': {}
'@voidzero-dev/[email protected]([email protected])([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]([email protected]))':
dependencies:
@@ -15618,7 +15618,7 @@ snapshots:
[email protected]([email protected]([email protected])):
dependencies:
eslint: 10.0.3([email protected])
semver: 7.7.3
semver: 7.7.4
[email protected]([email protected]([email protected])):
dependencies:
@@ -16913,7 +16913,7 @@ snapshots:
dependencies:
acorn: 8.11.3(patch_hash=62f89b815dbd769c8a4d5b19b1f6852f28922ecb581d876c8a8377d05c2483c4)
eslint-visitor-keys: 5.0.0
semver: 7.7.3
semver: 7.7.4
[email protected]: {}
@@ -19272,7 +19272,7 @@ snapshots:
test-dep-error@file:test/browser/deps/test-dep-error: {}
test-dep-simple@file:test/cli/deps/dep-simple: {}
test-dep-simple@file:test/e2e/deps/dep-simple: {}
[email protected]:
dependencies:
@@ -19816,7 +19816,7 @@ snapshots:
vitest: link:packages/vitest
vue: 3.5.29([email protected])
vitest-environment-custom@file:test/core/vitest-environment-custom: {}
vitest-environment-custom@file:test/unit/vitest-environment-custom: {}
[email protected]:
dependencies:
+1 -1
View File
@@ -24,7 +24,7 @@ packages:
- packages/*
- examples/*
- test/*
- test/cli/dts/*
- test/e2e/dts/*
- test/config/fixtures/conditions-pkg
overrides:
'@types/node': $@types/node
+1 -1
View File
@@ -13,7 +13,7 @@ Place your test here if you are testing a config option.
## cli
If you are testing a complex interaction, place your tests here.
Type-focused fixtures live under `test/cli/dts/`.
Type-focused fixtures live under `test/e2e/dts/`.
## browser
@@ -1,6 +0,0 @@
import { defineConfig } from "vitest/config";
// pnpm -C test/cli test -- --root fixtures/rollup-error --environment happy-dom
// pnpm -C test/cli test -- --root fixtures/rollup-error --environment node
export default defineConfig({})

Some files were not shown because too many files have changed in this diff Show More