Skip to content

Commit

Permalink
test: fix deb NUTs
Browse files Browse the repository at this point in the history
  • Loading branch information
WillieRuemmele committed Nov 2, 2023
1 parent c5cc1ce commit 8d907bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/nuts/digitalExperienceBundle/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import { join } from 'node:path';
import { TestSessionOptions } from '@salesforce/cli-plugins-testkit/lib/testSession.js';
import { registry } from '@salesforce/source-deploy-retrieve';
import { META_XML_SUFFIX } from '@salesforce/source-deploy-retrieve/lib/src/common';
import { META_XML_SUFFIX } from '@salesforce/source-deploy-retrieve/lib/src/common/index.js';

export const SOURCE_BASE_RELATIVE_PATH = join('force-app', 'main', 'default');
export const DEB_NUTS_PATH = join(process.cwd(), 'test', 'nuts', 'digitalExperienceBundle');
Expand Down
4 changes: 2 additions & 2 deletions test/nuts/seeds/retrieve.sourcepath.seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ context('Retrieve Sourcepath NUTs [name: %REPO_NAME%]', () => {
nut: fileURLToPath(import.meta.url),
});
await testkit.trackGlobs(testkit.packageGlobs);
await testkit.deploy({ args: `--sourcepath ${testkit.packageNames.join(',')}` });
await testkit.deploy({ args: `--source-dir ${testkit.packageNames.join(',')}` });
});

after(async () => {
Expand All @@ -41,7 +41,7 @@ context('Retrieve Sourcepath NUTs [name: %REPO_NAME%]', () => {
const toRetrieve = path.normalize(testCase.toRetrieve);
it(`should retrieve ${toRetrieve}`, async () => {
await testkit.modifyLocalGlobs(testCase.toVerify);
await testkit.retrieve({ args: `--sourcepath ${toRetrieve}` });
await testkit.retrieve({ args: `--source-dir ${toRetrieve}` });
await testkit.expect.filesToBeChanged(testCase.toVerify, testCase.toIgnore);
});
}
Expand Down

0 comments on commit 8d907bf

Please sign in to comment.