Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
98432a46
Unverified
Commit
98432a46
authored
Oct 02, 2023
by
Tim Neutkens
Committed by
GitHub
Oct 02, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove buildId test as it's no longer relevant (#56316)
Follow-up to #56310.
parent
86274e68
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
33 deletions
+0
-33
next.config.mjs
test/integration/config-mjs/next.config.mjs
+0
-9
build-id.js
test/integration/config-mjs/pages/build-id.js
+0
-3
index.test.js
test/integration/config-mjs/test/index.test.js
+0
-6
next.config.js
test/integration/config/next.config.js
+0
-9
index.test.js
test/integration/config/test/index.test.js
+0
-6
No files found.
test/integration/config-mjs/next.config.mjs
View file @
98432a46
...
...
@@ -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
},
}
test/integration/config-mjs/pages/build-id.js
deleted
100644 → 0
View file @
86274e68
export
default
()
=>
{
return
<
p
id
=
"buildId"
>
{
process
.
env
.
CONFIG_BUILD_ID
}
<
/p
>
}
test/integration/config-mjs/test/index.test.js
View file @
98432a46
...
...
@@ -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'
)
...
...
test/integration/config/next.config.js
View file @
98432a46
...
...
@@ -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
},
}
test/integration/config/test/index.test.js
View file @
98432a46
...
...
@@ -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'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment