File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ export function nextTick(): Promise<void> {
102
102
103
103
export function warnDeprecated ( method : string , fallback : string = '' ) {
104
104
if ( ! config . showDeprecationWarnings ) return
105
- let msg = `${ method } is deprecated and will be removed in the next major version`
106
- if ( fallback ) msg += ` ${ fallback } `
105
+ let msg = `${ method } is deprecated and will be removed in the next major version. `
106
+ if ( fallback ) msg += ` ${ fallback } . `
107
107
warn ( msg )
108
108
}
Original file line number Diff line number Diff line change @@ -342,7 +342,8 @@ export default class Wrapper implements BaseWrapper {
342
342
isEmpty ( ) : boolean {
343
343
warnDeprecated (
344
344
'isEmpty' ,
345
- 'Consider a custom matcher such as those provided in jest-dom: https://github.com/testing-library/jest-dom#tobeempty'
345
+ 'Consider a custom matcher such as those provided in jest-dom: https://github.com/testing-library/jest-dom#tobeempty. ' +
346
+ 'When using with findComponent, access the DOM element with findComponent(Comp).element'
346
347
)
347
348
if ( ! this . vnode ) {
348
349
return this . element . innerHTML === ''
@@ -371,7 +372,8 @@ export default class Wrapper implements BaseWrapper {
371
372
isVisible ( ) : boolean {
372
373
warnDeprecated (
373
374
'isVisible' ,
374
- `Consider a custom matcher such as those provided in jest-dom: https://github.com/testing-library/jest-dom#tobevisible`
375
+ 'Consider a custom matcher such as those provided in jest-dom: https://github.com/testing-library/jest-dom#tobevisible. ' +
376
+ 'When using with findComponent, access the DOM element with findComponent(Comp).element'
375
377
)
376
378
let element = this . element
377
379
while ( element ) {
You can’t perform that action at this time.
0 commit comments