OWASP / OWASP/Nest

Remove unused globals configuration from Jest config

Open
#3,207 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
451
Forks
707
Avg merge
22h 59m
Merged PRs (30d)
91

Description

### Describe the improvement
The Jest configuration currently defines an empty `globals: {}` object.

Since this object is empty, it has no effect on test behavior. Additionally, when using `@swc/jest`, the `globals` field is not required.

Removing unused configuration improves clarity and avoids confusion as Jest continues to deprecate and simplify configuration options.

---

### Location
- `frontend/jest.config.ts`

---

### Why this matters
- Removes dead configuration with no functional impact
- Improves readability and maintainability of test config
- Avoids confusion around deprecated or unused Jest options
- No change in test behavior intended

---

### Suggested change
- Remove the empty `globals: {}` entry from `jest.config.ts`

---

### Are you going to work on fixing this?
- [x] Yes
- [ ] No

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.