Skip to content

Commit fca9b9a

Browse files
authored
fix: Prevent mount .wrap command appearing in log (#16585)
1 parent a277e98 commit fca9b9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

npm/react/src/mount.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ const _mount = (type: 'mount' | 'rerender', jsx: React.ReactNode, options: Mount
116116

117117
return (
118118
// Separate alias and returned value. Alias returns the component only, and the thenable returns the additional functions
119-
cy.wrap<React.ReactNode>(userComponent)
119+
cy.wrap<React.ReactNode>(userComponent, { log: false })
120120
.as(displayName)
121121
.then(() => {
122122
return cy.wrap<MountReturn>({

0 commit comments

Comments
 (0)