release: WRNexusJS 0.8.0
This commit is contained in:
@@ -53,3 +53,20 @@ test("legacy, compatible, and explicit import modes are enforced from app config
|
||||
console.warn = originalWarn;
|
||||
}
|
||||
});
|
||||
|
||||
test("compiler-native reactive elements do not require application imports", () => {
|
||||
const { root, page } = fixture();
|
||||
writeFileSync(
|
||||
page,
|
||||
`page Home {
|
||||
state active = "Admin"
|
||||
view {
|
||||
<Transition name="fade"><Component is={active}><div data-component-case="Admin">Admin</div></Component></Transition>
|
||||
<Portal to="body"><p>Notice</p></Portal>
|
||||
<Async source="profile"><Loading>Loading</Loading><Success data="profile">Ready</Success><Error error="error">Failed</Error></Async>
|
||||
}
|
||||
}`,
|
||||
);
|
||||
setCompileImportOptions(root, { mode: "explicit" });
|
||||
expect(() => compileWireArtifacts(page, 5)).not.toThrow();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user