Skip to content

Commit a2e6874

Browse files
fix(deps): bump @oclif/core from 3.25.2 to 3.26.0 (#1004)
* fix(deps): bump @oclif/core from 3.25.2 to 3.26.0 Bumps [@oclif/core](https://github.com/oclif/core) from 3.25.2 to 3.26.0. - [Release notes](https://github.com/oclif/core/releases) - [Changelog](https://github.com/oclif/core/blob/main/CHANGELOG.md) - [Commits](oclif/core@3.25.2...3.26.0) --- updated-dependencies: - dependency-name: "@oclif/core" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * test: all ut passing * test: org:open test using static run --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: mshanemc <[email protected]>
1 parent d52c591 commit a2e6874

File tree

4 files changed

+69
-28
lines changed

4 files changed

+69
-28
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"author": "Salesforce",
66
"bugs": "https://github.com/forcedotcom/cli/issues",
77
"dependencies": {
8-
"@oclif/core": "^3.25.2",
8+
"@oclif/core": "^3.26.0",
99
"@salesforce/core": "^6.6.0",
1010
"@salesforce/kit": "^3.1.0",
1111
"@salesforce/sf-plugins-core": "^8.0.1",

test/shared/scratchOrgRequest.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Wrapper extends EnvCreateScratch {
1919

2020
/** pass in the params in array form, get back the parsed flags */
2121
const paramsToFlags = async (params: string[]): Promise<Interfaces.InferredFlags<typeof EnvCreateScratch.flags>> =>
22-
new Wrapper(params, {} as Config).getFlags();
22+
new Wrapper(params, { runHook: () => ({ successes: [], failures: [] }) } as unknown as Config).getFlags();
2323

2424
describe('buildScratchOrgRequest function', () => {
2525
const $$ = new TestContext();

test/unit/org/open.test.ts

Lines changed: 32 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import fs from 'node:fs';
99
import { join } from 'node:path';
1010
import { assert, expect } from 'chai';
1111
import { MyDomainResolver, Messages, Connection, SfError } from '@salesforce/core';
12-
import { Config } from '@oclif/core';
1312
import { stubMethod } from '@salesforce/ts-sinon';
1413
import { MockTestOrgData, shouldThrow, TestContext } from '@salesforce/core/lib/testSetup.js';
1514
import { stubSfCommandUx, stubSpinner, stubUx } from '@salesforce/sf-plugins-core';
@@ -98,44 +97,52 @@ describe('org:open', () => {
9897
});
9998

10099
it('--source-file to flexipage', async () => {
101-
const cmd = new OrgOpenCommand(
102-
['--json', '--targetusername', testOrg.username, '--urlonly', '--source-file', flexipagePath],
103-
{} as Config
104-
);
105-
106100
$$.SANDBOX.stub(Connection.prototype, 'singleRecordQuery').resolves({ Id: '123' });
107101

108-
const response = await cmd.run();
102+
const response = await OrgOpenCommand.run([
103+
'--json',
104+
'--targetusername',
105+
testOrg.username,
106+
'--urlonly',
107+
'--source-file',
108+
flexipagePath,
109+
]);
109110
expect(response.url).to.include('visualEditor/appBuilder.app?pageId=123');
110111
});
111112

112113
it('--source-file to an ApexPage', async () => {
113-
const cmd = new OrgOpenCommand(
114-
['--json', '--targetusername', testOrg.username, '--urlonly', '--source-file', apexPath],
115-
{} as Config
116-
);
117-
118-
const response = await cmd.run();
114+
const response = await OrgOpenCommand.run([
115+
'--json',
116+
'--targetusername',
117+
testOrg.username,
118+
'--urlonly',
119+
'--source-file',
120+
apexPath,
121+
]);
119122
expect(response.url).to.include('&retURL=/apex/test');
120123
});
121124

122125
it('--source-file when flexipage query errors', async () => {
123-
const cmd = new OrgOpenCommand(
124-
['--json', '--targetusername', testOrg.username, '--urlonly', '--source-file', flexipagesDir],
125-
{} as Config
126-
);
127-
128-
const response = await cmd.run();
126+
const response = await OrgOpenCommand.run([
127+
'--json',
128+
'--targetusername',
129+
testOrg.username,
130+
'--urlonly',
131+
'--source-file',
132+
flexipagesDir,
133+
]);
129134
expect(response.url).to.include('lightning/setup/FlexiPageList/home');
130135
});
131136

132137
it('--source-file to neither flexipage or apexpage', async () => {
133-
const cmd = new OrgOpenCommand(
134-
['--json', '--targetusername', testOrg.username, '--urlonly', '--source-file', apexDir],
135-
{} as Config
136-
);
137-
138-
const response = await cmd.run();
138+
const response = await OrgOpenCommand.run([
139+
'--json',
140+
'--targetusername',
141+
testOrg.username,
142+
'--urlonly',
143+
'--source-file',
144+
apexDir,
145+
]);
139146
expect(response.url).to.include('lightning/setup/FlexiPageList/home');
140147
});
141148
});

yarn.lock

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1710,7 +1710,7 @@
17101710
read-package-json-fast "^3.0.0"
17111711
which "^3.0.0"
17121712

1713-
"@oclif/[email protected]", "@oclif/core@^3.15.1", "@oclif/core@^3.19.2", "@oclif/core@^3.19.3", "@oclif/core@^3.20.0", "@oclif/core@^3.21.0", "@oclif/core@^3.23.0", "@oclif/core@^3.25.2":
1713+
17141714
version "3.25.2"
17151715
resolved "https://registry.yarnpkg.com/@oclif/core/-/core-3.25.2.tgz#a26d56abe5686c57c1e973957777bd2ae324e973"
17161716
integrity sha512-OkW/cNa/3DhoCz2YlSpymVe8DXqkoRaLY4SPTVqNVzR4R1dFBE5KoCtuwKwnhxYLCRCqaViPgRnB5K26f0MnjA==
@@ -1744,6 +1744,40 @@
17441744
wordwrap "^1.0.0"
17451745
wrap-ansi "^7.0.0"
17461746

1747+
"@oclif/core@^3.15.1", "@oclif/core@^3.19.2", "@oclif/core@^3.19.3", "@oclif/core@^3.20.0", "@oclif/core@^3.21.0", "@oclif/core@^3.23.0", "@oclif/core@^3.26.0":
1748+
version "3.26.0"
1749+
resolved "https://registry.yarnpkg.com/@oclif/core/-/core-3.26.0.tgz#959d5e9f13f4ad6a4e98235ad125189df9ee4279"
1750+
integrity sha512-TpMdfD4tfA2tVVbd4l0PrP02o5KoUXYmudBbTC7CeguDo/GLoprw4uL8cMsaVA26+cbcy7WYtOEydQiHVtJixA==
1751+
dependencies:
1752+
"@types/cli-progress" "^3.11.5"
1753+
ansi-escapes "^4.3.2"
1754+
ansi-styles "^4.3.0"
1755+
cardinal "^2.1.1"
1756+
chalk "^4.1.2"
1757+
clean-stack "^3.0.1"
1758+
cli-progress "^3.12.0"
1759+
color "^4.2.3"
1760+
debug "^4.3.4"
1761+
ejs "^3.1.9"
1762+
get-package-type "^0.1.0"
1763+
globby "^11.1.0"
1764+
hyperlinker "^1.0.0"
1765+
indent-string "^4.0.0"
1766+
is-wsl "^2.2.0"
1767+
js-yaml "^3.14.1"
1768+
minimatch "^9.0.3"
1769+
natural-orderby "^2.0.3"
1770+
object-treeify "^1.1.33"
1771+
password-prompt "^1.1.3"
1772+
slice-ansi "^4.0.0"
1773+
string-width "^4.2.3"
1774+
strip-ansi "^6.0.1"
1775+
supports-color "^8.1.1"
1776+
supports-hyperlinks "^2.2.0"
1777+
widest-line "^3.1.0"
1778+
wordwrap "^1.0.0"
1779+
wrap-ansi "^7.0.0"
1780+
17471781
"@oclif/plugin-command-snapshot@^5.1.2":
17481782
version "5.1.2"
17491783
resolved "https://registry.yarnpkg.com/@oclif/plugin-command-snapshot/-/plugin-command-snapshot-5.1.2.tgz#acba4a0138823931468d91be8d2a990da8a82623"

0 commit comments

Comments
 (0)