diff --git a/packages/orchestration/test/examples/bad.flows.js b/packages/orchestration/test/examples/bad.flows.js new file mode 100644 index 000000000000..6422dda5d306 --- /dev/null +++ b/packages/orchestration/test/examples/bad.flows.js @@ -0,0 +1,18 @@ +// TODO detect: +// - exports that don't satisfy orchestration flow type +// - exports that aren't hardened +// - any uses of E() + +import { E } from '@endo/far'; + +export function notFlow() { + console.log('This function is not a flow'); +} + +export async function notHardened() { + console.log('This function is the most minimal flow, but it’s not hardened'); +} + +export async function usesE(orch, { someEref }) { + await E(someEref).foo(); +}