import { render } from '@cedarjs/testing/web' import { Loading, Empty, Failure, Success } from './BlogPostsCell' import { standard } from './BlogPostsCell.mock' // Generated boilerplate tests do not account for all circumstances // and can fail without adjustments, e.g. Float and DateTime types. // Please refer to the RedwoodJS Testing Docs: // https://cedarjs.com/docs/testing#testing-cells // https://cedarjs.com/docs/testing#expect-type-considerations describe('BlogPostsCell', () => { it('renders Loading successfully', () => { expect(() => { render() }).not.toThrow() }) it('renders Empty successfully', async () => { expect(() => { render() }).not.toThrow() }) it('renders Failure successfully', async () => { expect(() => { render() }).not.toThrow() }) // When you're ready to test the actual output of your component render // you could test that, for example, certain text is present: // // 1. import { screen } from '@cedarjs/testing/web' // 2. Add test: expect(screen.getByText('Hello, world')).toBeInTheDocument() it('renders Success successfully', async () => { expect(() => { render() }).not.toThrow() }) })