Skip to content

arlac77/ava-openapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm License Typed with TypeScript bundlejs downloads GitHub Issues Build Status Styled with prettier Commitizen friendly Known Vulnerabilities Coverage Status

ava-openapi

ava openapi testing support

import test from "ava";
import { loadOpenAPI, openapiPathTest } from "ava-openapi";

test.before(async t => {
  await loadOpenAPI(
    t,
    "https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/api.github.com/api.github.com.2022-11-28.json"
  );
});

test(openapiPathTest, "/", {});

install

With npm do:

npm install ava-openapi

license

BSD-2-Clause