Skip to content

Commit 132b17f

Browse files
committed
chpre: use beta 4
1 parent f3b232d commit 132b17f

File tree

4 files changed

+65
-80
lines changed

4 files changed

+65
-80
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ test('counter button increments the count', async () => {
5151
})
5252
```
5353

54-
Unlike `@testing-library/vue`, `vitest-browser-vue` cleans up the component before the test starts instead of after, so you can see the rendered result in your UI.
54+
Unlike `@testing-library/vue`, `vitest-browser-vue` cleans up the component before the test starts instead of after, so you can see the rendered result in your UI. To avoid auto-cleanup, import the `render` function from `vitest-browser-vue/pure`.
5555

5656
## Special thanks
5757

package.json

+6-7
Original file line numberDiff line numberDiff line change
@@ -46,27 +46,26 @@
4646
"lint:fix": "pnpm lint --fix"
4747
},
4848
"peerDependencies": {
49-
"@vitest/browser": "^2.1.0-beta.3",
50-
"vitest": "^2.1.0-beta.3",
49+
"@vitest/browser": "^2.1.0-beta.4",
50+
"vitest": "^2.1.0-beta.4",
5151
"vue": "^3.0.0"
5252
},
5353
"dependencies": {
54-
"@vitest/pretty-format": "^2.1.0-beta.3",
55-
"@vue/test-utils": "^2.4.6",
56-
"vitest-browser-utils": "^0.0.1"
54+
"@vitest/pretty-format": "^2.1.0-beta.4",
55+
"@vue/test-utils": "^2.4.6"
5756
},
5857
"devDependencies": {
5958
"@antfu/eslint-config": "^2.24.1",
6059
"@vitejs/plugin-vue": "^5.1.2",
61-
"@vitest/browser": "^2.1.0-beta.3",
60+
"@vitest/browser": "^2.1.0-beta.4",
6261
"bumpp": "^9.4.2",
6362
"changelogithub": "^0.13.9",
6463
"eslint": "^9.8.0",
6564
"playwright": "^1.46.0",
6665
"tsup": "^8.2.4",
6766
"tsx": "^4.16.5",
6867
"typescript": "^5.5.4",
69-
"vitest": "^2.1.0-beta.3",
68+
"vitest": "^2.1.0-beta.4",
7069
"vue": "^3.4.35",
7170
"zx": "^8.1.4"
7271
}

pnpm-lock.yaml

+56-70
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/pure.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Locator, LocatorSelectors } from '@vitest/browser/context'
22
import { type ComponentMountingOptions, type VueWrapper, mount } from '@vue/test-utils'
33
import type { DefineComponent } from 'vue'
4-
import { type PrettyFormatOptions, debug, getElementLocatorSelectors } from 'vitest-browser-utils'
4+
import { type PrettyDOMOptions, debug, getElementLocatorSelectors } from '@vitest/browser/utils'
55

66
type ComponentProps<T> = T extends new (...angs: any) => {
77
$props: infer P
@@ -13,7 +13,7 @@ const mountedWrappers = new Set<VueWrapper>()
1313
export interface Screen<Props> extends LocatorSelectors {
1414
container: HTMLElement
1515
baseElement: HTMLElement
16-
debug(el?: HTMLElement | HTMLElement[] | Locator | Locator[], maxLength?: number, options?: PrettyFormatOptions): void
16+
debug(el?: HTMLElement | HTMLElement[] | Locator | Locator[], maxLength?: number, options?: PrettyDOMOptions): void
1717
unmount(): void
1818
emitted<T = unknown>(): Record<string, T[]>
1919
emitted<T = unknown[]>(eventName: string): undefined | T[]

0 commit comments

Comments
 (0)