Define a custom world creator and (optional) destroyer. These will be use to create and destroy each World instance. Both functions can either return a value, or promise that resolves to a value.
A function that creates and returns a custom World object
Optional
An optional function to clean up the World object after each test case
CustomWorld(async () => { return { myCustomProperty: 'value' }}, async (world) => { // cleanup resources}) Copy
CustomWorld(async () => { return { myCustomProperty: 'value' }}, async (world) => { // cleanup resources})
Define a custom world creator and (optional) destroyer. These will be use to create and destroy each World instance. Both functions can either return a value, or promise that resolves to a value.