17 lines
481 B
TypeScript
17 lines
481 B
TypeScript
import { screen } from '@testing-library/react'
|
|
import { useMantineEnv } from '@mantine/core'
|
|
import { describe, expect, it } from 'vitest'
|
|
import { renderWithProviders } from './test-utils'
|
|
|
|
function MantineEnvironmentProbe() {
|
|
return <output>{useMantineEnv()}</output>
|
|
}
|
|
|
|
describe('renderWithProviders', () => {
|
|
it('uses Mantine test environment', () => {
|
|
renderWithProviders(<MantineEnvironmentProbe />)
|
|
|
|
expect(screen.getByText('test')).toBeInTheDocument()
|
|
})
|
|
})
|