Skip to content

Provide test cases for --list - #1874

Open
casr wants to merge 6 commits into
browserify:masterfrom
casr:bin_list
Open

Provide test cases for --list#1874
casr wants to merge 6 commits into
browserify:masterfrom
casr:bin_list

Conversation

@casr

@casr casr commented Oct 26, 2018

Copy link
Copy Markdown

Before attempting to fix this I thought I would provide a test for the current behaviour and one for the failing behaviour from #1873

It would be good to understand if this is the right approach to testing this sort of thing.

Before merging it might be nice to fix the feature but if this takes longer than expected then one test can go in and the other be skipped until someone has the time to fix it

@goto-bus-stop

Copy link
Copy Markdown
Member

Super, thanks 👍 the test looks good to me from just eyeballing it, not sure off the top of my head if the order is guaranteed. I think the solution to this problem will involve setting the row.file property correctly for --require/b.require() modules either here or in module-deps.

@casr

casr commented Oct 28, 2018

Copy link
Copy Markdown
Author

Thank you for having a look and a good note about ordering. I guess I could sort before comparing in the test unless the ordering is guaranteed elsewhere. I will add a note if I find that to be the case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants