A Contract Test Framework for TypeScript
- 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/moreerror.json .
-> API https://phodal.github.io/mest-test/error.json .
same key: <green>message</green>,<green>documentation_url</green>
local diff key: <red>id</red>,<red>key<red>, remote diff:
difference <red>message<red> type -> api: <red>string</red>, interface -> <red>number</red>
-> API https://phodal.github.io/mest-test/user.json .
© 2018 A Phodal Huang's Idea. This code is distributed under the MIT license. See LICENSE
in this directory.