Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions packages/docusaurus/src/webpack/__tests__/base.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,16 @@ describe('base webpack config', () => {
expect(oldNodeVersion).not.toBe(newNodeVersion);
});

// TODO a warm client cache with a cold server cache hangs the build
// See https://github.com/meta/docusaurus/pull/13034
it('keeps the client cache when the server Node.js target changes', async () => {
stubServerNodeTarget('24.11.1');
const oldNodeVersion = await getCacheVersion({isServer: false});
stubServerNodeTarget('24.11.2');
const newNodeVersion = await getCacheVersion({isServer: false});
expect(oldNodeVersion).toBe(newNodeVersion);
});

it('is evicted when a plugin package version changes', async () => {
const oldPluginVersion = await getCacheVersion({
siteMetadata: createSiteMetadata({pluginVersion: '1.0.0'}),
Expand Down
Loading