Skip to content

Commit 9e254d9

Browse files
subdavissonartech
authored andcommitted
SC-34809 Fix SCA tests in community build (#3623)
GitOrigin-RevId: 55ae135eaaccf0f361faabb481831e7be73d548a
1 parent 3b391d0 commit 9e254d9

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

apps/sq-server/src/main/js/apps/settings/components/sca/__tests__/Sca-it.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import { waitFor } from '@testing-library/react';
2222
import userEvent from '@testing-library/user-event';
2323
import { registerServiceMocks } from '~shared/api/mocks/server';
2424
import { byLabelText, byRole, byText } from '~shared/helpers/testSelector';
25+
import { isDefined } from '~shared/helpers/types';
2526
import { ExtendedSettingDefinition } from '~shared/types/settings';
2627
import { EntitlementsServiceMock } from '~sq-server-commons/api/mocks/EntitlementsServiceMock';
2728
import ScaServiceSettingsMock from '~sq-server-commons/api/mocks/ScaServiceSettingsMock';
@@ -111,6 +112,11 @@ const ui = {
111112
dismissModal: byRole('button', { name: 'property.sca.cancel.modal.continue_editing' }),
112113
};
113114

115+
it('test should always pass', () => {
116+
/** This test is here so that CI for community build passes when the rest of the file is removed. */
117+
expect(isDefined(1)).toBe(true);
118+
});
119+
114120

115121
function renderScaAdmin() {
116122
return renderComponent(<Sca definitions={SETTINGS_DEFINITIONS} />);

apps/sq-server/src/main/js/apps/settings/components/sca/__tests__/ScaConnectivityTest-it.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import { waitFor } from '@testing-library/react';
2222
import userEvent from '@testing-library/user-event';
2323
import { byRole, byText } from '~shared/helpers/testSelector';
24+
import { isDefined } from '~shared/helpers/types';
2425
import ScaServiceSettingsMock from '~sq-server-commons/api/mocks/ScaServiceSettingsMock';
2526
import { renderComponent } from '~sq-server-commons/helpers/testReactTestingUtils';
2627
import ScaConnectivityTest from '../ScaConnectivityTest';
@@ -44,6 +45,11 @@ const ui = {
4445
closeModal: byRole('button', { name: 'close' }),
4546
};
4647

48+
it('test should always pass', () => {
49+
/** This test is here so that CI for community build passes when the rest of the file is removed. */
50+
expect(isDefined(1)).toBe(true);
51+
});
52+
4753

4854
function renderScaConnectivityTest() {
4955
return renderComponent(<ScaConnectivityTest />);

0 commit comments

Comments
 (0)