How to use the node-environment-flags.forEach function in node-environment-flags

To help you get started, we’ve selected a few node-environment-flags examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mochajs / mocha / test / node-unit / cli / node-flags.spec.js View on Github external
describe('for all allowed node environment flags', function() {
      // NOTE: this is not stubbing nodeEnvFlags in any way, so relies on
      // the userland polyfill to be correct.
      nodeEnvFlags.forEach(envFlag => {
        it(`${envFlag} should return true`, function() {
          expect(isNodeFlag(envFlag), 'to be true');
        });
      });
    });

node-environment-flags

> Polyfill/shim for `process.allowedNodeEnvironmentFlags`

Apache-2.0
Latest version published 5 years ago

Package Health Score

65 / 100
Full package analysis

Popular node-environment-flags functions

Similar packages