Skip to content

Commit

Permalink
add StacktraceOptions to exports
Browse files Browse the repository at this point in the history
  • Loading branch information
bcaudan committed Mar 22, 2020
1 parent 54656cf commit ffa8ab4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion examples/typescript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Use jasmine-spec-reporter with TypeScript
## Configuration

```typescript
import {DisplayProcessor, SpecReporter} from "jasmine-spec-reporter";
import {DisplayProcessor, SpecReporter, StacktraceOption} from "jasmine-spec-reporter";
import SuiteInfo = jasmine.SuiteInfo;

class CustomProcessor extends DisplayProcessor {
Expand All @@ -15,6 +15,9 @@ class CustomProcessor extends DisplayProcessor {

jasmine.getEnv().clearReporters();
jasmine.getEnv().addReporter(new SpecReporter({
spec: {
displayStacktrace: StacktraceOption.NONE
},
customProcessors: [CustomProcessor],
}));
```
Expand Down
5 changes: 4 additions & 1 deletion examples/typescript/spec/helpers/reporter.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {DisplayProcessor, SpecReporter} from "jasmine-spec-reporter";
import {DisplayProcessor, SpecReporter, StacktraceOption} from "jasmine-spec-reporter";
import SuiteInfo = jasmine.SuiteInfo;

class CustomProcessor extends DisplayProcessor {
Expand All @@ -9,5 +9,8 @@ class CustomProcessor extends DisplayProcessor {

jasmine.getEnv().clearReporters();
jasmine.getEnv().addReporter(new SpecReporter({
spec: {
displayStacktrace: StacktraceOption.NONE
},
customProcessors: [CustomProcessor],
}));
1 change: 1 addition & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export {SpecReporter} from "./spec-reporter";
export {DisplayProcessor} from "./display-processor";
export {StacktraceOption} from "./configuration";

0 comments on commit ffa8ab4

Please sign in to comment.