Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Add Express5 alpha mock#98

Closed
cristiancavalli wants to merge 1 commit intoGoogleCloudPlatform:masterfrom
cristiancavalli:add-express-5-mock
Closed

Add Express5 alpha mock#98
cristiancavalli wants to merge 1 commit intoGoogleCloudPlatform:masterfrom
cristiancavalli:add-express-5-mock

Conversation

@cristiancavalli
Copy link
Copy Markdown
Contributor

  • Existing Express error extraction machinery
    works with Express5 in its current state.
  • Add a server mock so that compatibility can
    be tested over time.
  • Add npm-install-version as development dependency
    to manage Express5 usage in server mock.

  - Existing Express error extraction machinery
    works with Express5 in its current state.
  - Add a server mock so that compatibility can
    be tested over time.
  - Add `npm-install-version` as development dependency
    to manage Express5 usage in server mock.
@cristiancavalli
Copy link
Copy Markdown
Contributor Author

@GoogleCloudPlatform/node-team PTAL

Copy link
Copy Markdown
Contributor

@ofrobots ofrobots left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am trying to understand how this gets used by the tests? Would this get used during npm run tests or npm run integration-tests? Can you point me to the mechanism?

app.use(bodyParser.json());

app.post(
'/testErrorHandling'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: this file doesn't seem to follow the style we normally use.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually all of the other files in the directory don't follow the style either, so can be addressed in a follow-on PR.

@DominicKramer
Copy link
Copy Markdown
Contributor

Any further work in this area will be done in the google-cloud-node/error-reporting repository and is being tracked by issue 2294 in that repository.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants