afterAll
Available from testplane v8.33.0
Overview
This parameter is a hook. The function specified for this parameter will be automatically called after tests are completed.
The context of the function is the Testplane config. Function receives config in arguments.
Usage Example
Here is an example of using this hook to remove a file with a page state.
testplane.config.ts
import * as fs from "fs";
export default {
// ...
afterAll: async () => {
await fs.unlink("./dump.json");
},
};