XrmDefinitelyTyped icon indicating copy to clipboard operation
XrmDefinitelyTyped copied to clipboard

Make xrmquery javascript exportable in nodejs

Open skfd opened this issue 6 years ago • 0 comments

Is your feature request related to a problem? Please describe. I want to use xrmquery code in node tests, but there is no way to extract namespaces from it without patching it.

Describe the solution you'd like I patched it with this code, but there might be a more sophisticated way:

if (module && module.exports) {
    module.exports.XrmQuery = XrmQuery;
    module.exports.XQW = XQW;
    module.exports.Filter = Filter;
}

Describe alternatives you've considered Alternative is to patch it or pass through bundler, which takes a toll on how fast the tests are executed.

skfd avatar Oct 08 '19 21:10 skfd