Conversation
✅ Deploy Preview for fakerjs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Shinigami92
left a comment
There was a problem hiding this comment.
I know the PR is still in draft but I would like to provide some early-feedback
- I think the
refDateshould still be named something likedefaultorfallbackorbase, so the intent is more clear and there might be no variable naming conflict when using an option's refDate + the ...RefDate - I suggest to not do something like
super({ fakerCore: fakerCore ?? { locale, randomizer, config: {} } })but only pass the locale and randomizer so the config get's set like every other method call to a default internally. Or is there something special about that I currently overlook? 👀
|
|
Does anybody know why this test is failing with that particular error message?
It seems to happen only with vitest/CJS. |
If I set Or it is related to |
|
The error is caused by this part: _class.prototype.__init23.call(this);,this.definitions=_chunkWAQHUEHTcjs.d.call(void 0, this.rawDefinitions)
^Which is equivalent to this source code: Lines 195 to 197 in e4da2f5 |
|
I created an issue in tsup with a minimal reproduction: And it has reeeaaally specific conditions, check the issue for more details. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## next #2838 +/- ##
=======================================
Coverage 98.89% 98.89%
=======================================
Files 893 894 +1
Lines 3082 3087 +5
Branches 546 548 +2
=======================================
+ Hits 3048 3053 +5
Misses 30 30
Partials 4 4
🚀 New features to boost your workflow:
|
matthewmayer
left a comment
There was a problem hiding this comment.
see my comment at #2667 (comment) - would it make sense to delay merging this?
Only discussions regarding names, behaviour, API and PR contents. |
54add10
First part of the standalone module function feature #2667
Overview
Description
Create the fakerCore container object.