mnyon-grandkru / knowledgebase

An issue tracker of error messages discovered while developing as well as their solution.
https://github.com/mnyon-grandkru/knowledgebase/issues
MIT License
2 stars 0 forks source link

Error: Not Found in expressjs tests #47

Closed trystant closed 6 years ago

trystant commented 6 years ago

From stacktrace on nodejs project:

2) Auth endpoints
       /path/to/endpoint
         "before all" hook:
     Error: Not Found

from this line of code in the test:

before(function() {
    return chai.request(app)
        .post('/path/to/endpoint')
            send({
                'name': 'value'
           })
...
}

This usually means that the endpoint doesn't exist as of yet. This is resolved by creating the endpoint.