MCPcopy
hub / github.com/mozilla/source-map / readJSON

Function readJSON

test/test-spec-tests.js:14–19  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

12const sourceMapSpecTests = require("./source-map-tests/source-map-spec-tests.json");
13
14async function readJSON(path) {
15 const file = await fs.open(require.resolve(path));
16 const json = JSON.parse(await file.readFile());
17 file.close();
18 return json;
19}
20
21// Known failures due to intentional implementation choices or due to bugs.
22const skippedTests = [

Callers 2

test-spec-tests.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…