From 1f91bbaca9055cbdbe5889b3ee9dc0300753eac9 Mon Sep 17 00:00:00 2001 From: tshuli <63710093+tshuli@users.noreply.github.com> Date: Mon, 2 Oct 2023 23:16:19 +0800 Subject: [PATCH] feat: rename NRIC field to NRIC/FIN (#6759) * feat: rename NRIC field to NRIC/FIN * chore: set 5s timeout for frontend tests * chore: set timeout in cli call * Revert "chore: set timeout in cli call" This reverts commit 401d45e5936e82af23f38538984fd994ba4a169d. * chore: increase memory to 2gb for frontend test * chore: increase memory to 4gb --- .github/workflows/ci.yml | 6 ++++-- frontend/jest.config.js | 1 + frontend/src/features/admin-form/create/constants.ts | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index edae01ba30..d532ffdfa3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,7 +29,6 @@ jobs: - src/** - package.json - package-lock.json - install: runs-on: ubuntu-latest @@ -96,7 +95,10 @@ jobs: with: path: '**/node_modules' key: ${{ runner.OS }}-node-modules-${{ hashFiles('**/package-lock.json') }} - - run: npm run test:frontend + - name: Run frontend test + env: + NODE_OPTIONS: --max-old-space-size=4096 + run: npm run test:frontend frontend_lint: needs: [changes, install] diff --git a/frontend/jest.config.js b/frontend/jest.config.js index 6154226829..d9258a6cac 100644 --- a/frontend/jest.config.js +++ b/frontend/jest.config.js @@ -4,4 +4,5 @@ const esModules = ['react-markdown'].join('|') module.exports = { transformIgnorePatterns: [`node_modules/(?!${esModules})/`], + testTimeout: 5000, } diff --git a/frontend/src/features/admin-form/create/constants.ts b/frontend/src/features/admin-form/create/constants.ts index 9f67303fe3..00c4339573 100644 --- a/frontend/src/features/admin-form/create/constants.ts +++ b/frontend/src/features/admin-form/create/constants.ts @@ -138,7 +138,7 @@ export const BASICFIELD_TO_DRAWER_META: { }, [BasicField.Nric]: { - label: 'NRIC', + label: 'NRIC/FIN', icon: BiUser, isSubmitted: true, },