Chapter 6 - Building a Component the Redwood Way - Testing

This commit is contained in:
2022-04-26 00:01:11 -04:00
parent 5d9a23422b
commit e180c93ada
4 changed files with 71 additions and 9 deletions

View File

@@ -0,0 +1,14 @@
import { render } from '@redwoodjs/testing/web'
import Comment from './Comment'
// Improve this test with help from the Redwood Testing Doc:
// https://redwoodjs.com/docs/testing#testing-components
describe('Comment', () => {
it('renders successfully', () => {
expect(() => {
render(<Comment />)
}).not.toThrow()
})
})