garris / garris/BackstopJS

Accept onBeforeScript & onReadyScript as function

Open
#1,030 3 comments 3 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.2k
Forks
621
PR merge metrics
No merged PRs in 30d

Description

This project is very cool!
I'm using the composition of the scenarios in a javascript file and it would be really nice if the `onBeforeScript` and `onReadyScript` in the scenario could accept a function directly other than a filename.

@garris Is that something you could accept as a PR?

Contributor guide

Open the contributing guide

Research direction

Start by tracing how scenario fields are processed, especially the existing onBeforeScript and onReadyScript filename paths when scenarios are composed in a JavaScript file. Confirm how script files are loaded and where scenario validation occurs; the work is done when both fields accept functions directly while existing filename behavior remains supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.