Skip to content

Commit 6012017

Browse files
committed
revert: undo changes to tsconfig
1 parent 1d27b99 commit 6012017

File tree

4 files changed

+14
-22
lines changed

4 files changed

+14
-22
lines changed

test/commands/apex/get/test.test.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ describe('apex:test:report', () => {
115115

116116
it('should only display failed test with human format with concise flag', async () => {
117117
sandbox.stub(TestService.prototype, 'reportAsyncResults').resolves(runWithFailureAndSuccess);
118-
await new Test(['--test-run-id', '707xxxxxxxxxxxx', '--result-format', 'human', '--concise'], config).run();
118+
await Test.run(['--test-run-id', '707xxxxxxxxxxxx', '--result-format', 'human', '--concise']);
119119
expect(logStub.firstCall.args[0]).to.contain('Test Summary');
120120
expect(logStub.firstCall.args[0]).to.contain('Test Results');
121121
expect(logStub.firstCall.args[0]).to.contain('MyFailingTest');
@@ -188,10 +188,7 @@ describe('apex:test:report', () => {
188188

189189
it('should only display summary with human format and code coverage and concise parameters', async () => {
190190
sandbox.stub(TestService.prototype, 'reportAsyncResults').resolves(runWithCoverage);
191-
await new Test(
192-
['--test-run-id', '707xxxxxxxxxxxx', '--result-format', 'human', '--code-coverage', '--concise'],
193-
config
194-
).run();
191+
await Test.run(['--test-run-id', '707xxxxxxxxxxxx', '--result-format', 'human', '--code-coverage', '--concise']);
195192
expect(logStub.firstCall.args[0]).to.contain('Test Summary');
196193
expect(logStub.firstCall.args[0]).to.not.contain('Test Results');
197194
expect(logStub.firstCall.args[0]).to.not.contain('Apex Code Coverage by Class');

test/commands/apex/run/test.test.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,7 @@ describe('apex:test:run', () => {
116116

117117
it('should only display failed test with human format with concise flag', async () => {
118118
sandbox.stub(TestService.prototype, 'runTestSynchronous').resolves(runWithFailureAndSuccess);
119-
await new Test(
120-
['--tests', 'MyApexTests', '--result-format', 'human', '--synchronous', '--concise'],
121-
config
122-
).run();
119+
await Test.run(['--tests', 'MyApexTests', '--result-format', 'human', '--synchronous', '--concise']);
123120
expect(logStub.firstCall.args[0]).to.contain('Test Summary');
124121
expect(logStub.firstCall.args[0]).to.contain('Test Results');
125122
expect(logStub.firstCall.args[0]).to.contain('MyFailingTest');
@@ -476,10 +473,15 @@ describe('apex:test:run', () => {
476473

477474
it('should only display summary with human format and code coverage and concise parameters', async () => {
478475
sandbox.stub(TestService.prototype, 'runTestSynchronous').resolves(runWithCoverage);
479-
await new Test(
480-
['--tests', 'MyApexTests', '--result-format', 'human', '--synchronous', '--code-coverage', '--concise'],
481-
config
482-
).run();
476+
await Test.run([
477+
'--tests',
478+
'MyApexTests',
479+
'--result-format',
480+
'human',
481+
'--synchronous',
482+
'--code-coverage',
483+
'--concise',
484+
]);
483485
expect(logStub.firstCall.args[0]).to.contain('Test Summary');
484486
expect(logStub.firstCall.args[0]).to.not.contain('Test Results');
485487
expect(logStub.firstCall.args[0]).to.not.contain('Apex Code Coverage by Class');

test/tsconfig.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
"include": ["./**/*.ts"],
44
"compilerOptions": {
55
"skipLibCheck": true,
6-
"strictNullChecks": true,
7-
"paths": {
8-
"@salesforce/core": ["../node_modules/@salesforce/core"]
9-
}
6+
"strictNullChecks": true
107
}
118
}

tsconfig.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@
44
"outDir": "lib",
55
"rootDir": "src",
66
"skipLibCheck": true,
7-
"strictNullChecks": true,
8-
"baseUrl": ".",
9-
"paths": {
10-
"@salesforce/core": ["node_modules/@salesforce/core"]
11-
}
7+
"strictNullChecks": true
128
},
139
"include": ["./src/**/*.ts"]
1410
}

0 commit comments

Comments
 (0)