File tree Expand file tree Collapse file tree 3 files changed +1
-12
lines changed
Expand file tree Collapse file tree 3 files changed +1
-12
lines changed File renamed without changes.
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import { RunResult, TestReporter } from '../../../reporters/index.js';
1919import { resultFormat } from '../../../utils.js' ;
2020
2121Messages . importMessagesDirectoryFromMetaUrl ( import . meta. url ) ;
22- const messages = Messages . loadMessages ( '@salesforce/plugin-apex' , 'report ' ) ;
22+ const messages = Messages . loadMessages ( '@salesforce/plugin-apex' , 'gettest ' ) ;
2323export default class Test extends SfCommand < RunResult > {
2424 public static readonly summary = messages . getMessage ( 'summary' ) ;
2525 public static readonly description = messages . getMessage ( 'description' ) ;
@@ -65,11 +65,6 @@ export default class Test extends SfCommand<RunResult> {
6565 public async run ( ) : Promise < RunResult > {
6666 const { flags } = await this . parse ( Test ) ;
6767
68- // add listener for errors
69- process . on ( 'uncaughtException' , ( err ) => {
70- throw messages . createError ( 'apexLibErr' , [ err . message ] ) ;
71- } ) ;
72-
7368 const conn = flags [ 'target-org' ] . getConnection ( flags [ 'api-version' ] ) ;
7469
7570 const testService = new TestService ( conn ) ;
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ import {
1717} from '@salesforce/sf-plugins-core' ;
1818import { Messages , SfError } from '@salesforce/core' ;
1919import { Duration } from '@salesforce/kit' ;
20-
2120import { RunResult , TestReporter } from '../../../reporters/index.js' ;
2221import { resultFormat } from '../../../utils.js' ;
2322
@@ -122,11 +121,6 @@ export default class Test extends SfCommand<RunCommandResult> {
122121 flags [ 'test-level' ] as TestLevel
123122 ) ;
124123
125- // add listener for errors
126- process . on ( 'uncaughtException' , ( err ) => {
127- throw messages . createError ( 'apexLibErr' , [ err . message ] ) ;
128- } ) ;
129-
130124 // graceful shutdown
131125 const exitHandler = async ( ) : Promise < void > => {
132126 await this . cancellationTokenSource . asyncCancel ( ) ;
You can’t perform that action at this time.
0 commit comments