identity-obj-proxy icon indicating copy to clipboard operation
identity-obj-proxy copied to clipboard

Check that the file exists

Open mrbinky3000 opened this issue 5 months ago • 0 comments

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.

mrbinky3000 avatar Jan 31 '24 20:01 mrbinky3000