Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
7 changes: 1 addition & 6 deletions src/commands/apex/get/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { RunResult, TestReporter } from '../../../reporters/index.js';
import { resultFormat } from '../../../utils.js';

Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
const messages = Messages.loadMessages('@salesforce/plugin-apex', 'report');
const messages = Messages.loadMessages('@salesforce/plugin-apex', 'gettest');
export default class Test extends SfCommand<RunResult> {
public static readonly summary = messages.getMessage('summary');
public static readonly description = messages.getMessage('description');
Expand Down Expand Up @@ -65,11 +65,6 @@ export default class Test extends SfCommand<RunResult> {
public async run(): Promise<RunResult> {
const { flags } = await this.parse(Test);

// add listener for errors
process.on('uncaughtException', (err) => {
throw messages.createError('apexLibErr', [err.message]);
});

const conn = flags['target-org'].getConnection(flags['api-version']);

const testService = new TestService(conn);
Expand Down
6 changes: 0 additions & 6 deletions src/commands/apex/run/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import {
} from '@salesforce/sf-plugins-core';
import { Messages, SfError } from '@salesforce/core';
import { Duration } from '@salesforce/kit';

import { RunResult, TestReporter } from '../../../reporters/index.js';
import { resultFormat } from '../../../utils.js';

Expand Down Expand Up @@ -122,11 +121,6 @@ export default class Test extends SfCommand<RunCommandResult> {
flags['test-level'] as TestLevel
);

// add listener for errors
process.on('uncaughtException', (err) => {
throw messages.createError('apexLibErr', [err.message]);
});

// graceful shutdown
const exitHandler = async (): Promise<void> => {
await this.cancellationTokenSource.asyncCancel();
Expand Down