Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

feat: Added a test suite for App Router. #176

Merged
merged 1 commit into from
Mar 19, 2024
Merged

Conversation

bizob2828
Copy link
Member

Proposed Release Notes

  • Added a test suite for Next.js applications using App Router.

Links

Closes #173
Closes #154

Details

App Router relies on folder structures and new patterns to make server side requests. As you can see from the tests runApi, middleware, and getServerSideProps are no longer segments. This effectively just names transactions properly based on next.js routes.

Copy link

codecov bot commented Mar 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.23%. Comparing base (2c3146a) to head (e7bc0db).
Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #176   +/-   ##
=======================================
  Coverage   93.23%   93.23%           
=======================================
  Files           4        4           
  Lines         281      281           
=======================================
  Hits          262      262           
  Misses         19       19           
Flag Coverage Δ
unit-tests-16.x 49.82% <33.33%> (ø)
unit-tests-18.x 49.82% <33.33%> (ø)
unit-tests-20.x 49.82% <33.33%> (ø)
versioned-tests-16.x 93.23% <100.00%> (ø)
versioned-tests-18.x 93.23% <100.00%> (ø)
versioned-tests-20.x 93.23% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@jsumners-nr jsumners-nr left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@bizob2828 bizob2828 merged commit 1600c3b into newrelic:main Mar 19, 2024
10 checks passed
@github-actions github-actions bot mentioned this pull request Mar 28, 2024
bizob2828 added a commit to bizob2828/newrelic-node-nextjs that referenced this pull request Jul 26, 2024
feat: Added a test suite for App Router.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Add Next.js 14 support for App router Support for Next 13 App Folder and Root Layout
2 participants