@pumpkin-plugins/test-harness API / vitest / definePluginVitestConfig
Function: definePluginVitestConfig()
definePluginVitestConfig(
options?):UserConfig
Defined in: vitest.ts:16
Builds the standard vitest config for a plugin package; run vitest from the package directory. The unit project runs *.test.ts files under src/ without a server. The integration project runs *.itest.ts files under test/ against a real Pumpkin server started with startPumpkin. Like the build, the config defines __PLUGIN_VERSION__ from the package's package.json.
Parameters
options?
unitGlobalSetup lists Vitest global setup files for the unit project, relative to the package directory. They run once before the unit test workers start, so slow preparation such as fetching a pinned input does not count against any test's timeout.
unitGlobalSetup?
string[]
Returns
UserConfig