Error: Cannot find module (similar to #6492) #14337
Unanswered
shanecarlobeticon
asked this question in
Plugins
Replies: 2 comments 2 replies
-
You need to have a single on'task' handler in the pluginsFile with each task being comma separated. let shouldSkip = false;
let percyHealthCheck = require('@percy/cypress/task')
module.exports = (on, config) => {
on('task', {
resetShouldSkipFlag() {
shouldSkip = false;
return null;
},
shouldSkip(value) {
if (value != null) shouldSkip = value;
return shouldSkip;
},
percyHealthCheck,
})
}; |
Beta Was this translation helpful? Give feedback.
2 replies
-
Hope to find an answer here as our team is now using Cypress. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How to make this two on(task) in one module?
The first one is,
And the other one is,
I actually tried this one
That is working on my test runner
but when I am trying to run it in my Browserstack account, I'm getting this error
The test will only work in my Browserstack account if I remove the on("task", percyHealthCheck) in my index.js plugin file.
Maybe the way I combined the two tasks in one module is not correct. Can you please help me with that? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions