Unverified Commit 98432a46 authored by Tim Neutkens's avatar Tim Neutkens Committed by GitHub

Remove buildId test as it's no longer relevant (#56316)

Follow-up to #56310.
parent 86274e68
...@@ -13,13 +13,4 @@ export default { ...@@ -13,13 +13,4 @@ export default {
env: { env: {
customVar: 'hello', customVar: 'hello',
}, },
webpack(config, { buildId, webpack }) {
config.plugins.push(
new webpack.DefinePlugin({
'process.env.CONFIG_BUILD_ID': JSON.stringify(buildId),
})
)
return config
},
} }
export default () => {
return <p id="buildId">{process.env.CONFIG_BUILD_ID}</p>
}
...@@ -28,7 +28,6 @@ describe('Configuration', () => { ...@@ -28,7 +28,6 @@ describe('Configuration', () => {
// pre-build all pages at the start // pre-build all pages at the start
await Promise.all([ await Promise.all([
renderViaHTTP(context.appPort, '/next-config'), renderViaHTTP(context.appPort, '/next-config'),
renderViaHTTP(context.appPort, '/build-id'),
renderViaHTTP(context.appPort, '/module-only-component'), renderViaHTTP(context.appPort, '/module-only-component'),
]) ])
}) })
...@@ -58,11 +57,6 @@ describe('Configuration', () => { ...@@ -58,11 +57,6 @@ describe('Configuration', () => {
expect($('#server-and-client').text()).toBe('/static') 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 () => { test('correctly imports a package that defines `module` but no `main` in package.json', async () => {
const $ = await get$('/module-only-content') const $ = await get$('/module-only-content')
expect($('#messageInAPackage').text()).toBe('OK') expect($('#messageInAPackage').text()).toBe('OK')
......
...@@ -13,13 +13,4 @@ module.exports = { ...@@ -13,13 +13,4 @@ module.exports = {
env: { env: {
customVar: 'hello', customVar: 'hello',
}, },
webpack(config, { buildId, webpack }) {
config.plugins.push(
new webpack.DefinePlugin({
'process.env.CONFIG_BUILD_ID': JSON.stringify(buildId),
})
)
return config
},
} }
...@@ -28,7 +28,6 @@ describe('Configuration', () => { ...@@ -28,7 +28,6 @@ describe('Configuration', () => {
// pre-build all pages at the start // pre-build all pages at the start
await Promise.all([ await Promise.all([
renderViaHTTP(context.appPort, '/next-config'), renderViaHTTP(context.appPort, '/next-config'),
renderViaHTTP(context.appPort, '/build-id'),
renderViaHTTP(context.appPort, '/module-only-component'), renderViaHTTP(context.appPort, '/module-only-component'),
]) ])
}) })
...@@ -58,11 +57,6 @@ describe('Configuration', () => { ...@@ -58,11 +57,6 @@ describe('Configuration', () => {
expect($('#server-and-client').text()).toBe('/static') 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 () => { test('correctly imports a package that defines `module` but no `main` in package.json', async () => {
const $ = await get$('/module-only-content') const $ = await get$('/module-only-content')
expect($('#messageInAPackage').text()).toBe('OK') expect($('#messageInAPackage').text()).toBe('OK')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment