Skip to content

Commit 36925ff

Browse files
committed
test: debug CI
1 parent 90e66d4 commit 36925ff

File tree

6 files changed

+14
-6
lines changed

6 files changed

+14
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
"prepack": "sf-prepack",
110110
"prepare": "sf-install",
111111
"test": "wireit",
112-
"test:nuts": "nyc mocha \"./test/nut/*.nut.ts\" --slow 4500 --timeout 1200000 --parallel --jobs 5",
112+
"test:nuts": "nyc mocha \"./test/nut/sandboxRefresh.nut.ts\" --slow 4500 --timeout 1200000 --parallel --jobs 5",
113113
"test:nuts:legacy": "nyc mocha \"./test/nut/legacy/*.nut.ts\" --slow 4500 --timeout 1200000 --parallel --jobs 5",
114114
"test:nuts:sandbox": "nyc mocha \"./test/**/*.sandboxNut.ts\" --slow 450000 --timeout 7200000 --parallel --jobs 5",
115115
"test:only": "wireit",

test/nut/async-create-resume.nut.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import fs from 'node:fs';
99
import path from 'node:path';
10-
import { execCmd, TestSession } from '@salesforce/cli-plugins-testkit';
10+
import { execCmd, TestSession, genUniqueString } from '@salesforce/cli-plugins-testkit';
1111
import { assert, expect } from 'chai';
1212
import { AuthFields, Global, ScratchOrgCache } from '@salesforce/core';
1313
import { CachedOptions } from '@salesforce/core/lib/org/scratchOrgCache.js';
@@ -37,8 +37,10 @@ describe('env:create:scratch async/resume', () => {
3737
};
3838

3939
before(async () => {
40+
const uid = genUniqueString('acr_%s');
4041
session = await TestSession.create({
4142
project: { name: 'asyncCreateResume' },
43+
sessionDir: path.join(process.cwd(), `test_session_${uid}`),
4244
devhubAuthStrategy: 'AUTO',
4345
});
4446
cacheFilePath = path.join(session.dir, '.sf', ScratchOrgCache.getFileName());

test/nut/listAndDisplay.nut.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import { join } from 'node:path';
99
import os from 'node:os';
1010
import { expect, config, assert } from 'chai';
11-
import { TestSession } from '@salesforce/cli-plugins-testkit';
11+
import { TestSession, genUniqueString } from '@salesforce/cli-plugins-testkit';
1212
import { execCmd } from '@salesforce/cli-plugins-testkit';
1313
import { OrgListResult, defaultHubEmoji, defaultOrgEmoji } from '../../src/commands/org/list.js';
1414
import { OrgOpenOutput } from '../../src/commands/org/open.js';
@@ -52,8 +52,10 @@ describe('Org Command NUT', () => {
5252
let aliasUserOrgId: string;
5353

5454
before(async () => {
55+
const uid = genUniqueString('listAndDisplay_%s');
5556
session = await TestSession.create({
5657
project: { name: 'listAndDisplay' },
58+
sessionDir: join(process.cwd(), `test_session_${uid}`),
5759
devhubAuthStrategy: 'AUTO',
5860
scratchOrgs: [
5961
{

test/nut/metadata.nut.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,19 @@
77
import path from 'node:path';
88
import fs from 'node:fs';
99
import { expect } from 'chai';
10-
import { execCmd, TestSession } from '@salesforce/cli-plugins-testkit';
10+
import { execCmd, TestSession, genUniqueString } from '@salesforce/cli-plugins-testkit';
1111
import type { DescribeMetadataResult } from 'jsforce/lib/api/metadata/schema.js';
1212
import type { ListMetadataCommandResult } from '../../src/commands/org/list/metadata.js';
1313

1414
describe('org list metadata*', () => {
1515
let session: TestSession;
1616
before(async () => {
17+
const uid = genUniqueString('listMetadata_%s');
1718
session = await TestSession.create({
1819
project: {
1920
gitClone: 'https://github.com/trailheadapps/dreamhouse-lwc.git',
2021
},
22+
sessionDir: path.join(process.cwd(), `test_session_${uid}`),
2123
devhubAuthStrategy: 'AUTO',
2224
scratchOrgs: [
2325
{

test/nut/open.nut.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import path from 'node:path';
99
import fs from 'node:fs';
10-
import { TestSession, execCmd } from '@salesforce/cli-plugins-testkit';
10+
import { TestSession, execCmd, genUniqueString } from '@salesforce/cli-plugins-testkit';
1111
import { expect, config, assert } from 'chai';
1212
import { AuthFields } from '@salesforce/core';
1313
import { ComponentSetBuilder } from '@salesforce/source-deploy-retrieve';
@@ -24,10 +24,12 @@ describe('test org:open command', () => {
2424
const flowPath = path.join('force-app', 'main', 'default', 'flows', 'Create_property.flow-meta.xml');
2525

2626
before(async () => {
27+
const uid = genUniqueString('orgOpen_%s');
2728
session = await TestSession.create({
2829
project: {
2930
gitClone: 'https://github.com/trailheadapps/dreamhouse-lwc.git',
3031
},
32+
sessionDir: path.join(process.cwd(), `test_session_${uid}`),
3133
devhubAuthStrategy: 'AUTO',
3234
scratchOrgs: [
3335
{

test/nut/sandboxRefresh.nut.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ describe('Sandbox Refresh', () => {
302302
expect(sfCommandUxStubs.info.firstCall.args[0]).to.equal(sbxStatusMsg);
303303
});
304304

305-
it('should poll and report a success and write an auth file', async () => {
305+
it.only('should poll and report a success and write an auth file', async () => {
306306
const sbxInfo = getSandboxInfo();
307307
const sbxName = sbxInfo.SandboxName;
308308
const sbxProcess = getSandboxProcess();

0 commit comments

Comments
 (0)