This package contains examples of nova components as well as related good testing approaches for them.
When configuring a host application, this package can be used as a light-weight canary package to test the host's Nova integration.
- Configure your project to have Relay.
- Create a Relay environment.
- Instantiate the Nova Relay example provider:
import {
NovaExampleRelayGraphQLProvider,
NovaExampleRelayComponent,
} from "@nova/examples";
import { createRelayEnvironment } from "./myHostRelayEnvironment";
const environment = createRelayEnvironment();
const MyHostNovaIntegrationTest = () => {
return (
<NovaExampleRelayGraphQLProvider relayEnvironment={environment}>
<NovaExampleRelayComponent />
</NovaExampleRelayGraphQLProvider>
);
};
TODO
TODO
TODO