UNPKG

relicxsdk

Version:

Relicx SDK provides natural language apis that can assert application behavior, perform tasks by generating code, extract data from the application state and fake data. It comes with a cypress plugin to make it convenient to use the Relicx API in cypress

19 lines (16 loc) 375 B
const fs = require('fs'); const relicxTasks = (on) => { on('task', { deleteFile(filePath) { return new Promise((resolve, reject) => { fs.unlink(filePath, (err) => { if (err) { return reject(err); } resolve(null); }); }); }, }); }; module.exports = { relicxTasks };