@testplane/storybook
Version:
Testplane plugin that enables runtime screenshot storybook tests autogeneration
13 lines • 714 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.extractStoriesV3 = exports.storybookDataJsonPathV3 = exports.supportedStoryVersionV3 = void 0;
const constants_1 = require("../../../constants");
exports.supportedStoryVersionV3 = 3;
exports.storybookDataJsonPathV3 = constants_1.STORYBOOK_STORIES_JSON_PATH;
const extractStoriesV3 = (dataJson) => {
return Object.values(dataJson.stories)
.filter(story => { var _a; return !((_a = story.tags) === null || _a === void 0 ? void 0 : _a.includes("docs")); })
.map(story => (Object.assign(Object.assign({}, story), { type: "story" })));
};
exports.extractStoriesV3 = extractStoriesV3;
//# sourceMappingURL=v3.js.map