mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
fix linting
This commit is contained in:
parent
1a33891a21
commit
054db690d0
@ -34,4 +34,4 @@
|
|||||||
// visit(originalFn: CommandOriginalFn, url: string, options: Partial<VisitOptions>): Chainable<Element>
|
// visit(originalFn: CommandOriginalFn, url: string, options: Partial<VisitOptions>): Chainable<Element>
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|||||||
@ -14,6 +14,7 @@
|
|||||||
// ***********************************************************
|
// ***********************************************************
|
||||||
|
|
||||||
// Import commands.js using ES2015 syntax:
|
// Import commands.js using ES2015 syntax:
|
||||||
|
// eslint-disable-next-line import/no-unassigned-import
|
||||||
import './commands'
|
import './commands'
|
||||||
|
|
||||||
import { mount } from 'cypress/react'
|
import { mount } from 'cypress/react'
|
||||||
@ -23,6 +24,7 @@ import { mount } from 'cypress/react'
|
|||||||
// Alternatively, can be defined in cypress/support/component.d.ts
|
// Alternatively, can be defined in cypress/support/component.d.ts
|
||||||
// with a <reference path="./component" /> at the top of your spec.
|
// with a <reference path="./component" /> at the top of your spec.
|
||||||
declare global {
|
declare global {
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-namespace
|
||||||
namespace Cypress {
|
namespace Cypress {
|
||||||
interface Chainable {
|
interface Chainable {
|
||||||
mount: typeof mount
|
mount: typeof mount
|
||||||
@ -33,4 +35,4 @@ declare global {
|
|||||||
Cypress.Commands.add('mount', mount)
|
Cypress.Commands.add('mount', mount)
|
||||||
|
|
||||||
// Example use:
|
// Example use:
|
||||||
// cy.mount(<MyComponent />)
|
// cy.mount(<MyComponent />)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user