-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Brandon Tilley
committed
Jan 30, 2015
1 parent
5d881bd
commit 8eea48c
Showing
1 changed file
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8eea48c
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.
@BinaryMuse you should bump the minor version for such a change (changing from lodash 2.x to 3.x). esp because it's breaking things.
8eea48c
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.
@svnlto What is breaking? Lo-Dash is only used internally and is not exposed to the user; Fluxxor's public API did not change at all.
8eea48c
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.
we have a simple component test using
jest
and that break using1.5.2
:8eea48c
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.
8eea48c
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.
Hey, it seems to happen if a dependency of a component requires Fluxxor.
Check this demo project: https://github.com/xMartin/fluxxor-issue
8eea48c
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.
Wow, that's really quite unfortunate. Thanks for the repro case, it helped a ton.
It looks like it's choking on
object/keys
down inlang/isNative
, which is used by a bunch of the other functions (not justobject/clone
). I'm not sure why. Adding<rootDir>/node_modules/fluxxor
tounmockedModulePathPatterns
fixes the issue in the demo project, as does addingjest.dontMock("fluxxor")
to the test. Not sure if that will affect your other tests or not, but might be a starting point.I'm not really familiar with the Jest internals and don't really understand why this is an issue, but I'll continue to look into it. Let me know if the workaround above works for you, and I'll continue to look into a more permanent fix.
8eea48c
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.
Let's move this to #101