mirror of
https://github.com/hanzoai/ui.git
synced 2026-11-21 00:18:41 +00:00
20 lines
588 B
TypeScript
20 lines
588 B
TypeScript
import { defineConfig } from 'vitest/config'
|
|
|
|
import { alias } from '../ui/scripts/alias.mjs'
|
|
|
|
/**
|
|
* Node: the components render to a string under the real GuiProvider, and the
|
|
* string is what a static export ships. Same resolution @hanzo/ui's suites use,
|
|
* so @hanzo/gui is one module instance here too.
|
|
*/
|
|
export default defineConfig({
|
|
css: { postcss: { plugins: [] } },
|
|
resolve: { alias },
|
|
test: {
|
|
environment: 'node',
|
|
testTimeout: 60_000,
|
|
include: ['src/**/*.test.tsx'],
|
|
server: { deps: { inline: [/@hanzogui\//, /@hanzo\/gui/, /react-native/] } },
|
|
},
|
|
})
|