@puppedo/core
Version:
PuppeDo is a runner for tests E2E in YAML style. With power of Playwright or Puppeteer.
35 lines (28 loc) • 1 kB
text/typescript
import { ArgumentsType, PluginDocumentation } from '../../global.d';
import { Plugin, PluginFunction, PluginModule } from '../../PluginsCore';
export type PluginArgsRedefine = { argsRedefine: Partial<ArgumentsType> };
const name = 'argsRedefine';
const plugin: PluginFunction<PluginArgsRedefine> = () => {
const pluginInstance = new Plugin({
name,
defaultValues: { argsRedefine: {} },
});
return pluginInstance;
};
const documentation: PluginDocumentation = {
description: {
ru: ['Переопределение агрументов ENV для конкретного кейса.', 'Все аргументы описаны в ArgumentsType'],
en: ['TODO'],
},
examples: [
{
test: 'src/Plugins/argsRedefine/argsRedefine.yaml',
result: 'src.tests.e2e/snapshots/argsRedefine.log',
},
],
name,
type: 'plugin',
propogation: false,
};
const order = 100;
export default { name, documentation, plugin, order } as PluginModule<PluginArgsRedefine>;