Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: OAS3 integration tests and fixes SO-103 (stoplightio#253)
* chore: ignore lib directory * refactor: change name, oas2 * test: enlarge the oas2 base file * refactor: add json schema types for better typings * fix: cast back to ajv so we can use it safely around * refactor: avoid dangling non const * chore: use node 10 * test: add bunch of tests * test: add to do when we'll fix this problem * test: use more precise paths * test: add basic and failing tests * feat: return and transform the default response if defined * test: change test meaning * chore: lint after the tests * fix: try to find first the default response and then modify it * fix: dot overwrite the original object * test: add request specific status code test * test: add test for unexistend status code * test: add no parameter provided test * fix: find a suitable response when not found * test: update test to return default content-type * test: dry fixture document * refactor: correct texts * test: remove oas2 leftover test * test: put oas2/3 documents on pair * test: repeat tests for oas2 and 3 * chore: file rename * test: remove oas3 file test * test: add oas3 specific * test: remove xml content types * test: reorder and fixup * test: use native promise * test: remove redundant test * feat: do not create singleton grahite and loaders * chore: env in config file * chore: typecheck only on regular builds * refactor: export class definition, not factories * test: check loader type * chore: dry test configuration * test: oas specific * test: externalise oas specific tests * tests: check the body * test: check resources are the same when loading same file in two instances * test default response in oas2 too * v3.0.0-pre.2
- Loading branch information