identity-obj-proxy
identity-obj-proxy copied to clipboard
Check that the file exists
I have run into the following issue a few times now.
- Create an SCSS file
- Import it into a React component
- Run jest.
- Jest passes.
- Delete the SCSS file, keep the import statement as-is in your React component
- Run jest.
- Jest still passes even though the file doesn't exist.
- Build fails in CI/CD pipeline.
It would be nice if identity-obj-proxy could check if the file exists before proxying the object.