Skip to content

Commit 8dcae90

Browse files
committed
test: add test
1 parent 1563bf5 commit 8dcae90

File tree

4 files changed

+68
-8
lines changed

4 files changed

+68
-8
lines changed

pnpm-lock.yaml

Lines changed: 42 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/core/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
"debug": "^4.3.4",
2727
"immutable": "5.0.0-beta.5",
2828
"memfs": "^4.8.2",
29+
"react": "^18.3.1",
30+
"react-19": "npm:[email protected]",
2931
"sweetalert2": "^11.6.16",
3032
"tinyrainbow": "^1.2.0",
3133
"tinyspy": "^1.0.2",
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// @jsxRuntime automatic
2+
// @jsxImportSource react-19
3+
4+
import { expect, test } from 'vitest'
5+
6+
test('react 19', () => {
7+
expect(<div>hello</div>).toMatchInlineSnapshot(`
8+
<div>
9+
hello
10+
</div>
11+
`)
12+
})
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// @jsxRuntime automatic
2+
// @jsxImportSource react
3+
4+
import { expect, test } from 'vitest'
5+
6+
test('react 18', () => {
7+
expect(<div>hello</div>).toMatchInlineSnapshot(`
8+
<div>
9+
hello
10+
</div>
11+
`)
12+
})

0 commit comments

Comments
 (0)