BlinkUX / sequelize-mock

A simple mock interface specifically for testing code relying on Sequelize models
https://sequelize-mock.readthedocs.io
MIT License
139 stars 73 forks source link

Import does not support ES6 style module export #36

Open LoveAndCoding opened 6 years ago

LoveAndCoding commented 6 years ago

Import supports when a module is exported with the Node module.exports syntax but not the export default ES6 syntax. Sequelize supports both methods under the hood by checking for the type of the export on require. We should be doing the same thing.

First reported in issue #35

TigerC10 commented 6 years ago

@ktsashes I've submitted PR #61 (with test cases) to handle this. Would appreciate a review/merge when you can.

nckswt commented 4 years ago

So #61 was merged, but not part of the release. Right now, my package.json includes this library like:

  "devDependencies": {
    "sequelize-mock": "git://github.com/BlinkUX/sequelize-mock.git#2cc4dbddf8b36f0ba6ff149cac3f33a84494c4ba",
}

Which isn't ideal. Could someone cut a new release?