File tree Expand file tree Collapse file tree 4 files changed +8
-3
lines changed Expand file tree Collapse file tree 4 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -260,8 +260,8 @@ declare namespace matchers {
260260 * @see
261261 * [testing-library/jest-dom#tohaveclass](https://github.com/testing-library/jest-dom#tohaveclass)
262262 */
263- toHaveClass ( ...classNames : Array < string | RegExp > ) : R
264263 toHaveClass ( classNames : string , options ?: { exact : boolean } ) : R
264+ toHaveClass ( ...classNames : Array < string | RegExp > ) : R
265265 /**
266266 * @description
267267 * This allows you to check whether the given form element has the specified displayed value (the one the
Original file line number Diff line number Diff line change 22// we cannot bundle it because vitest depend on the @vitest /browser and vise versa
33// fortunately, the file is quite small
44
5- import { LocatorSelectors } from '@vitest/browser/context'
5+ import { LocatorSelectors , Locator } from '@vitest/browser/context'
66import { StringifyOptions } from 'vitest/utils'
77
88export type PrettyDOMOptions = Omit < StringifyOptions , 'maxLength' >
Original file line number Diff line number Diff line change 123123 },
124124 "peerDependencies" : {
125125 "@edge-runtime/vm" : " *" ,
126+ "@types/debug" : " ^4.1.12" ,
126127 "@types/node" : " ^18.0.0 || ^20.0.0 || >=22.0.0" ,
127128 "@vitest/browser" : " workspace:*" ,
128129 "@vitest/ui" : " workspace:*" ,
133134 "@edge-runtime/vm" : {
134135 "optional" : true
135136 },
137+ "@types/debug" : {
138+ "optional" : true
139+ },
136140 "@types/node" : {
137141 "optional" : true
138142 },
Original file line number Diff line number Diff line change 1+ import type { Debugger } from 'debug'
12import createDebug from 'debug'
23
3- export function createDebugger ( namespace : `vitest:${string } `) {
4+ export function createDebugger ( namespace : `vitest:${string } `) : Debugger | undefined {
45 const debug = createDebug ( namespace )
56 if ( debug . enabled ) {
67 return debug
You can’t perform that action at this time.
0 commit comments