Skip to content

Commit 1e57e9e

Browse files
committed
Use the configured error parser
When running the node tests, we need NodeErrorParser, not DefaultErrorParser
1 parent c609e4c commit 1e57e9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/default/DuplicateCheckerPlugin-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ describe('DuplicateCheckerPlugin', () => {
1515
});
1616

1717
function run(exception: Error) {
18-
let errorParser = new DefaultErrorParser();
18+
let errorParser = client.config.errorParser;
1919
let context = new EventPluginContext(client, { type: 'error', data: {} });
2020
context.event.data['@error'] = errorParser.parse(context, exception);
2121

0 commit comments

Comments
 (0)