prepareEnvironment
Overview
This parameter is a hook. The function specified for this parameter will be automatically called after reading the Testplane config. With its help, you can set environment variables or, for example, supplement some config parameters.
The context of the function is the Testplane config.
Usage Example
testplane.config.ts
import type { ConfigInput } from "testplane";
import { pick } from "lodash";
export default {
// ...
prepareEnvironment: function () {
this.sets = pick(this.sets, ["touch-phone"]);
},
};