static-cms/cypress/plugins/testBackend.js

15 lines
264 B
JavaScript
Raw Normal View History

2020-04-14 11:18:48 +03:00
const { updateConfig } = require('../utils/config');
const { merge } = require('lodash');
async function setupTestBackend(options) {
await updateConfig(current => {
merge(current, options);
});
return null;
}
module.exports = {
setupTestBackend,
};