Skip to content

Commit 55b49e6

Browse files
Fix: Unexpected failing of vitest in PR workflows (Long Term) (#3685)
* excessive waits removed * long term fix * increased workflow ram for testing --------- Co-authored-by: JaiPannu-IITI <[email protected]>
1 parent 145232b commit 55b49e6

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/workflows/pull-request.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ jobs:
252252
if: steps.changed-files.outputs.any_changed == 'true'
253253
env:
254254
NODE_V8_COVERAGE: './coverage/vitest'
255+
NODE_OPTIONS: "--max-old-space-size=6144"
255256
run: |
256257
npm run test:coverage
257258

src/screens/UserPortal/Volunteer/Actions/Actions.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const t = {
4040
...JSON.parse(JSON.stringify(i18n.getDataByLanguage('en')?.errors ?? {})),
4141
};
4242

43-
const debounceWait = async (ms = 300): Promise<void> => {
43+
const debounceWait = async (ms = 250): Promise<void> => {
4444
await act(() => {
4545
return new Promise((resolve) => {
4646
setTimeout(resolve, ms);

vitest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default defineConfig({
1010
globals: true,
1111
environment: 'jsdom',
1212
setupFiles: 'vitest.setup.ts',
13-
testTimeout: 10000,
13+
testTimeout: 30000,
1414
coverage: {
1515
enabled: true,
1616
provider: 'istanbul',

0 commit comments

Comments
 (0)