File tree 4 files changed +8
-3
lines changed
4 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -260,8 +260,8 @@ declare namespace matchers {
260
260
* @see
261
261
* [testing-library/jest-dom#tohaveclass](https://github.com/testing-library/jest-dom#tohaveclass)
262
262
*/
263
- toHaveClass ( ...classNames : Array < string | RegExp > ) : R
264
263
toHaveClass ( classNames : string , options ?: { exact : boolean } ) : R
264
+ toHaveClass ( ...classNames : Array < string | RegExp > ) : R
265
265
/**
266
266
* @description
267
267
* 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 2
2
// we cannot bundle it because vitest depend on the @vitest /browser and vise versa
3
3
// fortunately, the file is quite small
4
4
5
- import { LocatorSelectors } from '@vitest/browser/context'
5
+ import { LocatorSelectors , Locator } from '@vitest/browser/context'
6
6
import { StringifyOptions } from 'vitest/utils'
7
7
8
8
export type PrettyDOMOptions = Omit < StringifyOptions , 'maxLength' >
Original file line number Diff line number Diff line change 123
123
},
124
124
"peerDependencies" : {
125
125
"@edge-runtime/vm" : " *" ,
126
+ "@types/debug" : " ^4.1.12" ,
126
127
"@types/node" : " ^18.0.0 || ^20.0.0 || >=22.0.0" ,
127
128
"@vitest/browser" : " workspace:*" ,
128
129
"@vitest/ui" : " workspace:*" ,
133
134
"@edge-runtime/vm" : {
134
135
"optional" : true
135
136
},
137
+ "@types/debug" : {
138
+ "optional" : true
139
+ },
136
140
"@types/node" : {
137
141
"optional" : true
138
142
},
Original file line number Diff line number Diff line change
1
+ import type { Debugger } from 'debug'
1
2
import createDebug from 'debug'
2
3
3
- export function createDebugger ( namespace : `vitest:${string } `) {
4
+ export function createDebugger ( namespace : `vitest:${string } `) : Debugger | undefined {
4
5
const debug = createDebug ( namespace )
5
6
if ( debug . enabled ) {
6
7
return debug
You can’t perform that action at this time.
0 commit comments