react
react(
options?):object
Defined in: presets/react.ts:10
Vitest preset for React component libraries and apps. Uses jsdom for DOM simulation and assumes @testing-library/react.
Parameters
Section titled “Parameters”options?
Section titled “options?”{ }
Returns
Section titled “Returns”object
test:
object
test.environment
Section titled “test.environment”environment:
string="jsdom"
test.exclude
Section titled “test.exclude”exclude:
string[]
test.fsModuleCachePath
Section titled “test.fsModuleCachePath”fsModuleCachePath:
string=MODULE_CACHE_PATH
test.globals
Section titled “test.globals”globals:
boolean=true
test.include
Section titled “test.include”include:
string[]
test.outputFile
Section titled “test.outputFile”outputFile:
object
test.outputFile.junit
Section titled “test.outputFile.junit”junit:
string="./test-report.junit.xml"
test.reporters
Section titled “test.reporters”reporters:
string[]
test.setupFiles
Section titled “test.setupFiles”setupFiles:
string[]