(schema, testFile, _data, { spinner })
| 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 |
nothing calls this directly
no test coverage detected