@revoloo/cypress6
Version:
Cypress.io end to end testing tool
24 lines (20 loc) • 541 B
text/typescript
import { observable } from 'mobx'
import { HookProps } from '../hooks/hook-model'
export interface RunnableProps {
id: string
title?: string
hooks: Array<HookProps>
}
export default class Runnable {
id: string
shouldRender: boolean = false
title?: string
level: number
hooks: Array<HookProps> = []
constructor (props: RunnableProps, level: number) {
this.id = props.id
this.title = props.title
this.level = level
this.hooks = props.hooks
}
}