Skip to content

Commit

Permalink
test: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Nov 15, 2024
1 parent 1563bf5 commit 8dcae90
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 8 deletions.
50 changes: 42 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions test/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
"debug": "^4.3.4",
"immutable": "5.0.0-beta.5",
"memfs": "^4.8.2",
"react": "^18.3.1",
"react-19": "npm:[email protected]",
"sweetalert2": "^11.6.16",
"tinyrainbow": "^1.2.0",
"tinyspy": "^1.0.2",
Expand Down
12 changes: 12 additions & 0 deletions test/core/test/snapshot-react-19.test.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// @jsxRuntime automatic
// @jsxImportSource react-19

import { expect, test } from 'vitest'

test('react 19', () => {
expect(<div>hello</div>).toMatchInlineSnapshot(`
<div>
hello
</div>
`)
})
12 changes: 12 additions & 0 deletions test/core/test/snapshot-react.test.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// @jsxRuntime automatic
// @jsxImportSource react

import { expect, test } from 'vitest'

test('react 18', () => {
expect(<div>hello</div>).toMatchInlineSnapshot(`
<div>
hello
</div>
`)
})

0 comments on commit 8dcae90

Please sign in to comment.