Initialize

In order to gain access to the api of Fluse you have to initialize it.

When you initialize Fluse you also have the option to specifiy which plugins you'd like to use.

import { fluse } from "fluse";
import fakerPlugin from "fluse-plugin-faker";
export const { fixture, scenario } = fluse({
plugins: {
faker: fakerPlugin(),
},
});
tip

We suggest that you do this only once and export the resulting API.

After you've initialized Fluse it's time to build your first fixture.