pub fn generate_e2e(
config: &ResolvedCrateConfig,
e2e_config: &E2eConfig,
languages: Option<&[String]>,
type_defs: &[TypeDef],
enums: &[EnumDef],
) -> Result<Vec<GeneratedFile>>Expand description
Generate e2e test projects from fixtures.
Returns the list of generated files. The caller is responsible for writing them to disk.
type_defs is the IR type registry for the source crate. Pass
&api.types from the extracted alef_core::ir::ApiSurface. It is
forwarded to generators that need to introspect struct field types (e.g.
the TypeScript/WASM backend uses it to auto-derive nested_types for
wasm-bindgen class wrapping). Pass an empty slice when the registry is not
available; generators will fall back to explicit call-override mappings.
enums is the IR enum registry for the source crate. Pass &api.enums
from the extracted alef_core::ir::ApiSurface. For WASM, it is used
to identify tagged-data enums so they are emitted as plain JS object literals
instead of wrapper factories. Pass an empty slice when not available.