diff --git a/test/jest/playwrightEnvironment.js b/test/jest/playwrightEnvironment.js index b89d753e18..de71ce92b3 100644 --- a/test/jest/playwrightEnvironment.js +++ b/test/jest/playwrightEnvironment.js @@ -151,7 +151,7 @@ class PlaywrightEnvironment extends NodeEnvironment { snapshotState.matched++; else snapshotState.unmatched++; - return {pass, message}; + return {pass, message: () => message}; }; this.global.expect.extend({ toBeGolden }); }