@@ -62,14 +62,14 @@ By default, it will track coverage for any file with a `*.schema.json`,
62
62
` vitest-schema.config.js `
63
63
``` TypeScript
64
64
import { defineConfig } from " vitest/config" ;
65
- import type { JsonSchemaCoverageProviderOptions } from " @hyperjump/json-schema-coverage/vitest- coverage-provider" ;
65
+ import type { JsonSchemaCoverageProviderOptions } from " @hyperjump/json-schema-coverage/vitest/ coverage-provider" ;
66
66
67
67
export default defineConfig ({
68
68
test: {
69
69
include: [" schema-tests/" ],
70
70
coverage: {
71
71
provider: " custom" ,
72
- customProviderModule: " @hyperjump/json-schema-coverage/vitest- coverage-provider" ,
72
+ customProviderModule: " @hyperjump/json-schema-coverage/vitest/ coverage-provider" ,
73
73
include: [" schemas/**/*.json" ] // Optional
74
74
} as JsonSchemaCoverageProviderOptions
75
75
}
@@ -107,7 +107,7 @@ for the validation to work.
107
107
108
108
``` JavaScript
109
109
import { describe , expect , test } from " vitest" ;
110
- import { registerSchema , unregisterSchema } from " @hyperjump/json-schema-coverage/vitest-matchers " ;
110
+ import { registerSchema , unregisterSchema } from " @hyperjump/json-schema-coverage/vitest" ;
111
111
112
112
describe (" Worksheet" , () => {
113
113
beforeEach (async () => {
@@ -155,7 +155,7 @@ describe("Worksheet", () => {
155
155
These are the functions available when working with the vitest integration.
156
156
157
157
``` JavaScript
158
- import { ... } from " @hyperjump/json-schema-coverage/vitest-matchers "
158
+ import { ... } from " @hyperjump/json-schema-coverage/vitest"
159
159
```
160
160
161
161
- ** matchJsonSchema** : (uriOrSchema: string | SchemaObject | boolean) => Promise\< void>
0 commit comments