Skip to content

Commit 25b2386

Browse files
authored
chore: update to latest testkit (#388)
* chore: update to latest testkit * chore: retrigger build * chore: update deps * chore: specify auth strategy
1 parent d2f238b commit 25b2386

25 files changed

+118
-230
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,6 @@ node_modules
4141
.idea
4242

4343
oclif.manifest.json
44+
45+
# ignore generated nut tests
46+
test/nuts/generated/

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
"devDependencies": {
2020
"@oclif/plugin-command-snapshot": "^3.1.3",
21-
"@salesforce/cli-plugins-testkit": "^2.5.2",
21+
"@salesforce/cli-plugins-testkit": "^3.0.2",
2222
"@salesforce/dev-config": "^3.1.0",
2323
"@salesforce/dev-scripts": "^3.1.0",
2424
"@salesforce/plugin-command-reference": "^2.2.8",
@@ -28,7 +28,7 @@
2828
"@salesforce/plugin-templates": "^55.1.0",
2929
"@salesforce/plugin-user": "^2.1.7",
3030
"@salesforce/prettier-config": "^0.0.2",
31-
"@salesforce/source-testkit": "^1.2.14",
31+
"@salesforce/source-testkit": "^2.0.2",
3232
"@salesforce/ts-sinon": "1.4.0",
3333
"@salesforce/ts-types": "^1.5.20",
3434
"@types/archiver": "^5.3.1",

test/commands/deploy.nut.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ describe('deploy NUTs', () => {
1717
before(async () => {
1818
testkit = await SourceTestkit.create({
1919
repository: 'https://github.com/trailheadapps/dreamhouse-lwc.git',
20-
executable: path.join(process.cwd(), 'bin', 'dev'),
2120
nut: __filename,
2221
});
2322
});

test/commands/deploy/metadata.nut.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
66
*/
77

8-
import * as path from 'path';
98
import { SourceTestkit } from '@salesforce/source-testkit';
109

1110
describe('deploy metadata NUTs', () => {
@@ -14,7 +13,6 @@ describe('deploy metadata NUTs', () => {
1413
before(async () => {
1514
testkit = await SourceTestkit.create({
1615
repository: 'https://github.com/trailheadapps/dreamhouse-lwc.git',
17-
executable: path.join(process.cwd(), 'bin', 'dev'),
1816
nut: __filename,
1917
});
2018
});

test/commands/deploy/metadata/cancel.nut.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ describe('deploy metadata cancel NUTs', () => {
2424
before(async () => {
2525
testkit = await SourceTestkit.create({
2626
repository: 'https://github.com/trailheadapps/dreamhouse-lwc.git',
27-
executable: path.join(process.cwd(), 'bin', 'dev'),
2827
nut: __filename,
2928
});
3029
});

test/commands/deploy/metadata/quick.nut.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
66
*/
77

8-
import * as path from 'path';
98
import { SourceTestkit } from '@salesforce/source-testkit';
109
import { DeployResultJson } from '../../../../src/utils/types';
1110

@@ -15,7 +14,6 @@ describe('deploy metadata quick NUTs', () => {
1514
before(async () => {
1615
testkit = await SourceTestkit.create({
1716
repository: 'https://github.com/salesforcecli/sample-project-multiple-packages.git',
18-
executable: path.join(process.cwd(), 'bin', 'dev'),
1917
nut: __filename,
2018
});
2119
});

test/commands/deploy/metadata/report.nut.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
66
*/
77

8-
import * as path from 'path';
98
import { SourceTestkit } from '@salesforce/source-testkit';
109
import { DeployResultJson } from '../../../../src/utils/types';
1110

@@ -15,7 +14,6 @@ describe('deploy metadata report NUTs', () => {
1514
before(async () => {
1615
testkit = await SourceTestkit.create({
1716
repository: 'https://github.com/salesforcecli/sample-project-multiple-packages.git',
18-
executable: path.join(process.cwd(), 'bin', 'dev'),
1917
nut: __filename,
2018
});
2119
});

test/commands/deploy/metadata/resume.nut.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ describe('deploy metadata resume NUTs', () => {
2424
before(async () => {
2525
testkit = await SourceTestkit.create({
2626
repository: 'https://github.com/salesforcecli/sample-project-multiple-packages.git',
27-
executable: path.join(process.cwd(), 'bin', 'dev'),
2827
nut: __filename,
2928
});
3029
});

test/commands/deploy/metadata/validate.nut.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
66
*/
77

8-
import * as path from 'path';
98
import { SourceTestkit } from '@salesforce/source-testkit';
109
import { DeployResultJson } from '../../../../src/utils/types';
1110

@@ -15,7 +14,6 @@ describe('deploy metadata validate NUTs', () => {
1514
before(async () => {
1615
testkit = await SourceTestkit.create({
1716
repository: 'https://github.com/salesforcecli/sample-project-multiple-packages.git',
18-
executable: path.join(process.cwd(), 'bin', 'dev'),
1917
nut: __filename,
2018
});
2119
});

test/commands/retrieve/metadata.nut.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ describe('retrieve metadata NUTs', () => {
1717
before(async () => {
1818
testkit = await SourceTestkit.create({
1919
repository: 'https://github.com/trailheadapps/dreamhouse-lwc.git',
20-
executable: path.join(process.cwd(), 'bin', 'dev'),
2120
nut: __filename,
2221
});
2322
await testkit.addTestFiles();

0 commit comments

Comments
 (0)