Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using testcafe-blink-diff in the java script #69

Open
vgangwar8 opened this issue Aug 22, 2024 · 1 comment
Open

Using testcafe-blink-diff in the java script #69

vgangwar8 opened this issue Aug 22, 2024 · 1 comment

Comments

@vgangwar8
Copy link

vgangwar8 commented Aug 22, 2024

currently we use terminal command line to start the Image comparison.
$ npx testcafe-blink-diff tests/screenshots --compare base:actual --open --threshold 0.03

can we use above command in a java script code.?
Any elaborative sample example code will be really helpful.

@tomoh1r
Copy link
Contributor

tomoh1r commented Sep 26, 2024

Hi @vgangwar8 ,
What do you think about using child_process.spawn along with npx?
https://github.com/tacoss/testcafe-blink-diff/blob/master/e2e/lib.js#L35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants