Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions lib/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ import {
export function addVisualRegressionTrackerPlugin(on, config) {
const vrtConfig = config?.env?.visualRegressionTracker;
let vrt = new VisualRegressionTracker(vrtConfig);

on("before:run", async () => {
await vrt.start();
}
on("after:run", async () => {
await vrt.stop();
}

on("task", {
["VRT_START"]: async (props) => {
Expand Down