hwillson / meteor-stub-collections

Stub out Meteor collections with in-memory local collections.
MIT License
24 stars 17 forks source link

feature: add collection2 compatibility #38

Open jankapunkt opened 2 years ago

jankapunkt commented 2 years ago

This implements compatibility for collection2, as mentioned in #12

How it works:

It checks via duckt-yping, whether the original collection contains attachSchema and _c2 and subsequently iterates all attached schemas and attaches them to the new local collection.

Tests were added as well but I had to update some versions in order to make this work.

Also added a hint how to test this package.