mistersomebody
mistersomebody
Ok, I see. It works indeed if I place mock packages of builtins in _node_modules_ and pass them with `--js`. Thank you.
@ctjlewis Here's an adaptation of what I ended up doing: ## Sample `./index.js` ```javascript const util = require('util') console.log('It works:', util.isArray([])) ``` ## Mock `./node_modules/util/index.js` ```javascript module.exports = util ```...
@ctjlewis: with TSCC, you will only need to add the mock from the other workaround. Adding externs are not necessary once you've added `path` as external in your spec.