Skip to content

Commit

Permalink
Merge pull request #3868 from bcgov/NDT-753-Jest-Tests-are-failing
Browse files Browse the repository at this point in the history
test (ci): jest reliability
  • Loading branch information
rafasdc authored Feb 13, 2025
2 parents 3cf5bc6 + 5f56417 commit 06727f0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test-code.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
uses: Wandalen/wretry.action@master
with:
current_path: ./app
command: yarn test --coverage
command: yarn test --coverage --silent
attempt_limit: 2
attempt_delay: 2000
- name: SonarCloud Scan
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@ const mockQueryPayloadUnassignedTechAssesment = {
},
};

jest.setTimeout(10000);

const componentTestingHelper =
new ComponentTestingHelper<AssessmentAssignmentTableTestQuery>({
component: AssessmentAssignmentTable,
Expand Down
2 changes: 2 additions & 0 deletions app/tests/pages/analyst/cbc/[cbcId]/[section].test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ const pageTestingHelper = new PageTestingHelper<SectionCbcDataQuery>({
},
});

jest.setTimeout(10000);

describe('EditCbcSection', () => {
beforeEach(() => {
pageTestingHelper.reinit();
Expand Down

0 comments on commit 06727f0

Please sign in to comment.