MCPcopy Index your code
hub / github.com/mongodb/node-mongodb-native / moduleExistsSync

Function moduleExistsSync

test/unit/assorted/optional_require.test.ts:14–16  ·  view source on GitHub ↗
(moduleName)

Source from the content-addressed store, hash-verified

12import { runtime } from '../../tools/utils';
13
14function moduleExistsSync(moduleName) {
15 return existsSync(resolve(__dirname, `../../../node_modules/${moduleName}`));
16}
17
18describe('optionalRequire', function () {
19 describe('Snappy', function () {

Callers 1

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected