Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | 113x 113x 113x 113x | import { setGlobalConfig } from "@storybook/testing-react"; import { mount } from "cypress/react"; import "@bahmutov/cypress-code-coverage/support"; import * as commands from "./commands"; import * as tasks from "./tasks"; import { Tasks, addCommands, addTasks } from "../../src/cypress"; import * as sbPreview from "../../.storybook/preview"; const commandsWithMount = { ...commands, mount }; setGlobalConfig(sbPreview); addCommands(commandsWithMount); addTasks(tasks); /* eslint-disable @typescript-eslint/no-namespace */ type Commands = typeof commandsWithMount & Tasks<typeof tasks>; declare global { namespace Cypress { interface Chainable extends Commands { mount(el: JSX.Element): null; } } } |