Skip to content

Commit 5548df4

Browse files
committed
Setup testing for meta-schemas
1 parent 7d11441 commit 5548df4

12 files changed

Lines changed: 1649 additions & 48 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
- run: npm ci
1616
- run: npm run lint
1717
- run: npm run build -- specs
18+
- run: npm run test
1819

1920
specs-ietf:
2021
runs-on: ubuntu-latest

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ ietf/json-schema-media-types.xml
77

88
# For the node-based build tools
99
node_modules/
10+
11+
# Testing
12+
coverage/

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,12 @@ Descriptions of the xml2rfc, I-D documents, and RFC processes:
127127
Conformance tests for JSON Schema and its vocabularies may be found
128128
[in their own repository](https://github.com/json-schema-org/JSON-Schema-Test-Suite).
129129

130+
Tests for the meta-schema are included here. Run `npm test` to run the
131+
meta-schema tests. To get a test coverage report, you can use `npm run
132+
test:coverage`. In addition to the CLI report, a detailed HTML report will be
133+
generated in the `coverage` directory and can be viewed using something like
134+
`npx http-server coverage`.
135+
130136
## The website
131137

132138
The JSON Schema web site is at <http://json-schema.org/>

eslint.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ export default [
3535

3636
// Imports
3737
"import/extensions": ["error", "ignorePackages"],
38-
"import/newline-after-import": ["error", { count: 2, exactCount: false, considerComments: true }],
3938

4039
// Stylistic
4140
"@stylistic/yield-star-spacing": ["error", "after"],

0 commit comments

Comments
 (0)