diff --git a/test/integration/config-mjs/next.config.mjs b/test/integration/config-mjs/next.config.mjs index 0a5257017eccf..84b5831fc866e 100644 --- a/test/integration/config-mjs/next.config.mjs +++ b/test/integration/config-mjs/next.config.mjs @@ -13,13 +13,4 @@ export default { env: { customVar: 'hello', }, - webpack(config, { buildId, webpack }) { - config.plugins.push( - new webpack.DefinePlugin({ - 'process.env.CONFIG_BUILD_ID': JSON.stringify(buildId), - }) - ) - - return config - }, } diff --git a/test/integration/config-mjs/pages/build-id.js b/test/integration/config-mjs/pages/build-id.js deleted file mode 100644 index 65d5d4b5c8200..0000000000000 --- a/test/integration/config-mjs/pages/build-id.js +++ /dev/null @@ -1,3 +0,0 @@ -export default () => { - return

{process.env.CONFIG_BUILD_ID}

-} diff --git a/test/integration/config-mjs/test/index.test.js b/test/integration/config-mjs/test/index.test.js index 5644ed13b90e9..5a67a225fb7d7 100644 --- a/test/integration/config-mjs/test/index.test.js +++ b/test/integration/config-mjs/test/index.test.js @@ -28,7 +28,6 @@ describe('Configuration', () => { // pre-build all pages at the start await Promise.all([ renderViaHTTP(context.appPort, '/next-config'), - renderViaHTTP(context.appPort, '/build-id'), renderViaHTTP(context.appPort, '/module-only-component'), ]) }) @@ -58,11 +57,6 @@ describe('Configuration', () => { expect($('#server-and-client').text()).toBe('/static') }) - test('renders the build id in development mode', async () => { - const $ = await get$('/build-id') - expect($('#buildId').text()).toBe('development') - }) - test('correctly imports a package that defines `module` but no `main` in package.json', async () => { const $ = await get$('/module-only-content') expect($('#messageInAPackage').text()).toBe('OK') diff --git a/test/integration/config/next.config.js b/test/integration/config/next.config.js index 5e195888f7681..e71caf99a7fed 100644 --- a/test/integration/config/next.config.js +++ b/test/integration/config/next.config.js @@ -13,13 +13,4 @@ module.exports = { env: { customVar: 'hello', }, - webpack(config, { buildId, webpack }) { - config.plugins.push( - new webpack.DefinePlugin({ - 'process.env.CONFIG_BUILD_ID': JSON.stringify(buildId), - }) - ) - - return config - }, } diff --git a/test/integration/config/test/index.test.js b/test/integration/config/test/index.test.js index 5644ed13b90e9..5a67a225fb7d7 100644 --- a/test/integration/config/test/index.test.js +++ b/test/integration/config/test/index.test.js @@ -28,7 +28,6 @@ describe('Configuration', () => { // pre-build all pages at the start await Promise.all([ renderViaHTTP(context.appPort, '/next-config'), - renderViaHTTP(context.appPort, '/build-id'), renderViaHTTP(context.appPort, '/module-only-component'), ]) }) @@ -58,11 +57,6 @@ describe('Configuration', () => { expect($('#server-and-client').text()).toBe('/static') }) - test('renders the build id in development mode', async () => { - const $ = await get$('/build-id') - expect($('#buildId').text()).toBe('development') - }) - test('correctly imports a package that defines `module` but no `main` in package.json', async () => { const $ = await get$('/module-only-content') expect($('#messageInAPackage').text()).toBe('OK')