I implemented the search functionality as specified, at least I hope so
After running the test (see below) everything seems to be fine but the output in the Status-UI states the following:
Text and Subfield Search: Did not receive the proper response when searching by genre
I would have expected test and UI should report the same, do you have a hint for me?
It is not due to a caching issue because I let another test fail which was immediately reflected by the test AND the UI.
--------------------- 8< ------------------
npm test text-subfield
server@1.0.0 test /Users/Oliver/Dev/mongodb-university/m220/mflix-js
jest --passWithNoTests “text-subfield”
Determining test suites to run…Setup Mongo Connection
PASS test/text-subfield.test.js
Text and Subfield Search
✓ Can perform a text search (124ms)
✓ Can perform a genre search with one genre (100ms)
✓ Can perform a genre search with multiple genres (72ms)
✓ Can perform a cast search with one cast member (218ms)
✓ Can perform a cast search with multiple cast members (122ms)
✓ Can perform a search and return a non-default number of movies per page (127ms)
Test Suites: 1 passed, 1 total
Tests: 6 passed, 6 total
Snapshots: 0 total
Time: 1.82s, estimated 2s
Ran all test suites matching /text-subfield/i.
Teardown Mongo Connection