All files / stories/FileFormats/ExternalTest index.cy.tsx

100% Statements 6/6
100% Branches 0/0
100% Functions 2/2
100% Lines 6/6

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          2x 2x   2x 2x 2x 2x            
import { composeStories } from "@storybook/react";
import React from "react";
import * as stories from "./index.stories";
 
// this is necessary b/c stories here have mdx generated docs
delete (stories.default as { includeStories?: string[] }).includeStories;
const { ExternalTest } = composeStories(stories);
 
describe("External test file", () => {
  it("should contain the external label", () => {
    cy.mount(<ExternalTest />);
    cy.dataCy("button").should(
      "contain",
      "Will be tested in external .cy file"
    );
  });
});