//! > Test expansion of a component without body.

//! > test_runner_name
ExpandContractTestRunner(expect_diagnostics: true)

//! > cairo_code
#[starknet::component]
mod test_component;

//! > generated_cairo_code
lib.cairo:

#[starknet::component]
mod test_component;

//! > expected_diagnostics
error: Plugin diagnostic: Components without body are not supported.
 --> lib.cairo:1:1
#[starknet::component]
^********************^

error: Module file not found. Expected path: test_component.cairo
 --> lib.cairo:1:1
#[starknet::component]
^********************^
