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
6713ce4c
Unverified
Commit
6713ce4c
authored
Dec 21, 2022
by
Jan Kaifer
Committed by
GitHub
Dec 21, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move tests into their test folder (#44183)
parent
6f1f3e6c
Hide whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
42 additions
and
71 deletions
+42
-71
app-alias.test.ts
test/e2e/app-dir/app-alias/app-alias.test.ts
+1
-1
app-edge-global.test.ts
test/e2e/app-dir/app-edge-global/app-edge-global.test.ts
+1
-2
app-edge.test.ts
test/e2e/app-dir/app-edge/app-edge.test.ts
+1
-2
app-external.test.ts
test/e2e/app-dir/app-external/app-external.test.ts
+1
-2
app-middleware.test.ts
test/e2e/app-dir/app-middleware/app-middleware.test.ts
+3
-5
prefetching.test.ts
test/e2e/app-dir/app-prefetch/prefetching.test.ts
+1
-2
rendering.test.ts
test/e2e/app-dir/app-rendering/rendering.test.ts
+1
-2
app-static.test.ts
test/e2e/app-dir/app-static/app-static.test.ts
+2
-2
index.test.ts
test/e2e/app-dir/app/index.test.ts
+1
-2
standalone.test.ts
test/e2e/app-dir/app/standalone.test.ts
+2
-2
vercel-analytics.test.ts
test/e2e/app-dir/app/vercel-analytics.test.ts
+2
-3
asset-prefix.test.ts
test/e2e/app-dir/asset-prefix/asset-prefix.test.ts
+1
-2
async-component-preload.test.ts
...r/async-component-preload/async-component-preload.test.ts
+1
-2
back-button-download-bug.test.ts
...back-button-download-bug/back-button-download-bug.test.ts
+1
-2
create-root-layout.test.ts
...e2e/app-dir/create-root-layout/create-root-layout.test.ts
+10
-17
dynamic-href.test.ts
test/e2e/app-dir/dynamic-href/dynamic-href.test.ts
+1
-2
global-error.test.ts
test/e2e/app-dir/global-error/global-error.test.ts
+1
-2
head.test.ts
test/e2e/app-dir/head/head.test.ts
+1
-1
import.test.ts
test/e2e/app-dir/import/import.test.ts
+1
-2
layout-params.test.ts
test/e2e/app-dir/layout-params/layout-params.test.ts
+1
-2
next-font.test.ts
test/e2e/app-dir/next-font/next-font.test.ts
+1
-2
next-image.test.ts
test/e2e/app-dir/next-image/next-image.test.ts
+1
-2
root-layout.test.ts
test/e2e/app-dir/root-layout/root-layout.test.ts
+1
-2
rsc-basic.test.ts
test/e2e/app-dir/rsc-basic/rsc-basic.test.ts
+2
-2
rsc-errors.test.ts
test/e2e/app-dir/rsc-errors/rsc-errors.test.ts
+1
-2
trailingslash.test.ts
test/e2e/app-dir/trailingslash/trailingslash.test.ts
+1
-2
with-babel.test.ts
test/e2e/app-dir/with-babel/with-babel.test.ts
+1
-2
No files found.
test/e2e/app-dir/app-alias.test.ts
→
test/e2e/app-dir/app-alias
/app-alias
.test.ts
View file @
6713ce4c
...
@@ -4,7 +4,7 @@ import path from 'path'
...
@@ -4,7 +4,7 @@ import path from 'path'
createNextDescribe
(
createNextDescribe
(
'app-dir alias handling'
,
'app-dir alias handling'
,
{
{
files
:
path
.
join
(
__dirname
,
'app-alias'
)
,
files
:
__dirname
,
packageJson
:
{
packageJson
:
{
type
:
'module'
,
type
:
'module'
,
},
},
...
...
test/e2e/app-dir/app-edge-global.test.ts
→
test/e2e/app-dir/app-edge-global
/app-edge-global
.test.ts
View file @
6713ce4c
import
{
createNextDescribe
}
from
'e2e-utils'
import
{
createNextDescribe
}
from
'e2e-utils'
import
path
from
'path'
createNextDescribe
(
createNextDescribe
(
'app-dir global edge configuration'
,
'app-dir global edge configuration'
,
{
{
files
:
path
.
join
(
__dirname
,
'app-edge-global'
)
,
files
:
__dirname
,
skipDeployment
:
true
,
skipDeployment
:
true
,
},
},
({
next
})
=>
{
({
next
})
=>
{
...
...
test/e2e/app-dir/app-edge.test.ts
→
test/e2e/app-dir/app-edge
/app-edge
.test.ts
View file @
6713ce4c
import
{
createNextDescribe
}
from
'e2e-utils'
import
{
createNextDescribe
}
from
'e2e-utils'
import
{
check
}
from
'next-test-utils'
import
{
check
}
from
'next-test-utils'
import
path
from
'path'
createNextDescribe
(
createNextDescribe
(
'app-dir edge SSR'
,
'app-dir edge SSR'
,
{
{
files
:
path
.
join
(
__dirname
,
'app-edge'
)
,
files
:
__dirname
,
skipDeployment
:
true
,
skipDeployment
:
true
,
},
},
({
next
})
=>
{
({
next
})
=>
{
...
...
test/e2e/app-dir/app-external.test.ts
→
test/e2e/app-dir/app-external
/app-external
.test.ts
View file @
6713ce4c
import
path
from
'path'
import
{
createNextDescribe
}
from
'e2e-utils'
import
{
createNextDescribe
}
from
'e2e-utils'
async
function
resolveStreamResponse
(
response
:
any
,
onData
?:
any
)
{
async
function
resolveStreamResponse
(
response
:
any
,
onData
?:
any
)
{
...
@@ -18,7 +17,7 @@ async function resolveStreamResponse(response: any, onData?: any) {
...
@@ -18,7 +17,7 @@ async function resolveStreamResponse(response: any, onData?: any) {
createNextDescribe
(
createNextDescribe
(
'app dir - external dependency'
,
'app dir - external dependency'
,
{
{
files
:
path
.
join
(
__dirname
,
'./app-external'
)
,
files
:
__dirname
,
dependencies
:
{
dependencies
:
{
'@next/font'
:
'canary'
,
'@next/font'
:
'canary'
,
react
:
'latest'
,
react
:
'latest'
,
...
...
test/e2e/app-dir/app-middleware.test.ts
→
test/e2e/app-dir/app-middleware
/app-middleware
.test.ts
View file @
6713ce4c
...
@@ -6,7 +6,7 @@ import path from 'path'
...
@@ -6,7 +6,7 @@ import path from 'path'
createNextDescribe
(
createNextDescribe
(
'app-dir with middleware'
,
'app-dir with middleware'
,
{
{
files
:
path
.
join
(
__dirname
,
'app-middleware'
)
,
files
:
__dirname
,
skipDeployment
:
true
,
skipDeployment
:
true
,
},
},
({
next
})
=>
{
({
next
})
=>
{
...
@@ -121,10 +121,8 @@ createNextDescribe(
...
@@ -121,10 +121,8 @@ createNextDescribe(
'app dir middleware without pages dir'
,
'app dir middleware without pages dir'
,
{
{
files
:
{
files
:
{
app
:
new
FileRef
(
path
.
join
(
__dirname
,
'app-middleware/app'
)),
app
:
new
FileRef
(
path
.
join
(
__dirname
,
'app'
)),
'next.config.js'
:
new
FileRef
(
'next.config.js'
:
new
FileRef
(
path
.
join
(
__dirname
,
'next.config.js'
)),
path
.
join
(
__dirname
,
'app-middleware/next.config.js'
)
),
'middleware.js'
:
`
'middleware.js'
:
`
import { NextResponse } from 'next/server'
import { NextResponse } from 'next/server'
...
...
test/e2e/app-dir/prefetching.test.ts
→
test/e2e/app-dir/
app-prefetch/
prefetching.test.ts
View file @
6713ce4c
import
{
createNextDescribe
}
from
'e2e-utils'
import
{
createNextDescribe
}
from
'e2e-utils'
import
{
waitFor
}
from
'next-test-utils'
import
{
waitFor
}
from
'next-test-utils'
import
path
from
'path'
createNextDescribe
(
createNextDescribe
(
'app dir prefetching'
,
'app dir prefetching'
,
{
{
files
:
path
.
join
(
__dirname
,
'app-prefetch'
)
,
files
:
__dirname
,
skipDeployment
:
true
,
skipDeployment
:
true
,
},
},
({
next
,
isNextDev
})
=>
{
({
next
,
isNextDev
})
=>
{
...
...
test/e2e/app-dir/rendering.test.ts
→
test/e2e/app-dir/
app-rendering/
rendering.test.ts
View file @
6713ce4c
import
{
createNextDescribe
}
from
'e2e-utils'
import
{
createNextDescribe
}
from
'e2e-utils'
import
{
waitFor
}
from
'next-test-utils'
import
{
waitFor
}
from
'next-test-utils'
import
path
from
'path'
import
cheerio
from
'cheerio'
import
cheerio
from
'cheerio'
createNextDescribe
(
createNextDescribe
(
'app dir rendering'
,
'app dir rendering'
,
{
{
files
:
path
.
join
(
__dirname
,
'app-rendering'
)
,
files
:
__dirname
,
skipDeployment
:
true
,
skipDeployment
:
true
,
},
},
({
next
,
isNextDev
:
isDev
})
=>
{
({
next
,
isNextDev
:
isDev
})
=>
{
...
...
test/e2e/app-dir/app-static.test.ts
→
test/e2e/app-dir/app-static
/app-static
.test.ts
View file @
6713ce4c
import
globOrig
from
'glob'
import
globOrig
from
'glob'
import
cheerio
from
'cheerio'
import
cheerio
from
'cheerio'
import
{
promisify
}
from
'util'
import
{
promisify
}
from
'util'
import
path
,
{
join
}
from
'path'
import
{
join
}
from
'path'
import
{
createNextDescribe
}
from
'e2e-utils'
import
{
createNextDescribe
}
from
'e2e-utils'
import
{
check
,
normalizeRegEx
,
waitFor
}
from
'next-test-utils'
import
{
check
,
normalizeRegEx
,
waitFor
}
from
'next-test-utils'
...
@@ -10,7 +10,7 @@ const glob = promisify(globOrig)
...
@@ -10,7 +10,7 @@ const glob = promisify(globOrig)
createNextDescribe
(
createNextDescribe
(
'app-dir static/dynamic handling'
,
'app-dir static/dynamic handling'
,
{
{
files
:
path
.
join
(
__dirname
,
'app-static'
)
,
files
:
__dirname
,
},
},
({
next
,
isNextDev
:
isDev
,
isNextStart
})
=>
{
({
next
,
isNextDev
:
isDev
,
isNextStart
})
=>
{
if
(
isNextStart
)
{
if
(
isNextStart
)
{
...
...
test/e2e/app-dir/index.test.ts
→
test/e2e/app-dir/
app/
index.test.ts
View file @
6713ce4c
import
{
createNextDescribe
}
from
'e2e-utils'
import
{
createNextDescribe
}
from
'e2e-utils'
import
crypto
from
'crypto'
import
crypto
from
'crypto'
import
{
check
,
getRedboxHeader
,
hasRedbox
,
waitFor
}
from
'next-test-utils'
import
{
check
,
getRedboxHeader
,
hasRedbox
,
waitFor
}
from
'next-test-utils'
import
path
from
'path'
import
cheerio
from
'cheerio'
import
cheerio
from
'cheerio'
createNextDescribe
(
createNextDescribe
(
'app dir'
,
'app dir'
,
{
{
files
:
path
.
join
(
__dirname
,
'app'
)
,
files
:
__dirname
,
dependencies
:
{
dependencies
:
{
swr
:
'2.0.0-rc.0'
,
swr
:
'2.0.0-rc.0'
,
react
:
'latest'
,
react
:
'latest'
,
...
...
test/e2e/app-dir/standalone.test.ts
→
test/e2e/app-dir/
app/
standalone.test.ts
View file @
6713ce4c
import
{
createNextDescribe
,
FileRef
}
from
'e2e-utils'
import
{
createNextDescribe
}
from
'e2e-utils'
import
fs
from
'fs-extra'
import
fs
from
'fs-extra'
import
os
from
'os'
import
os
from
'os'
import
path
from
'path'
import
path
from
'path'
...
@@ -15,7 +15,7 @@ if (!(globalThis as any).isNextStart) {
...
@@ -15,7 +15,7 @@ if (!(globalThis as any).isNextStart) {
createNextDescribe
(
createNextDescribe
(
'output: standalone with app dir'
,
'output: standalone with app dir'
,
{
{
files
:
new
FileRef
(
path
.
join
(
__dirname
,
'app'
))
,
files
:
__dirname
,
dependencies
:
{
dependencies
:
{
swr
:
'2.0.0-rc.0'
,
swr
:
'2.0.0-rc.0'
,
react
:
'latest'
,
react
:
'latest'
,
...
...
test/e2e/app-dir/vercel-analytics.test.ts
→
test/e2e/app-dir/
app/
vercel-analytics.test.ts
View file @
6713ce4c
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
createNext
}
from
'e2e-utils'
import
{
NextInstance
}
from
'test/lib/next-modes/base'
import
{
NextInstance
}
from
'test/lib/next-modes/base'
import
{
check
}
from
'next-test-utils'
import
{
check
}
from
'next-test-utils'
import
path
from
'path'
describe
(
'vercel analytics'
,
()
=>
{
describe
(
'vercel analytics'
,
()
=>
{
const
isDev
=
(
global
as
any
).
isNextDev
const
isDev
=
(
global
as
any
).
isNextDev
...
@@ -16,7 +15,7 @@ describe('vercel analytics', () => {
...
@@ -16,7 +15,7 @@ describe('vercel analytics', () => {
function
runTests
({
assetPrefix
}:
{
assetPrefix
?:
boolean
})
{
function
runTests
({
assetPrefix
}:
{
assetPrefix
?:
boolean
})
{
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
next
=
await
createNext
({
next
=
await
createNext
({
files
:
new
FileRef
(
path
.
join
(
__dirname
,
'app'
))
,
files
:
__dirname
,
dependencies
:
{
dependencies
:
{
swr
:
'2.0.0-rc.0'
,
swr
:
'2.0.0-rc.0'
,
react
:
'latest'
,
react
:
'latest'
,
...
...
test/e2e/app-dir/asset-prefix.test.ts
→
test/e2e/app-dir/asset-prefix
/asset-prefix
.test.ts
View file @
6713ce4c
import
{
createNextDescribe
}
from
'e2e-utils'
import
{
createNextDescribe
}
from
'e2e-utils'
import
path
from
'path'
createNextDescribe
(
createNextDescribe
(
'app-dir assetPrefix handling'
,
'app-dir assetPrefix handling'
,
{
{
files
:
path
.
join
(
__dirname
,
'asset-prefix'
)
,
files
:
__dirname
,
skipDeployment
:
true
,
skipDeployment
:
true
,
},
},
({
next
})
=>
{
({
next
})
=>
{
...
...
test/e2e/app-dir/async-component-preload.test.ts
→
test/e2e/app-dir/async-component-preload
/async-component-preload
.test.ts
View file @
6713ce4c
import
{
createNextDescribe
}
from
'e2e-utils'
import
{
createNextDescribe
}
from
'e2e-utils'
import
path
from
'path'
createNextDescribe
(
createNextDescribe
(
'async-component-preload'
,
'async-component-preload'
,
{
{
files
:
path
.
join
(
__dirname
,
'async-component-preload'
)
,
files
:
__dirname
,
skipDeployment
:
true
,
skipDeployment
:
true
,
},
},
({
next
})
=>
{
({
next
})
=>
{
...
...
test/e2e/app-dir/back-button-download-bug.test.ts
→
test/e2e/app-dir/back-button-download-bug
/back-button-download-bug
.test.ts
View file @
6713ce4c
import
{
createNextDescribe
}
from
'e2e-utils'
import
{
createNextDescribe
}
from
'e2e-utils'
import
path
from
'path'
// TODO-APP: fix test as it's failing randomly
// TODO-APP: fix test as it's failing randomly
describe
.
skip
(
'app-dir back button download bug'
,
()
=>
{
describe
.
skip
(
'app-dir back button download bug'
,
()
=>
{
createNextDescribe
(
createNextDescribe
(
'app-dir back button download bug'
,
'app-dir back button download bug'
,
{
{
files
:
path
.
join
(
__dirname
,
'back-button-download-bug'
)
,
files
:
__dirname
,
skipDeployment
:
true
,
skipDeployment
:
true
,
},
},
({
next
})
=>
{
({
next
})
=>
{
...
...
test/e2e/app-dir/create-root-layout.test.ts
→
test/e2e/app-dir/create-root-layout
/create-root-layout
.test.ts
View file @
6713ce4c
...
@@ -19,9 +19,9 @@ describe('app-dir create root layout', () => {
...
@@ -19,9 +19,9 @@ describe('app-dir create root layout', () => {
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
next
=
await
createNext
({
next
=
await
createNext
({
files
:
{
files
:
{
app
:
new
FileRef
(
path
.
join
(
__dirname
,
'
create-root-layout/
app'
)),
app
:
new
FileRef
(
path
.
join
(
__dirname
,
'app'
)),
'next.config.js'
:
new
FileRef
(
'next.config.js'
:
new
FileRef
(
path
.
join
(
__dirname
,
'
create-root-layout/
next.config.js'
)
path
.
join
(
__dirname
,
'next.config.js'
)
),
),
},
},
dependencies
:
{
dependencies
:
{
...
@@ -79,11 +79,9 @@ describe('app-dir create root layout', () => {
...
@@ -79,11 +79,9 @@ describe('app-dir create root layout', () => {
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
next
=
await
createNext
({
next
=
await
createNext
({
files
:
{
files
:
{
app
:
new
FileRef
(
app
:
new
FileRef
(
path
.
join
(
__dirname
,
'app-group-layout'
)),
path
.
join
(
__dirname
,
'create-root-layout/app-group-layout'
)
),
'next.config.js'
:
new
FileRef
(
'next.config.js'
:
new
FileRef
(
path
.
join
(
__dirname
,
'
create-root-layout/
next.config.js'
)
path
.
join
(
__dirname
,
'next.config.js'
)
),
),
},
},
dependencies
:
{
dependencies
:
{
...
@@ -143,14 +141,9 @@ describe('app-dir create root layout', () => {
...
@@ -143,14 +141,9 @@ describe('app-dir create root layout', () => {
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
next
=
await
createNext
({
next
=
await
createNext
({
files
:
{
files
:
{
app
:
new
FileRef
(
app
:
new
FileRef
(
path
.
join
(
__dirname
,
'app-find-available-dir'
)),
path
.
join
(
__dirname
,
'create-root-layout/app-find-available-dir'
)
),
'next.config.js'
:
new
FileRef
(
'next.config.js'
:
new
FileRef
(
path
.
join
(
__dirname
,
'
create-root-layout/
next.config.js'
)
path
.
join
(
__dirname
,
'next.config.js'
)
),
),
},
},
dependencies
:
{
dependencies
:
{
...
@@ -212,10 +205,10 @@ describe('app-dir create root layout', () => {
...
@@ -212,10 +205,10 @@ describe('app-dir create root layout', () => {
next
=
await
createNext
({
next
=
await
createNext
({
files
:
{
files
:
{
'app/page.tsx'
:
new
FileRef
(
'app/page.tsx'
:
new
FileRef
(
path
.
join
(
__dirname
,
'
create-root-layout/
app/route/page.js'
)
path
.
join
(
__dirname
,
'app/route/page.js'
)
),
),
'next.config.js'
:
new
FileRef
(
'next.config.js'
:
new
FileRef
(
path
.
join
(
__dirname
,
'
create-root-layout/
next.config.js'
)
path
.
join
(
__dirname
,
'next.config.js'
)
),
),
},
},
})
})
...
@@ -275,10 +268,10 @@ describe('app-dir create root layout', () => {
...
@@ -275,10 +268,10 @@ describe('app-dir create root layout', () => {
skipStart
:
true
,
skipStart
:
true
,
files
:
{
files
:
{
'app/page.js'
:
new
FileRef
(
'app/page.js'
:
new
FileRef
(
path
.
join
(
__dirname
,
'
create-root-layout/
app/route/page.js'
)
path
.
join
(
__dirname
,
'app/route/page.js'
)
),
),
'next.config.js'
:
new
FileRef
(
'next.config.js'
:
new
FileRef
(
path
.
join
(
__dirname
,
'
create-root-layout/
next.config.js'
)
path
.
join
(
__dirname
,
'next.config.js'
)
),
),
},
},
dependencies
:
{
dependencies
:
{
...
...
test/e2e/app-dir/dynamic-href.test.ts
→
test/e2e/app-dir/dynamic-href
/dynamic-href
.test.ts
View file @
6713ce4c
import
{
createNextDescribe
}
from
'e2e-utils'
import
{
createNextDescribe
}
from
'e2e-utils'
import
{
getRedboxDescription
,
hasRedbox
}
from
'next-test-utils'
import
{
getRedboxDescription
,
hasRedbox
}
from
'next-test-utils'
import
path
from
'path'
createNextDescribe
(
createNextDescribe
(
'dynamic-href'
,
'dynamic-href'
,
{
{
files
:
path
.
join
(
__dirname
,
'dynamic-href'
)
,
files
:
__dirname
,
skipDeployment
:
true
,
skipDeployment
:
true
,
},
},
({
isNextDev
:
isDev
,
next
})
=>
{
({
isNextDev
:
isDev
,
next
})
=>
{
...
...
test/e2e/app-dir/global-error.test.ts
→
test/e2e/app-dir/global-error
/global-error
.test.ts
View file @
6713ce4c
import
path
from
'path'
import
{
getRedboxHeader
,
hasRedbox
}
from
'next-test-utils'
import
{
getRedboxHeader
,
hasRedbox
}
from
'next-test-utils'
import
{
createNextDescribe
}
from
'e2e-utils'
import
{
createNextDescribe
}
from
'e2e-utils'
createNextDescribe
(
createNextDescribe
(
'app dir - global error'
,
'app dir - global error'
,
{
{
files
:
path
.
join
(
__dirname
,
'./global-error'
)
,
files
:
__dirname
,
},
},
({
next
,
isNextDev
})
=>
{
({
next
,
isNextDev
})
=>
{
it
(
'should trigger error component when an error happens during rendering'
,
async
()
=>
{
it
(
'should trigger error component when an error happens during rendering'
,
async
()
=>
{
...
...
test/e2e/app-dir/head.test.ts
→
test/e2e/app-dir/head
/head
.test.ts
View file @
6713ce4c
...
@@ -6,7 +6,7 @@ import escapeStringRegexp from 'escape-string-regexp'
...
@@ -6,7 +6,7 @@ import escapeStringRegexp from 'escape-string-regexp'
createNextDescribe
(
createNextDescribe
(
'app dir head'
,
'app dir head'
,
{
{
files
:
path
.
join
(
__dirname
,
'head'
)
,
files
:
__dirname
,
skipDeployment
:
true
,
skipDeployment
:
true
,
},
},
({
next
})
=>
{
({
next
})
=>
{
...
...
test/e2e/app-dir/import.test.ts
→
test/e2e/app-dir/import
/import
.test.ts
View file @
6713ce4c
import
path
from
'path'
import
{
createNextDescribe
}
from
'e2e-utils'
import
{
createNextDescribe
}
from
'e2e-utils'
createNextDescribe
(
createNextDescribe
(
'app dir imports'
,
'app dir imports'
,
{
{
files
:
path
.
join
(
__dirname
,
'import'
)
,
files
:
__dirname
,
},
},
({
next
})
=>
{
({
next
})
=>
{
;[
'js'
,
'jsx'
,
'ts'
,
'tsx'
].
forEach
((
ext
)
=>
{
;[
'js'
,
'jsx'
,
'ts'
,
'tsx'
].
forEach
((
ext
)
=>
{
...
...
test/e2e/app-dir/layout-params.test.ts
→
test/e2e/app-dir/layout-params
/layout-params
.test.ts
View file @
6713ce4c
import
path
from
'path'
import
{
createNextDescribe
}
from
'e2e-utils'
import
{
createNextDescribe
}
from
'e2e-utils'
createNextDescribe
(
createNextDescribe
(
'app dir - layout params'
,
'app dir - layout params'
,
{
{
files
:
path
.
join
(
__dirname
,
'./layout-params'
)
,
files
:
__dirname
,
},
},
({
next
})
=>
{
({
next
})
=>
{
describe
(
'basic params'
,
()
=>
{
describe
(
'basic params'
,
()
=>
{
...
...
test/e2e/app-dir/next-font.test.ts
→
test/e2e/app-dir/next-font
/next-font
.test.ts
View file @
6713ce4c
import
{
createNextDescribe
}
from
'e2e-utils'
import
{
createNextDescribe
}
from
'e2e-utils'
import
{
getRedboxSource
,
hasRedbox
}
from
'next-test-utils'
import
{
getRedboxSource
,
hasRedbox
}
from
'next-test-utils'
import
path
from
'path'
createNextDescribe
(
createNextDescribe
(
'app dir next-font'
,
'app dir next-font'
,
{
{
files
:
path
.
join
(
__dirname
,
'next-font'
)
,
files
:
__dirname
,
dependencies
:
{
dependencies
:
{
'@next/font'
:
'canary'
,
'@next/font'
:
'canary'
,
react
:
'latest'
,
react
:
'latest'
,
...
...
test/e2e/app-dir/next-image.test.ts
→
test/e2e/app-dir/next-image
/next-image
.test.ts
View file @
6713ce4c
import
{
createNextDescribe
}
from
'e2e-utils'
import
{
createNextDescribe
}
from
'e2e-utils'
import
path
from
'path'
createNextDescribe
(
createNextDescribe
(
'app dir next-image'
,
'app dir next-image'
,
{
{
files
:
path
.
join
(
__dirname
,
'next-image'
)
,
files
:
__dirname
,
skipDeployment
:
true
,
skipDeployment
:
true
,
},
},
({
next
})
=>
{
({
next
})
=>
{
...
...
test/e2e/app-dir/root-layout.test.ts
→
test/e2e/app-dir/root-layout
/root-layout
.test.ts
View file @
6713ce4c
import
path
from
'path'
import
{
createNextDescribe
}
from
'e2e-utils'
import
{
createNextDescribe
}
from
'e2e-utils'
import
{
getRedboxSource
,
hasRedbox
}
from
'next-test-utils'
import
{
getRedboxSource
,
hasRedbox
}
from
'next-test-utils'
createNextDescribe
(
createNextDescribe
(
'app-dir root layout'
,
'app-dir root layout'
,
{
{
files
:
path
.
join
(
__dirname
,
'root-layout'
)
,
files
:
__dirname
,
skipDeployment
:
true
,
skipDeployment
:
true
,
},
},
({
next
,
isNextDev
:
isDev
})
=>
{
({
next
,
isNextDev
:
isDev
})
=>
{
...
...
test/e2e/app-dir/rsc-basic.test.ts
→
test/e2e/app-dir/rsc-basic
/rsc-basic
.test.ts
View file @
6713ce4c
import
path
from
'path'
import
path
from
'path'
import
fs
from
'fs-extra'
import
fs
from
'fs-extra'
import
{
check
}
from
'next-test-utils'
import
{
check
}
from
'next-test-utils'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
createNext
}
from
'e2e-utils'
import
{
NextInstance
}
from
'test/lib/next-modes/base'
import
{
NextInstance
}
from
'test/lib/next-modes/base'
import
cheerio
from
'cheerio'
import
cheerio
from
'cheerio'
...
@@ -30,7 +30,7 @@ describe('app dir - rsc basics', () => {
...
@@ -30,7 +30,7 @@ describe('app dir - rsc basics', () => {
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
next
=
await
createNext
({
next
=
await
createNext
({
files
:
new
FileRef
(
path
.
join
(
__dirname
,
'./rsc-basic'
))
,
files
:
__dirname
,
dependencies
:
{
dependencies
:
{
'styled-components'
:
'6.0.0-beta.5'
,
'styled-components'
:
'6.0.0-beta.5'
,
react
:
'latest'
,
react
:
'latest'
,
...
...
test/e2e/app-dir/rsc-errors.test.ts
→
test/e2e/app-dir/rsc-errors
/rsc-errors
.test.ts
View file @
6713ce4c
import
path
from
'path'
import
{
check
}
from
'next-test-utils'
import
{
check
}
from
'next-test-utils'
import
{
createNextDescribe
}
from
'e2e-utils'
import
{
createNextDescribe
}
from
'e2e-utils'
...
@@ -8,7 +7,7 @@ if (!(globalThis as any).isNextDev) {
...
@@ -8,7 +7,7 @@ if (!(globalThis as any).isNextDev) {
createNextDescribe
(
createNextDescribe
(
'app dir - rsc errors'
,
'app dir - rsc errors'
,
{
{
files
:
path
.
join
(
__dirname
,
'./rsc-errors'
)
,
files
:
__dirname
,
skipDeployment
:
true
,
skipDeployment
:
true
,
},
},
({
next
})
=>
{
({
next
})
=>
{
...
...
test/e2e/app-dir/trailingslash.test.ts
→
test/e2e/app-dir/trailingslash
/trailingslash
.test.ts
View file @
6713ce4c
import
{
createNextDescribe
}
from
'e2e-utils'
import
{
createNextDescribe
}
from
'e2e-utils'
import
path
from
'path'
createNextDescribe
(
createNextDescribe
(
'app-dir trailingSlash handling'
,
'app-dir trailingSlash handling'
,
{
{
files
:
path
.
join
(
__dirname
,
'trailingslash'
)
,
files
:
__dirname
,
skipDeployment
:
true
,
skipDeployment
:
true
,
},
},
({
next
})
=>
{
({
next
})
=>
{
...
...
test/e2e/app-dir/with-babel.test.ts
→
test/e2e/app-dir/with-babel
/with-babel
.test.ts
View file @
6713ce4c
import
{
createNextDescribe
}
from
'e2e-utils'
import
{
createNextDescribe
}
from
'e2e-utils'
import
path
from
'path'
createNextDescribe
(
createNextDescribe
(
'with babel'
,
'with babel'
,
{
{
files
:
path
.
join
(
__dirname
,
'with-babel'
)
,
files
:
__dirname
,
skipDeployment
:
true
,
skipDeployment
:
true
,
},
},
({
next
})
=>
{
({
next
})
=>
{
...
...
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