Skip to content

Commit d8a749e

Browse files
authored
chore: allow error message change (#801)
1 parent 788de3c commit d8a749e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/nuts/seeds/deploy.sourcepath.seed.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,13 @@ context('Deploy sourcepath NUTs [name: %REPO_NAME%]', () => {
4848
it('should throw an error if the sourcepath is not valid', async () => {
4949
const deploy = await testkit.deploy({ args: '--sourcepath DOES_NOT_EXIST', exitCode: 1 });
5050
testkit.expect.errorToHaveName(deploy, 'SfError');
51-
testkit.expect.errorToHaveMessage(deploy, 'not a valid source file path');
51+
try {
52+
// old message, can be removed after SDR strict mode PR is merged
53+
testkit.expect.errorToHaveMessage(deploy, 'not a valid source file path');
54+
} catch (e) {
55+
// new message
56+
testkit.expect.errorToHaveMessage(deploy, 'File or folder not found');
57+
}
5258
});
5359
});
5460
});

0 commit comments

Comments
 (0)