We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91e24f7 commit 314950dCopy full SHA for 314950d
packages/b2c-tooling-sdk/test/version.test.ts
@@ -24,7 +24,8 @@ describe('version', () => {
24
expect(SDK_USER_AGENT).to.equal(`${pkg.name.replace(/^@salesforce\//, '')}/${pkg.version}`);
25
});
26
27
- it('SDK_USER_AGENT is b2c-tooling-sdk/x.x.x format', () => {
28
- expect(SDK_USER_AGENT).to.match(/^b2c-tooling-sdk\/\d+\.\d+\.\d+$/);
+ it('SDK_USER_AGENT is b2c-tooling-sdk/x.x.x format (with optional prerelease)', () => {
+ // Allow semver with optional prerelease suffix (e.g., 0.0.0-nightly.20260122)
29
+ expect(SDK_USER_AGENT).to.match(/^b2c-tooling-sdk\/\d+\.\d+\.\d+(-[\w.]+)?$/);
30
31
0 commit comments