Running a function inside exports.config file #12004
Answered
by
christian-bromann
jurjandrei
asked this question in
Q&A
-
Hello, I have a function which parses suites.js file and retrieves the paths in an array to the spec files which are about to run. The mentioned function is exported at the end of the file and the imported in wdio.conf.js |
Beta Was this translation helpful? Give feedback.
Answered by
christian-bromann
Jan 15, 2024
Replies: 1 comment 2 replies
-
Please describe what you are trying to achieve and what error you are seeing? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You define
testResults
which is an async function and apply it tosuites
like this:which is incorrect because it doesn't evaluate functions. What you want to do is remove the
async
and define it as an object: