ghost-portal/jest/substrateTestsGlobal.ts
Krzysztof Jelski 8b50b1b28c
A proof of concept for frontend test with substrate in docker (#3371)
* React tests PoC.

* Globally start and stop substrate for all tests.

* Fix compilation problem.

* Another attempt to make both compilation and tests work.

* Apply suggestions from code review

* Run slow tests with docker only nightly.

* Update yarn.lock.

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2020-08-19 11:27:52 +02:00

11 lines
398 B
TypeScript

// Copyright 2017-2020 @polkadot/app-accounts authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { StartedTestContainer } from 'testcontainers';
export interface SubstrateTestsGlobal extends NodeJS.Global {
__SUBSTRATE__: StartedTestContainer;
// You can declare anything you need.
}