Skip to content

Commit 3695de1

Browse files
committed
fix: vitest
1 parent 7f85a07 commit 3695de1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

sandbox/codegen/__tests__/frameworks/qwik.styled-factory.test.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/** @jsxImportSource @builder.io/qwik */
2+
import React from 'react'
23
import { createDOM } from '@builder.io/qwik/testing'
34
import { describe, expect, test } from 'vitest'
45
import { Box, Stack, styled } from '../../styled-system-qwik/jsx'
@@ -382,8 +383,6 @@ describe('styled factory - button recipe', async () => {
382383
)
383384

384385
const container = screen.querySelector('div')!
385-
expect(container.outerHTML).toMatchInlineSnapshot(
386-
`"<div class="c_blue.300 bg-c_green.300">array css prop</div>"`,
387-
)
386+
expect(container.outerHTML).toMatchInlineSnapshot(`"<div class="c_blue.300 bg-c_green.300">array css prop</div>"`)
388387
})
389388
})

sandbox/codegen/preset.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ const buttonWithCompoundVariantsRecipe = defineRecipe({
110110
})
111111

112112
export default definePreset({
113+
name: 'codegen',
113114
// Useful for theme customization
114115
theme: {
115116
extend: {

sandbox/codegen/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"resolveJsonModule": true,
1313
"isolatedModules": true,
1414
"noEmit": true,
15-
"jsx": "react-jsx",
15+
"jsx": "preserve",
1616

1717
/* Linting */
1818
"strict": true,

0 commit comments

Comments
 (0)