From f2a48e70a0cd7fa81cf3df4ed75627245d2481f0 Mon Sep 17 00:00:00 2001 From: Brian Pilati Date: Tue, 19 Aug 2025 17:38:32 -0500 Subject: [PATCH] chore(update-jest-readme): Updated the jest configuration to handle too many files --- README.md | 8 +++++++- jest.config.js | 23 ++++++++++++++++++++++- 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 100e57d13..1fafeb928 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ take up to 60 seconds once the docker build finishes. - Docker Commands: [Docker Commands](docs/docker.md). - Git Conventions: [Git Conventions](docs/git-convention.md). - Volta: [Volta](#volta) +- Redux DevTools: [Redux DevTools](#redux-devtools) ### Optional @@ -50,4 +51,9 @@ npm run test:check-coverage-thresholds ## Volta OSF uses volta to manage node and npm versions inside of the repository -Install Volta from https://volta.sh/ and it will automatically pin Node/npm per the repo toolchain. +Install Volta from [volta](https://volta.sh/) and it will automatically pin Node/npm per the repo toolchain. + +## Redux DevTools + +OSF Angular uses [NGXS](https://github.com/ngxs) for state management. It is highly recommended to install +the `Redux DevTools` extension from the Chrome web store. diff --git a/jest.config.js b/jest.config.js index b17d46d9e..8f2627dd3 100644 --- a/jest.config.js +++ b/jest.config.js @@ -32,6 +32,8 @@ module.exports = { '!src/app/**/*.models.{ts.js}', '!src/app/**/*.model.{ts.js}', '!src/app/**/*.route.{ts,js}', + '!src/app/**/*.enum.{ts,js}', + '!src/app/**/*.type.{ts,js}', '!src/app/**/*.spec.{ts,js}', '!src/app/**/*.module.ts', '!src/app/**/index.ts', @@ -46,11 +48,30 @@ module.exports = { statements: 41.63, }, }, + watchPathIgnorePatterns: [ + '/node_modules/', + '/dist/', + '/coverage/', + '/src/assets/', + '/src/environments/', + '/src/@types/', + ], testPathIgnorePatterns: [ '/src/app/app.config.ts', '/src/app/app.routes.ts', '/src/app/features/registry/', - '/src/app/features/project/', + '/src/app/features/project/addons/components/configure-configure-addon/', + '/src/app/features/project/addons/components/connect-configured-addon/', + '/src/app/features/project/addons/components/disconnect-addon-modal/', + '/src/app/features/project/analytics/', + '/src/app/features/project/contributors/', + '/src/app/features/project/files/', + '/src/app/features/project/metadata/', + '/src/app/features/project/overview/', + '/src/app/features/project/registrations', + '/src/app/features/project/settings', + '/src/app/features/project/wiki', + '/src/app/features/project/project.component.ts', '/src/app/features/registries/', '/src/app/features/settings/addons/', '/src/app/features/settings/settings-container.component.ts',