@@ -2,7 +2,7 @@ import { readdirSync, readFileSync } from "node:fs";
2
2
import YAML from "yaml" ;
3
3
import { validate , setMetaSchemaOutputFormat } from "@hyperjump/json-schema/openapi-3-1" ;
4
4
import { BASIC } from "@hyperjump/json-schema/experimental" ;
5
- import { expect } from "chai " ;
5
+ import { describe , test , expect } from "vitest " ;
6
6
7
7
8
8
const parseYamlFromFile = ( filePath ) => {
@@ -20,7 +20,7 @@ describe("v3.1", () => {
20
20
readdirSync ( `./tests/v3.1/pass` , { withFileTypes : true } )
21
21
. filter ( ( entry ) => entry . isFile ( ) && / \. y a m l $ / . test ( entry . name ) )
22
22
. forEach ( ( entry ) => {
23
- it ( entry . name , ( ) => {
23
+ test ( entry . name , ( ) => {
24
24
const instance = parseYamlFromFile ( `./tests/v3.1/pass/${ entry . name } ` ) ;
25
25
const output = validateOpenApi ( instance , BASIC ) ;
26
26
expect ( output . valid ) . to . equal ( true ) ;
@@ -32,7 +32,7 @@ describe("v3.1", () => {
32
32
readdirSync ( `./tests/v3.1/fail` , { withFileTypes : true } )
33
33
. filter ( ( entry ) => entry . isFile ( ) && / \. y a m l $ / . test ( entry . name ) )
34
34
. forEach ( ( entry ) => {
35
- it ( entry . name , ( ) => {
35
+ test ( entry . name , ( ) => {
36
36
const instance = parseYamlFromFile ( `./tests/v3.1/fail/${ entry . name } ` ) ;
37
37
const output = validateOpenApi ( instance , BASIC ) ;
38
38
expect ( output . valid ) . to . equal ( false ) ;
0 commit comments