Skip to content

Commit c9ae778

Browse files
committed
feat(next-drupal): add NextDrupal and NextDrupalBase class definitions
The DrupalClient class has been renamed to NextDrupalPages and has been refactored to inherit from the NextDrupalBase (base class) and NextDrupal (JsonAPI/App Router class). NextDrupalPages class contains the methods that are only needed to support Next.js' Pages Router. NextDrupalPages is also available as "DrupalClient" for backwards-compatibility. The getPathFromContext() method has been replaced with the constructPathFromSegment() method for App Router usages. Issue #665
1 parent 2a9aa28 commit c9ae778

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+4714
-3647
lines changed

packages/next-drupal/jest.config.cjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ module.exports = {
1414
],
1515
},
1616
testLocationInResults: true,
17+
// TODO: Remove prettierPath after Jest v30 release. See https://github.com/jestjs/jest/issues/14305
18+
prettierPath: null,
1719
coverageProvider: "v8",
1820
collectCoverage: true,
1921
collectCoverageFrom: ["./src/**"],

0 commit comments

Comments
 (0)