path.spit used with platform specific separator#2
Conversation
|
@jordwalke it is possible using path.sep property http://nodejs.org/api/path.html#path_path_sep and yeah i have signed the CLA. |
|
@jordwalke all unit test now pass, can you check them out. |
|
I have a fix for the docblock parsing in https://github.com/facebook/react/pull/230/files which we should probably take here - it should have a little bit better coverage. I need to also get that into jstransform (we have the docblock file duplicated so we should try to keep them consistent as much as possible) |
|
+1 for docblock parsing. |
There was a problem hiding this comment.
When called without any haste roots by IndexConfiguration method from ConfigurationTrie.js the dirname returned will conflict with var parts = config_path.split(path.sep); , the first test of ProjectConfiguration-test.js will not pass.
|
We tried patching this into |
|
In all other files are parsed without any errors except for the react-page src files. Also could you add platform-specific regex in JSMockLoader.js and JSTestLoader.js |
|
Yeah - the ids are important. I saw the same thing (ids not being extracted). I suspect the issue could be in Feel free to create a separate issue for the mock stuff. As soon as we nail this main issue, we can tackle the mock loader next. |
|
yeah do you know what might me the problem here.? |
|
I believe it should be getting called from BTW: |
|
I think this is mostly fixed up, so I'm going to close out. Let me know if there are in fact places that still need to be fixed. |
added minor changes to run successful test in windows. There are still some files left out with unsuccessful test . Sent a PR to start conversation on the tests.