mest
v0.1.0
Published
A Contract Test Framework for TypeScript
Downloads
19
Readme
Mest
A Contract Test Framework for TypeScript
Usage
- install mest
npm install -g mest
- run API compare
mest -i data/url.csv
data example:
url,interface
https://phodal.github.io/mest-test/error.json,mock/IError.ts
https://phodal.github.io/mest-test/moreerror.json,mock/IMoreIError.ts
https://phodal.github.io/mest-test/user.json,mock/IUser.ts
results:
-> API https://phodal.github.io/mest-test/error.json .
same key: message,documentation_url
local diff key: id, remote diff:
-> API https://phodal.github.io/mest-test/moreerror.json .
difference errors type -> api: array, interface -> string
-> API https://phodal.github.io/mest-test/user.json .
same key: login,id,avatar_url,url,html_url,followers_url,following_url,gists_url,starred_url,subscriptions_url,organizations_url,repos_url,events_url,received_events_url,type,site_admin,name,company,blog,location,email,hireable,bio,public_repos,public_gists,followers,following,created_at,updated_at
local diff key: avatar_id, remote diff: gravatar_id
License: MIT
© 2018 A Phodal Huang's Idea. This code is distributed under the MIT license. See LICENSE
in this directory.