mirror of
https://github.com/vitest-dev/vitest.git
synced 2025-12-08 18:26:03 +00:00
15 lines
297 B
TypeScript
15 lines
297 B
TypeScript
import { expect, test } from 'vitest'
|
|
|
|
import { getHelloWorld } from './example'
|
|
|
|
// @ts-expect-error not typed txt
|
|
import answer from './42.txt?raw'
|
|
|
|
test('answer is 42', () => {
|
|
expect(answer).toContain('42')
|
|
})
|
|
|
|
test('getHello', async () => {
|
|
expect(getHelloWorld()).toBe('Hello world')
|
|
})
|