MCPcopy Create free account
hub / github.com/nodejs/node-addon-api / setEnvAndCall

Function setEnvAndCall

unit-test/injectTestParams.js:77–77  ·  view source on GitHub ↗
(fn, filterCondition)

Source from the content-addressed store, hash-verified

75 const assert = require('assert');
76
77 const setEnvAndCall = (fn, filterCondition) => { process.env.npm_config_filter = filterCondition; return fn(); };
78
79 assert.strictEqual(setEnvAndCall(exports.filesToCompile, 'typed*ex*'), './generated/binding.cc test_helper.h ../test/typed_threadsafe_function/typed_threadsafe_function_existing_tsfn.cc');
80

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected