You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could you add the project to a directory called file_system/ under the 07_unit_testing/ directory please. Make the project self contained and this should consist of a website with a single page that contains a form that allows the user to browse for and upload images. The images should display on the same page.
Create a custom module called uploads.js in the modules/ directory. This should contain all the logic needed both to upload an image and retrieve the details of all the images for display on the page.
You will need to add a unit test/ directory with some unit tests to check the module works correctly. This test suite should make use of the mock-fs module to ensure each tests runs against a sandboxed in-memory filesystem.
I couldn't make mock-fs work properly, so the unit tests using it don't run. The web server also fails to receive the POST request with the image upload.
The text was updated successfully, but these errors were encountered: