MCPcopy Index your code
hub / github.com/SchemaStore/schemastore / onNegativeTestFile

Function onNegativeTestFile

cli.js:722–734  ·  view source on GitHub ↗
(schema, testFile, _data, { spinner })

Source from the content-addressed store, hash-verified

720 }
721 },
722 async onNegativeTestFile(schema, testFile, _data, { spinner }) {
723 assertFileHasNoBom(testFile)
724 assertFileHasCorrectExtensions(testFile.path, [
725 '.json',
726 '.yaml',
727 '.yml',
728 '.toml',
729 ])
730 await assertTestFileHasSchemaPragma(schema, testFile, spinner)
731 if (testFile.path.endsWith('.json')) {
732 await assertFilePassesJsonLint(testFile)
733 }
734 },
735 })
736
737 // Run tests against JSON schemas

Callers

nothing calls this directly

Calls 5

assertFileHasNoBomFunction · 0.85
assertFilePassesJsonLintFunction · 0.85
printErrorAndExitFunction · 0.85

Tested by

no test coverage detected