Skip to content

Commit

Permalink
chore: bump SDR, dedupe, ensure .object-meta.xml is full
Browse files Browse the repository at this point in the history
  • Loading branch information
WillieRuemmele committed Jun 11, 2024
1 parent b4de299 commit 8ac9b45
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"@salesforce/kit": "^3.1.2",
"@salesforce/plugin-info": "^3.3.6",
"@salesforce/sf-plugins-core": "^10.0.0",
"@salesforce/source-deploy-retrieve": "^11.6.6",
"@salesforce/source-deploy-retrieve": "^11.6.7",
"@salesforce/source-tracking": "^6.5.1",
"@salesforce/ts-types": "^2.0.9",
"ansis": "^3.2.0"
Expand Down
18 changes: 18 additions & 0 deletions test/nuts/retrieve/metadata.nut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import * as path from 'node:path';
import * as fs from 'node:fs';
import { fileURLToPath } from 'node:url';
import * as os from 'node:os';
import { execCmd } from '@salesforce/cli-plugins-testkit';
import { SourceTestkit } from '@salesforce/source-testkit';
import { expect } from 'chai';
Expand Down Expand Up @@ -54,6 +55,23 @@ describe('retrieve metadata NUTs', () => {
await testkit.expect.filesToBeRetrieved([
'force-app/main/default/objects/Broker__c/fields/Email__c.field-meta.xml',
]);
expect(
fs
.readFileSync(
path.join(
testkit.projectDir,
'force-app',
'main',
'default',
'objects',
'Broker__c',
'Broker__c.object-meta.xml'
),
'utf8'
)
.split(os.EOL).length
// 4 lines would be overwritten - ensures like W-15896939 is fixed
).to.be.greaterThanOrEqual(30);
});

it('should retrieve multiple metadata types', async () => {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1685,10 +1685,10 @@
string-width "^7.1.0"
terminal-link "^3.0.0"

"@salesforce/source-deploy-retrieve@^11.6.5", "@salesforce/source-deploy-retrieve@^11.6.6":
version "11.6.6"
resolved "https://registry.yarnpkg.com/@salesforce/source-deploy-retrieve/-/source-deploy-retrieve-11.6.6.tgz#0bec970d04cd528f68ae9009bdd52ec1db20a6b5"
integrity sha512-Wf7QCYtFsBwyLAFSPPuonyUnFMIz113yabDmZd9bBEeH3dKqPFQb6zHAV3HpoU5hwvHN/+xE8QDSxv3yjtyFPw==
"@salesforce/source-deploy-retrieve@^11.6.5", "@salesforce/source-deploy-retrieve@^11.6.7":
version "11.6.7"
resolved "https://registry.yarnpkg.com/@salesforce/source-deploy-retrieve/-/source-deploy-retrieve-11.6.7.tgz#538042e31fdf92d6eeca9a45266d335e96d8af73"
integrity sha512-66KY6EfNGRom7rGDutNzLE7wr8UIPylAruLwyvShuWbXGwXKlUIQli2Vc33h6UfU15NmcrbfiaRxyCgg9oqENw==
dependencies:
"@salesforce/core" "^7.3.12"
"@salesforce/kit" "^3.1.1"
Expand Down

0 comments on commit 8ac9b45

Please sign in to comment.