sbatson5 / firestore-jest-mock

Jest Helper library for mocking Cloud Firestore
https://www.npmjs.com/package/firestore-jest-mock
177 stars 57 forks source link

Migrate to exports #167

Closed sbatson5 closed 7 months ago

sbatson5 commented 1 year ago

Description

This PR attempts to support both import and require syntax, following this blog post as a guide. This also updates a lot of dependencies that have gone out of date and should prepare use for migrating to firebase 9 and Typescript (although that will be a breaking/major change/release).

This also drops support for Node 10, 11 and 12, and adds support for 16, 17 and 18

Related issues

Fixes https://github.com/Upstatement/firestore-jest-mock/issues/144

How to test

Can someone point their repo to this branch and make sure it is backwards compatible with require and then works with import syntax?

TODOs