Skip to content Skip to sidebar Skip to footer
Showing posts with the label Commonjs

Jest - Mock A Constant Property From A Module For A Specific Test

So, I'm attempting to do something which on the surface should be very simple... I have some co… Read more Jest - Mock A Constant Property From A Module For A Specific Test

What Is The Benefit Of A 'promise' Abstraction In Commonjs?

I'm reading this article and the section on the promise abstraction seems a little overly compl… Read more What Is The Benefit Of A 'promise' Abstraction In Commonjs?

How To Import Part Of Object In Es6 Modules

In the react documentation I found this way to import PureRenderMixin var PureRenderMixin = require… Read more How To Import Part Of Object In Es6 Modules

Java 7 + Rhino 1.7R3 Support For CommonJS Modules?

I need help getting CommonJS working on Java 7 and Rhino 1.7R3. Rhino 1.7R3 supports CommonJS modul… Read more Java 7 + Rhino 1.7R3 Support For CommonJS Modules?