UNPKG

@restqa/plugin-faker

Version:

RestQA Plugin enabling the generation of fake data to be used in test scenario

12 lines (8 loc) 359 B
const RestQAPlugin = require("@restqa/plugin"); const RestQAFaker = require("./faker-plugin"); const instance = new RestQAPlugin(RestQAFaker.name); RestQAFaker.steps.given .reduce((instance, step) => instance.addGivenStep(...step), instance) .addBeforeHook(RestQAFaker.hooks.before) .addAfterHook(RestQAFaker.hooks.after); module.exports = instance;