Your import now does what the club’s brief asked for. It rejects May’s renamed entries with a reason, turns away the misspelled curlew, and keeps “undefined” off the year list. The tests confirmed what each function returns. However, they can’t tell whether you know why your code is shaped the way it is.
In this review, you’ll explain your finished import to the mentor, the way you’d walk a teammate through a pull request. You’ll point out where outside data enters it, judge a few type assertions, and read the generic types your editor shows you. Then you’ll make a change to the import that you haven’t seen yet.
Get Your Project Ready
The review works from your own code, so have the finished imports.ts from the project open in your editor. If you split the three functions into their own files, then open those as well. The mentor will ask you about specific lines, and you’ll answer more precisely with the code in front of you than from memory.
You’ll also run commands during the review. Open two terminals in your millbrook-birders folder. In one, start the species API with npm run api and leave it running. In the other, run npm run check once to confirm the project is clean before you begin: