MCPcopy
hub / github.com/mongodb/node-mongodb-native / gatherTestSuites

Function gatherTestSuites

test/tools/spec-runner/index.js:119–133  ·  view source on GitHub ↗
(specPath, context)

Source from the content-addressed store, hash-verified

117}
118
119function gatherTestSuites(specPath, context) {
120 return fs
121 .readdirSync(specPath)
122 .filter(x => x.indexOf('.json') !== -1)
123 .map(x =>
124 Object.assign(
125 EJSON.parse(fs.readFileSync(path.join(specPath, x)), {
126 relaxed: context ? !context.requiresCSFLE : true
127 }),
128 {
129 name: path.basename(x, '.json')
130 }
131 )
132 );
133}
134
135/**
136 * Transforms the legacy specification into the unified format specification

Calls 3

mapMethod · 0.45
filterMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected