Skip to content

Commit

Permalink
chore: remove rootstory from component template
Browse files Browse the repository at this point in the history
  • Loading branch information
elevatebart committed Sep 5, 2023
1 parent 2d988f0 commit 13b7f77
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 25 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ to: components/<%= h.inflection.camelize(name, false) %>/react/<%= h.inflection.

import * as React from 'react'
import { mount } from 'cypress/react18'
import <%= h.inflection.camelize(name, false) %>Story from './<%= h.inflection.camelize(name, false) %>.rootstory'
import <%= h.inflection.camelize(name, false) %> from './<%= h.inflection.camelize(name, false) %>'
import assertions from '../assertions'

describe('<%= h.inflection.camelize(name, false) %>', () => {
function mountStory(options: Parameters<typeof <%= h.inflection.camelize(name, false) %>Story>[0] = {}) {
mount(<<%= h.inflection.camelize(name, false) %>Story {...options} />)
function mountStory(
options: Parameters<typeof <%= h.inflection.camelize(name, false) %>>[0] = { id: '1' },
) {
mount(<<%= h.inflection.camelize(name, false) %> {...options} />)
}
assertions(mountStory)
})

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ to: components/<%= h.inflection.camelize(name, false) %>/vue/<%= h.inflection.ca
/// <reference types="cypress" />
import { mount } from 'cypress/vue'
import assertions from '../assertions'
import <%= h.inflection.camelize(name, false) %>Story from './<%= h.inflection.camelize(name, false) %>.rootstory'
import <%= h.inflection.camelize(name, false) %> from './<%= h.inflection.camelize(name, false) %>.vue'

describe('<<%= h.inflection.camelize(name, false) %>/>', () => {
function mountStory(options: Parameters<typeof <%= h.inflection.camelize(name, false) %>Story>[0] = {}) {
mount(() => <<%= h.inflection.camelize(name, false) %>Story {...options} />)
function mountStory(
options: Parameters<typeof <%= h.inflection.camelize(name, false) %>>[0] = { id: '1' },
) {
mount(() => <<%= h.inflection.camelize(name, false) %> {...options} />)
}
assertions(mountStory)
})

0 comments on commit 13b7f77

Please sign in to comment.