question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The final goal is of this issue is to achieve ~80-100% coverage

here’s a todo list of things that require tests (based on the __tests__ folder):

⚠️ List is in progress, I’ll be adding new test tasks over time, here are some that you can submit already

  • core
    • app
      • app - app.set, app.enable, app.disable (codecov)
      • onError - Test a case where an error doesn’t have an HTTP status code, neither is a string (codecov)
    • request
    • response
  • modules
    • accepts
    • cookie-signature
    • cookie
    • etag (#133)
    • req (#140)
    • res
      • res.format - if default only is specified, call it as a function (codecov)
      • res.format - if nothing is specified, throw 406 (codecov)
    • router
    • send (#143)
  • wares
    • cookie-parser
    • cors
      • Accept a function to set origin
    • dotenv
    • favicon
    • jwt
      • Should work with different algorithms (codecov) [pending]
    • logger
    • ping
    • bot-detector (#111)
    • ip-filter
    • jsonp (#123)\

If you want to help with tests, write down to this thread with your questions

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:42 (29 by maintainers)

github_iconTop GitHub Comments

1reaction
talentlessguycommented, Oct 16, 2020
1reaction
talentlessguycommented, Oct 15, 2020

@alcar i will setup an issue for testing @tinyhttp/session for you tomorrow

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use test.todo() when writing Jest tests. - DEV Community ‍ ‍
A quick solution to this if you are using Jest is to build your test suite, and replace your tests with test TODOS!...
Read more >
How to use test.todo() in Jest | heyfirst.co - First Sutham
todo () in Jest. developer experiencejavascriptjesttesting. Heyo! I learn a cool thing when I do pair programming with ...
Read more >
Globals - Jest
In your test files, Jest puts each of these methods and objects into the global ... fn); test.skip.each(table)(name, fn); test.todo(name).
Read more >
QUnit.test.todo()
Add a test which expects at least one failing assertion or exception during its run. parameter, description. name (string), Title of unit being...
Read more >
react-testing-library TodoList example - CodeSandbox
react-testing-library TodoList example. 0. Embed Fork Create Sandbox Sign in. Sandbox Info ... __tests__. TodoList.js. index.js. styles.css. package.json.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found