Skip to content

Commit

Permalink
fix: remove MountReturn from scaffolded ct support file (#21119)
Browse files Browse the repository at this point in the history
* fix: remove MountReturn from scaffolded ct support file

* fix test
  • Loading branch information
ZachJW34 committed Apr 19, 2022
1 parent a2b5151 commit 17fe5d9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion packages/scaffold-config/src/supportFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ export function supportFileComponent (language: CodeLanguage['type'], framework:
if (language === 'ts') {
const registerMount = dedent`
import { mount } from '${framework.mountModule}'
import type { MountReturn } from '${framework.mountModule}'
// Augment the Cypress namespace to include type definitions for
// your custom command.
Expand Down
2 changes: 0 additions & 2 deletions packages/scaffold-config/test/unit/supportFile.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ describe('supportFileComponent', () => {
// require('./commands')
import { mount } from 'cypress/react'
import type { MountReturn } from 'cypress/react'
// Augment the Cypress namespace to include type definitions for
// your custom command.
Expand Down Expand Up @@ -149,7 +148,6 @@ describe('supportFileComponent', () => {
// require('./commands')
import { mount } from 'cypress/vue'
import type { MountReturn } from 'cypress/vue'
// Augment the Cypress namespace to include type definitions for
// your custom command.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import './commands'
// require('./commands')

import { mount } from 'cypress/react'
import type { MountReturn } from 'cypress/react'

// Augment the Cypress namespace to include type definitions for
// your custom command.
Expand Down

0 comments on commit 17fe5d9

Please sign in to comment.