Skip to content

Variable: solidTestDeps

const solidTestDeps: object

Defined in: index.ts:52

Solid under Vitest: test.server.deps that force solid-js INLINE.

Node's export conditions hand @solidjs/web a SERVER build of solid-js, so _$effect calls a DIFFERENT instance of createRenderEffect than a test's import { getObserver } from "solid-js" observes. The DOM is still written once (so most tests pass), but there is no observer during the compute and no reactivity on update. Probe: inside effect() from @solidjs/web, getObserver() is null, while inside createRenderEffect from solid-js it is the effect node.

vite-plugin-solid force-externalizes /solid-js/ unless the user config already lists a matching external — the never-matching regex (its SOURCE matches the plugin's /solid-js/ gate) exists purely to defeat that, so inline wins and SOLID_TEST_CONDITIONS resolves one shared dev build.

Type Declaration

external

external: RegExp[]

inline

inline: RegExp[]