brian-lives-outdoors

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
Aug 24, 2018 06:05
You can do something like this:

const m = require('./some/nodejs/folder');
const ExportDefault = m.default, { namedExport } = m;
Aug 24, 2018 06:02
Is the module you're importing from an ES6 module?
Aug 24, 2018 05:51
no worries, I'll let it expire. It's not a big deal, just annoying to put effort into an answer and never hear anything back
Aug 24, 2018 05:50
lol, I guess there's always that risk :)
Aug 24, 2018 05:43
fair enough, it's just annoying when someone puts a bounty on a question and then just lets it expire
Aug 24, 2018 05:33
Aug 24, 2018 05:33
Can two people with experience unit testing do me a favor? I answered the OP's question and even created a pull request implementing the solution but never got a response and the bounty is about to expire. If it looks good will you upvote? If I can get two upvotes in the next hour at least I'll get half the bounty
Aug 16, 2018 15:03
@Maartenw thanks!
Aug 16, 2018 15:02
k, I'll wait until < 1 hour and ask again :)
Aug 16, 2018 14:59
Can somebody with Jest experience do me a favor? If my answer here looks good will you upvote it? The OP disappeared and the bounty on this question is going to expire. With another vote I'll at least get half of it for my efforts. Thx!