Remove incorrect section of docs

This commit is contained in:
Fabio Berger
2019-01-17 15:37:43 +01:00
parent 737941e8c7
commit 3b79754b7a

View File

@@ -53,10 +53,4 @@ const traceSubprovider = new TraceSubprovider(artifactsAdapter, defaultFromAddre
provider.addProvider(traceSubprovider);
```
After your test suite is complete (e.g in the Mocha global `after` hook), you'll need to call:
```typescript
await traceSubprovider.writeTraceAsync();
```
This will create a `trace.json` file in a `trace` directory. This file has an [Istanbul format](https://github.com/gotwarlost/istanbul/blob/master/trace.json.md) - so you can use it with any of the existing Istanbul reporters.
Now when you run your tests, it should print out stack traces when encountering an error.