jest icon indicating copy to clipboard operation
jest copied to clipboard

Example: express router example

Open LeoFC97 opened this issue 2 years ago • 4 comments

Summary

Added some examples of how to test express router object

Test plan

go to examples/express folder, install libs, and run script to test,

cd examples/express
npm install
npm run test

expected output:

 PASS  __tests__/router.test.ts
  Check if all endpoints are declarated
    ✓ Should exists path /health (3 ms)
    ✓ Should exists method GET on /health

Test Suites: 1 passed, 1 total
Tests:       2 passed, 2 total
Snapshots:   0 total
Time:        4.829 s

LeoFC97 avatar Jun 07 '22 04:06 LeoFC97

Hi @LeoFC97!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

facebook-github-bot avatar Jun 07 '22 04:06 facebook-github-bot

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

facebook-github-bot avatar Jun 07 '22 06:06 facebook-github-bot

Hey @SimenB , how can I contribute without changing the lockfile? The CI doesnt pass because lockfile

LeoFC97 avatar Jun 09 '22 02:06 LeoFC97

This PR is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] avatar Sep 08 '22 22:09 github-actions[bot]

This PR was closed because it has been stalled for 30 days with no activity. Please open a new PR if the issue is still relevant, linking to this one.

github-actions[bot] avatar Oct 08 '22 22:10 github-actions[bot]

This PR was closed because it has been stalled for 30 days with no activity. Please open a new PR if the issue is still relevant, linking to this one.

github-actions[bot] avatar Oct 08 '22 22:10 github-actions[bot]

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

github-actions[bot] avatar Nov 08 '22 00:11 github-actions[bot]