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
When I run the npx jest Heap one test suite fails and says:
error TS2355: A function whose declared type is neither 'void' nor 'any' must return a value.
12 delete(): number {
~~~~~~
Test Suites: 1 failed, 1 total
I can't find the error and every function that has to return a value returns a value. And delete is not even on line 12.
Your implementation passed all the tests when I tested it.
Could jest be referencing a MinHeap file in another day?
This would happen if you edited the MinHeap file in a src/dayN directory where N is not the latest day and a freshly generated MinHeap.ts file exists in the latest day.
When I run the
npx jest Heap
one test suite fails and says:error TS2355: A function whose declared type is neither 'void' nor 'any' must return a value.
Test Suites: 1 failed, 1 total
I can't find the error and every function that has to return a value returns a value. And delete is not even on line 12.
This is my code:
The text was updated successfully, but these errors were encountered: