0
0
mirror of https://github.com/honojs/hono.git synced 2024-11-22 11:17:33 +01:00
hono/.vitest.config/jsx-runtime-default.ts
Taku Amano ce5f4acd3d
feat(jsx/dom): provide jsx-runtime and jsx-dev-runtime via jsx/dom (#1986)
* feat(jsx/dom): rewrite renderer to use virtual tree

* test(deno): add runtime_tests/deno/deno.json in order to allow `document`, `Element`, etc.

* refactor(jsx/dom): Removed redundant `map()` calls

* refactor(jsx/dom): tweaks getNextChildren for reduce code size

* refactor(jsx/dom): optimize findInsertBefore

* refactor(jsx/dom): optimize `build()`

* refactor(jsx/dom): reuse oldChild even in text nodes.

* feat(jsx/dom): handle promise rejection in use()

* feat(jsx): The result of using Suspense and use() is now the same as React's renderToReadableStream().

* chore: denoify

* test(deno): "dom.iterable" is required for 'Headers.entries()'

* feat(jsx/dom): provide jsx-runtime and jsx-dev-runtime via jsx/dom

* refactor(jsx/dom): Enable to import dom specific Suspense and ErrorBoundary from hono/jsx/dom

* test(jsx/dom): remove unused test. await component is not supported.

* feat(jsx/dom): support old style jsx

JSXNode from old style jsx sometimes has no props.

* chore: denoify

* test(jsx/dom): Run tests for hono/jsx/jsx-runtime and hono/jsx/dom/jsx-runtime

* test(jsx/dom): tests for Suspense and ErrorBoundary both for common and dom

* feat(jsx/dom): support old style jsx

JSXNode from old style jsx sometimes has no props.

* chore: denoify

* chore(vitest): fix typo
2024-01-16 21:18:00 +09:00

10 lines
244 B
TypeScript

import config from '../vitest.config'
config.esbuild = {
jsx: 'automatic',
jsxImportSource: __dirname + '/../src/jsx',
}
if (config.test) {
config.test.include = ['**/src/jsx/dom/**/(*.)+(spec|test).+(ts|tsx|js)']
}
export default config