DefinitelyTyped/types/artillery/artillery-tests.ts
kmccoan-allocadia ba1ed4e100 Added new package @types/artillery (#20779)
* Artillery types for beforeRequest & afterResponse hooks

* Remove unnecessary linting rule in Artillery project

* Update Artillery tests to define variables to ensure proper compilation usage

* Fix compilation errors in test & move typescript decl to line 5
2017-10-23 09:45:25 -07:00

14 lines
298 B
TypeScript

import { ScenarioContext, Next } from 'artillery';
const scenarioContext: ScenarioContext = {vars: {}};
scenarioContext.vars = {};
scenarioContext.vars.testing = "value";
scenarioContext.vars.testing2 = 1;
const next: Next = (error?: Error) => {
// do nothing.
};
next();
next(new Error());