BlinkUX/sequelize-mock

Import does not support ES6 style module export

LoveAndCoding opened this issue · 2 comments

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

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

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?