mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 04:40:39 -07:00
10 lines
319 B
TypeScript
10 lines
319 B
TypeScript
import { expect, test } from 'vitest'
|
|
import { render, screen } from '@testing-library/react'
|
|
import { App } from './AppWithHooks';
|
|
|
|
test('AppWithHooks rendered correctly', async () => {
|
|
render(<App/>)
|
|
const h2 = await screen.findByTestId('heading')
|
|
expect(h2.textContent).toEqual('Welcome to Liquid (hooks)')
|
|
})
|