-
-
Notifications
You must be signed in to change notification settings - Fork 858
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[minor] Add failing test for #819 #820
[minor] Add failing test for #819 #820
Conversation
Thanks for PR the test. Would you mind adding the other test case in your report as well, as I'd expect this PR to fail without fix :) |
Sure! Can you clarify which one you're referring to? I included this in my report but it's just a more specific variation of the original test: it("maintains order when adding", () => {
const objs = [
{
id: "a"
},
"b"
]
const set = new Set([objs[0]])
const newSet = produce(set, draft => {
draft.add(objs[1])
})
// does not pass
expect(Array.from(newSet)).toEqual([objs[0], objs[1]])
}) This branch should already be failing with |
@chrissantamaria yeah it'd be great to add that one as well. I had expected this branch to fail, but it seems the CI didn't run at all in the first place, which confusingly is represented as all green it seems. |
haha yeah I noticed that, looks like Travis stopped checking commits a few weeks ago Would you prefer all of these to be in |
Preferably map-set, base is a bit overcrowded :-P. Well, I guess we have to migrate to GH actions finally. |
Done - wasn't quite sure how to differentiate those tests in the naming so feel free to edit Happy to take a look at GH Actions integration if you want :) might be worth filing an issue regardless |
Looking good!
If you'd be interested in taking a stab at it that would be brilliant :). Otherwise I'll try to find some time next week |
faf9464
to
38fa33c
Compare
✔️ Deploy Preview for quizzical-lovelace-dcbd6a canceled. 🔨 Explore the source changes: 38fa33c 🔍 Inspect the deploy log: https://app.netlify.com/sites/quizzical-lovelace-dcbd6a/deploys/60e33c911d29f00007f13f5a |
Retest this PR after merging #976 |
🎉 This PR is included in version 9.0.19 🎉 The release is available on: Your semantic-release bot 📦🚀 |
See #819