mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* 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
14 lines
298 B
TypeScript
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());
|