-
-
Notifications
You must be signed in to change notification settings - Fork 923
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
refactor(fake): move to helpers
#1161
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1161 +/- ##
=======================================
Coverage 99.62% 99.62%
=======================================
Files 2152 2152
Lines 236234 236291 +57
Branches 973 976 +3
=======================================
+ Hits 235344 235411 +67
+ Misses 869 859 -10
Partials 21 21
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also just add a deprecation JSDoc Tag to the module + its constructor
Did you also update references in docs and readme?
Nah, I didn't check for that. Good catch. I really have to stop ONLY using the |
This is not possible since this would log a warning on Faker instance creation, which violates one of our test suites. I mean I can still add a JSDoc with a |
Good catch, that's true |
We had 4 individual approvals and this is non blocking. I think we can merge this. |
The tests seem to fail. |
That's odd, but I'll have a look. |
2a23847
It was a missing test with the new test factory. @ST-DDT can you have a look if I've done this the right way? |
Co-authored-by: Eric Cheng <[email protected]>
d862fee
to
5f0a70f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The implementation is approved, but I think this PR needs a rebase as it is older than the test overhaul, is it?
It has been updated since. |
This PR moves the
fake()
method from theFake
module into theHelpers
module. The reason is, that there is no reason for it being a standalone module when it is clearly a utility method.This was also discussed in #805 (direct link).