keyz / keyz/identity-obj-proxy

Check that the file exists

Open
#18 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
507
Forks
19
PR merge metrics
No merged PRs in 30d

Description

I have run into the following issue a few times now.
1) Create an SCSS file
2) Import it into a React component
3) Run jest.
4) Jest passes.
5) Delete the SCSS file, keep the import statement as-is in your React component
6) Run jest.
7) Jest still passes even though the file doesn't exist.
8) Build fails in CI/CD pipeline.

It would be nice if identity-obj-proxy could check if the file exists before proxying the object.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue with an SCSS import in a React component, then run Jest after deleting the imported file. Inspect identity-obj-proxy's proxying behavior; done means Jest fails when the imported SCSS file does not exist, rather than allowing the CI/CD build to fail later.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react, scss
Domain
ci-cd, frontend, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.