@@ -2,7 +2,7 @@ import { readdirSync, readFileSync } from "node:fs";
22import YAML from "yaml" ;
33import { validate , setMetaSchemaOutputFormat } from "@hyperjump/json-schema/openapi-3-1" ;
44import { BASIC } from "@hyperjump/json-schema/experimental" ;
5- import { expect } from "chai " ;
5+ import { describe , test , expect } from "vitest " ;
66
77
88const parseYamlFromFile = ( filePath ) => {
@@ -20,7 +20,7 @@ describe("v3.1", () => {
2020 readdirSync ( `./tests/v3.1/pass` , { withFileTypes : true } )
2121 . filter ( ( entry ) => entry . isFile ( ) && / \. y a m l $ / . test ( entry . name ) )
2222 . forEach ( ( entry ) => {
23- it ( entry . name , ( ) => {
23+ test ( entry . name , ( ) => {
2424 const instance = parseYamlFromFile ( `./tests/v3.1/pass/${ entry . name } ` ) ;
2525 const output = validateOpenApi ( instance , BASIC ) ;
2626 expect ( output . valid ) . to . equal ( true ) ;
@@ -32,7 +32,7 @@ describe("v3.1", () => {
3232 readdirSync ( `./tests/v3.1/fail` , { withFileTypes : true } )
3333 . filter ( ( entry ) => entry . isFile ( ) && / \. y a m l $ / . test ( entry . name ) )
3434 . forEach ( ( entry ) => {
35- it ( entry . name , ( ) => {
35+ test ( entry . name , ( ) => {
3636 const instance = parseYamlFromFile ( `./tests/v3.1/fail/${ entry . name } ` ) ;
3737 const output = validateOpenApi ( instance , BASIC ) ;
3838 expect ( output . valid ) . to . equal ( false ) ;
0 commit comments