Skip to content

Commit a453637

Browse files
committed
chore: move test into example test
1 parent b407e9d commit a453637

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

test/watch/fixtures/example.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ import { expect, test } from 'vitest'
22

33
import { getHelloWorld } from './example'
44

5+
// @ts-expect-error not typed txt
6+
import answer from './42.txt?raw'
7+
8+
test('answer is 42', () => {
9+
expect(answer).toContain('42')
10+
})
11+
512
test('getHello', async () => {
613
expect(getHelloWorld()).toBe('Hello world')
714
})

test/watch/fixtures/txt-import.test.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)