Skip to content

Commit

Permalink
fix(core): corrected file system location reporting for built-in Inte…
Browse files Browse the repository at this point in the history
…ractions

this improves the accuracy of Playwright Test reports
  • Loading branch information
jan-molak committed Oct 5, 2022
1 parent b056613 commit ce9acfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/screenplay/Activity.ts
Expand Up @@ -63,7 +63,7 @@ export abstract class Activity {
const userLandFrames = frames.filter(frame => ! (
frame?.fileName.startsWith('node:') || // node 16 and 18
frame?.fileName.startsWith('internal') || // node 14
frame?.fileName.includes('node_modules')
(/node_modules\/(?!@serenity\/)/.test(frame?.fileName)) // ignore node_modules, except for @serenity-js/*
));

const index = Math.min(Math.max(1, frameOffset), userLandFrames.length - 1);
Expand Down

0 comments on commit ce9acfc

Please sign in to comment.