Files
zeekayandHanzo Dev 6390349a3a Let the docs app's tests resolve react-native to the web build
The grid test asserts the element's own style, which is what the rule
sets; the computed value is jsdom's initial one.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-05 02:24:03 -07:00

18 lines
466 B
TypeScript

import { defineConfig } from 'vitest/config'
export default defineConfig({
resolve: {
alias: {
'~': __dirname,
// The web build of every gui package names react-native and the bundler answers with the web one.
'react-native': 'react-native-web',
},
},
test: {
environment: 'jsdom',
include: ['**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
exclude: ['**/node_modules/**', '**/dist/**'],
root: __dirname,
},
})