Reorganize test setup (#1132)

* Moved all e2e tests to 'api' folder

* Moved metadata test

* fix imports

* Add jest options for testing the different endpoint types separately

* Add check for empty test suites and return empt test to prevent jest from throwing an error

* Fix import paths

* Fix const tests for polkadot chains

* Update to latest Substrate 2.0 image

* Move contract files for e2e testing to e2e tesing folder

* reorder & fix promise query tests for all test nodes

* final fixes for promise query

* eslint fixes

* removed trailing space

* fix linting errors

* Address codeclimate "Function getWsEndpoints has a Cognitive Complexity of 7 (exceeds 5 allowed)."

* Fix contract ABI import paths

* linter endpoint types

* replace alice with alice_stash

* split off promise-queries file

* Remove apiType, smaller cleanups, added local to only: [] tests suites

* relative paths changed to `@polkadot` import

* moved contract wasm & abi's back to `api-contract`
This commit is contained in:
Stefanie Doll
2019-07-16 16:03:53 +02:00
committed by GitHub
parent 25e9805622
commit d57dca53f4
23 changed files with 533 additions and 469 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ services:
- "--ws-external"
substrate-2.0:
image: parity/substrate:2.0.0-f981856d4
image: parity/substrate:2.0.0-b65c315a1
ports:
- "9947:9944"
networks: