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
Can't use Faker with k6 #2872
Comments
Thank you for your feature proposal. We marked it as "waiting for user interest" for now to gather some feedback from our community:
We would also like to hear about other community members' use cases for the feature to give us a better understanding of their potential implicit or explicit requirements. We will start the implementation based on:
We do this because:
|
Please provide us with a minimal reproduction example, so that we can have an in detail look at it and verify the solution ourselves. |
test issue.zip |
@pawfectQA Thanks for providing the zip. Which version of k6 are you using? EDIT:
|
Have you tried with the latest version of k6 as well? |
I use v0.49 of k6 |
I tried the latest version and it has the same issue. |
|
the zipped one may be lower version because it includes some extension 🧐 but I tried all the latest versions too |
Instead of importing from or adding a package.json with |
Does that help you/fix the issues you have? |
It says: WARN[0002] The source for Still investigating |
and the second method gave me "node_modules@faker-js\faker: Incorrect function." |
You might have to adjust the path to match your actual file system. |
Did you have any luck getting this to work? |
Clear and concise description of the problem
As a QA using faker I wish that I could use updated faker with k6 scripts. Now I get an error, that k6 doesn't support this module. I import it as
import { faker } from "@faker-js/faker";
, and when I run tests, I get this message: GoError: The moduleSpecifier "@faker-js/faker" couldn't be recognised as something k6 supports.at go.k6.io/k6/js.(*requireImpl).require-fm (native)
Suggested solution
Maybe this helps somehow k6 docs
Alternative
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: