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
ed4d7723
Unverified
Commit
ed4d7723
authored
Apr 08, 2024
by
Sebastian Silbermann
Committed by
GitHub
Apr 08, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stop using `baseUrl` in root tsconfig (#64117)
parent
2d99073b
Show whitespace changes
Inline
Side-by-side
Showing
142 changed files
with
153 additions
and
161 deletions
+153
-161
index.test.ts
test/development/api-cors-with-rewrite/index.test.ts
+1
-1
strict-mode-enabled-by-default.test.ts
...enabled-by-default/strict-mode-enabled-by-default.test.ts
+1
-1
index.test.ts
...opment/basic/gssp-ssr-change-reloading/test/index.test.ts
+1
-1
hmr.test.ts
test/development/basic/hmr.test.ts
+1
-1
legacy-decorators.test.ts
test/development/basic/legacy-decorators.test.ts
+1
-1
misc.test.ts
test/development/basic/misc.test.ts
+1
-1
next-dynamic.test.ts
test/development/basic/next-dynamic.test.ts
+1
-1
project-directory-rename.test.ts
test/development/basic/project-directory-rename.test.ts
+1
-1
styled-components-disabled.test.ts
test/development/basic/styled-components-disabled.test.ts
+1
-1
tailwind-jit.test.ts
test/development/basic/tailwind-jit.test.ts
+1
-2
index.test.ts
test/development/client-dev-overlay/index.test.ts
+2
-3
index.test.ts
test/development/correct-tsconfig-defaults/index.test.ts
+1
-1
index.test.ts
test/development/dotenv-default-expansion/index.test.ts
+1
-1
index.test.ts
test/development/gssp-notfound/index.test.ts
+1
-1
index.test.ts
test/development/jsconfig-path-reloading/index.test.ts
+1
-1
build-errors.test.ts
test/development/next-font/build-errors.test.ts
+1
-1
font-loader-in-document-error.test.ts
...velopment/next-font/font-loader-in-document-error.test.ts
+1
-1
index.test.ts
...nt/project-directory-with-styled-jsx-suffix/index.test.ts
+1
-1
index.test.ts
test/development/tsconfig-path-reloading/index.test.ts
+1
-1
index.test.ts
test/development/typescript-auto-install/index.test.ts
+1
-1
index.test.ts
...elopment/webpack-issuer-deprecation-warning/index.test.ts
+1
-1
index.test.ts
test/e2e/404-page-router/index.test.ts
+1
-2
index.test.ts
test/e2e/app-dir/app-a11y/index.test.ts
+1
-1
client-cache.test.ts
test/e2e/app-dir/app-client-cache/client-cache.test.ts
+1
-1
test-utils.ts
test/e2e/app-dir/app-client-cache/test-utils.ts
+1
-1
useReportWebVitals.test.ts
test/e2e/app-dir/app/useReportWebVitals.test.ts
+1
-1
vercel-speed-insights.test.ts
test/e2e/app-dir/app/vercel-speed-insights.test.ts
+1
-1
create-root-layout.test.ts
...e2e/app-dir/create-root-layout/create-root-layout.test.ts
+1
-1
navigation.test.ts
...2e/app-dir/interoperability-with-pages/navigation.test.ts
+1
-1
metadata.test.ts
test/e2e/app-dir/metadata/metadata.test.ts
+1
-1
use-selected-layout-segment-s.test.ts
...ed-layout-segment-s/use-selected-layout-segment-s.test.ts
+1
-1
basepath-trailing-slash.test.ts
test/e2e/basepath-trailing-slash.test.ts
+1
-1
basepath.test.ts
test/e2e/basepath.test.ts
+1
-1
index.test.ts
test/e2e/browserslist-extends/index.test.ts
+1
-1
browserslist.test.ts
test/e2e/browserslist/browserslist.test.ts
+1
-1
default-target.test.ts
test/e2e/browserslist/default-target.test.ts
+1
-1
async-function.test.ts
test/e2e/config-promise-export/async-function.test.ts
+1
-1
promise.test.ts
test/e2e/config-promise-export/promise.test.ts
+1
-1
index.test.ts
test/e2e/edge-api-endpoints-can-receive-body/index.test.ts
+1
-1
index.test.ts
test/e2e/edge-async-local-storage/index.test.ts
+1
-1
index.test.ts
test/e2e/edge-can-read-request-body/index.test.ts
+1
-1
index.test.ts
test/e2e/edge-can-use-wasm-files/index.test.ts
+1
-1
index.test.ts
test/e2e/edge-compiler-can-import-blob-assets/index.test.ts
+1
-1
index.test.ts
...e2e/edge-compiler-module-exports-preference/index.test.ts
+1
-1
index.test.ts
test/e2e/edge-configurable-runtime/index.test.ts
+1
-1
index.test.ts
test/e2e/getserversideprops/test/index.test.ts
+1
-1
index.test.ts
test/e2e/handle-non-hoisted-swc-helpers/index.test.ts
+1
-1
index.test.ts
test/e2e/i18n-api-support/index.test.ts
+1
-1
index.test.ts
test/e2e/i18n-data-fetching-redirect/index.test.ts
+1
-1
redirects-with-basepath.test.ts
...re-redirect-source-locale/redirects-with-basepath.test.ts
+1
-1
redirects.test.ts
.../e2e/i18n-ignore-redirect-source-locale/redirects.test.ts
+1
-1
rewrites-with-basepath.test.ts
...nore-rewrite-source-locale/rewrites-with-basepath.test.ts
+1
-1
rewrites.test.ts
test/e2e/i18n-ignore-rewrite-source-locale/rewrites.test.ts
+1
-1
with-i18n.test.ts
test/e2e/ignore-invalid-popstateevent/with-i18n.test.ts
+2
-3
without-i18n.test.ts
test/e2e/ignore-invalid-popstateevent/without-i18n.test.ts
+2
-3
index.test.ts
test/e2e/link-with-api-rewrite/index.test.ts
+1
-1
index.test.ts
test/e2e/manual-client-base-path/index.test.ts
+1
-1
index.test.ts
test/e2e/middleware-base-path/test/index.test.ts
+1
-1
index.test.ts
...2e/middleware-custom-matchers-basepath/test/index.test.ts
+1
-1
index.test.ts
test/e2e/middleware-custom-matchers-i18n/test/index.test.ts
+1
-1
index.test.ts
test/e2e/middleware-custom-matchers/test/index.test.ts
+1
-1
index.test.ts
...2e/middleware-dynamic-basepath-matcher/test/index.test.ts
+1
-1
index.test.ts
...e2e/middleware-fetches-with-any-http-method/index.test.ts
+1
-1
index.test.ts
test/e2e/middleware-fetches-with-body/index.test.ts
+1
-1
index.test.ts
test/e2e/middleware-general/test/index.test.ts
+1
-1
index.test.ts
test/e2e/middleware-matcher/index.test.ts
+1
-1
index.test.ts
test/e2e/middleware-redirects/test/index.test.ts
+1
-1
index.test.ts
...2e/middleware-request-header-overrides/test/index.test.ts
+1
-1
index.test.ts
test/e2e/middleware-responses/test/index.test.ts
+1
-1
index.test.ts
test/e2e/middleware-rewrites/test/index.test.ts
+1
-1
index.test.ts
test/e2e/middleware-shallow-link/index.test.ts
+1
-1
index.test.ts
test/e2e/middleware-trailing-slash/test/index.test.ts
+1
-1
child-a-tag-error.test.ts
test/e2e/new-link-behavior/child-a-tag-error.test.ts
+1
-1
index.test.ts
test/e2e/new-link-behavior/index.test.ts
+1
-1
material-ui.test.ts
test/e2e/new-link-behavior/material-ui.test.ts
+1
-1
stitches.test.ts
test/e2e/new-link-behavior/stitches.test.ts
+1
-1
typescript.test.ts
test/e2e/new-link-behavior/typescript.test.ts
+1
-1
basepath.test.ts
test/e2e/next-font/basepath.test.ts
+1
-1
google-fetch-error.test.ts
test/e2e/next-font/google-fetch-error.test.ts
+1
-1
index.test.ts
test/e2e/next-font/index.test.ts
+1
-1
with-font-declarations-file.test.ts
test/e2e/next-font/with-font-declarations-file.test.ts
+1
-1
without-preloaded-fonts.test.ts
test/e2e/next-font/without-preloaded-fonts.test.ts
+1
-1
index.test.ts
test/e2e/next-head/index.test.ts
+1
-1
index.test.ts
test/e2e/next-image-forward-ref/index.test.ts
+1
-1
index.test.ts
test/e2e/next-script/index.test.ts
+2
-3
index.test.ts
test/e2e/no-eslint-warn-with-no-eslint-config/index.test.ts
+1
-1
index.test.ts
test/e2e/nonce-head-manager/index.test.ts
+1
-1
index.test.ts
test/e2e/og-api/index.test.ts
+1
-1
index.test.ts
test/e2e/postcss-config-cjs/index.test.ts
+1
-1
prerender-crawler.test.ts
test/e2e/prerender-crawler.test.ts
+1
-1
prerender-native-module.test.ts
test/e2e/prerender-native-module.test.ts
+1
-1
prerender.test.ts
test/e2e/prerender.test.ts
+1
-1
index.test.ts
test/e2e/proxy-request-with-middleware/test/index.test.ts
+1
-1
index.test.ts
test/e2e/reload-scroll-backforward-restoration/index.test.ts
+1
-1
index.test.ts
test/e2e/skip-trailing-slash-redirect/index.test.ts
+1
-1
index.test.ts
test/e2e/ssr-react-context/index.test.ts
+1
-1
index.test.ts
test/e2e/streaming-ssr/index.test.ts
+1
-1
index.test.ts
test/e2e/swc-warnings/index.test.ts
+1
-1
index.test.ts
test/e2e/switchable-runtime/index.test.ts
+1
-1
index.test.ts
test/e2e/trailingslash-with-rewrite/index.test.ts
+1
-1
index.test.ts
test/e2e/transpile-packages/index.test.ts
+1
-1
index.test.ts
test/e2e/type-module-interop/index.test.ts
+1
-1
index.test.ts
test/e2e/undici-fetch/index.test.ts
+1
-1
utils.ts
test/e2e/yarn-pnp/test/utils.ts
+1
-1
index.test.ts
test/production/app-dir-edge-runtime-with-wasm/index.test.ts
+1
-1
index.test.ts
...ir-hide-suppressed-error-during-next-export/index.test.ts
+1
-1
index.test.ts
test/production/app-dir-prefetch-non-iso-url/index.test.ts
+1
-1
index.test.ts
test/production/app-dir-prevent-304-caching/index.test.ts
+1
-1
index.test.ts
test/production/custom-error-500/index.test.ts
+1
-1
index.test.ts
...ependencies-can-use-env-vars-in-middlewares/index.test.ts
+1
-1
index.test.ts
test/production/disable-fallback-polyfills/index.test.ts
+1
-1
index.test.ts
test/production/edge-config-validations/index.test.ts
+1
-1
index.test.ts
test/production/edge-runtime-is-addressable/index.test.ts
+1
-1
index.test.ts
test/production/emit-decorator-metadata/index.test.ts
+2
-3
index.test.ts
test/production/enoent-during-require/index.test.ts
+1
-1
index.test.ts
test/production/escheck-output/index.test.ts
+1
-1
index.test.ts
test/production/eslint-plugin-deps/index.test.ts
+1
-1
index.test.ts
test/production/fallback-export-error/index.test.ts
+1
-1
index.test.ts
test/production/fatal-render-errror/index.test.ts
+1
-1
index.test.ts
.../production/generate-middleware-source-maps/index.test.ts
+1
-1
index.test.ts
test/production/jest/index.test.ts
+1
-1
new-link-behavior.test.ts
test/production/jest/new-link-behavior.test.ts
+1
-1
next-image-preload.test.ts
...uction/jest/next-image-preload/next-image-preload.test.ts
+1
-1
relay-jest.test.ts
test/production/jest/relay/relay-jest.test.ts
+1
-1
remove-react-properties-jest.test.ts
...ove-react-properties/remove-react-properties-jest.test.ts
+1
-1
transpile-packages.test.ts
test/production/jest/transpile-packages.test.ts
+1
-1
babel-unsupported.test.ts
test/production/next-font/babel-unsupported.test.ts
+1
-1
telemetry-old.test.ts
test/production/next-font/telemetry-old.test.ts
+1
-1
telemetry.test.ts
test/production/next-font/telemetry.test.ts
+1
-1
index.test.ts
test/production/pnpm-support/index.test.ts
+1
-1
index.test.ts
.../production/postcss-plugin-config-as-string/index.test.ts
+1
-1
index.test.ts
test/production/prerender-prefetch/index.test.ts
+1
-1
index.test.ts
...oduction/reading-request-body-in-middleware/index.test.ts
+1
-1
index.test.ts
test/production/standalone-mode/optimizecss/index.test.ts
+1
-1
required-server-files-app.test.ts
...e/required-server-files/required-server-files-app.test.ts
+1
-1
required-server-files-i18n.test.ts
.../required-server-files/required-server-files-i18n.test.ts
+1
-1
required-server-files-ppr.test.ts
...e/required-server-files/required-server-files-ppr.test.ts
+1
-1
required-server-files.test.ts
...-mode/required-server-files/required-server-files.test.ts
+1
-1
index.test.ts
test/production/standalone-mode/response-cache/index.test.ts
+1
-1
index.test.ts
test/production/standalone-mode/type-module/index.test.ts
+1
-1
index.test.ts
test/production/typescript-basic/index.test.ts
+1
-1
tsconfig.base.json
tsconfig.base.json
+7
-8
No files found.
test/development/api-cors-with-rewrite/index.test.ts
View file @
ed4d7723
import
{
createNext
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
fetchViaHTTP
}
from
'next-test-utils'
describe
(
'Rewritten API Requests should pass OPTIONS requests to the api function'
,
()
=>
{
...
...
test/development/app-dir/strict-mode-enabled-by-default/strict-mode-enabled-by-default.test.ts
View file @
ed4d7723
import
{
type
BrowserInterface
}
from
'
test/lib/browsers/base
'
import
{
type
BrowserInterface
}
from
'
next-webdriver
'
import
{
createNextDescribe
}
from
'e2e-utils'
import
{
check
}
from
'next-test-utils'
...
...
test/development/basic/gssp-ssr-change-reloading/test/index.test.ts
View file @
ed4d7723
...
...
@@ -4,7 +4,7 @@ import { join } from 'path'
import
webdriver
from
'next-webdriver'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
check
,
getRedboxHeader
,
hasRedbox
}
from
'next-test-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
const
installCheckVisible
=
(
browser
)
=>
{
return
browser
.
eval
(
`(function() {
...
...
test/development/basic/hmr.test.ts
View file @
ed4d7723
...
...
@@ -13,7 +13,7 @@ import {
waitFor
,
}
from
'next-test-utils'
import
{
createNext
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
outdent
}
from
'outdent'
describe
.
each
([[
''
],
[
'/docs'
]])(
...
...
test/development/basic/legacy-decorators.test.ts
View file @
ed4d7723
import
{
join
}
from
'path'
import
webdriver
from
'next-webdriver'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
check
}
from
'next-test-utils'
describe
(
'Legacy decorators SWC option'
,
()
=>
{
...
...
test/development/basic/misc.test.ts
View file @
ed4d7723
...
...
@@ -2,7 +2,7 @@ import url from 'url'
import
{
join
}
from
'path'
import
webdriver
from
'next-webdriver'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
fetchViaHTTP
,
renderViaHTTP
}
from
'next-test-utils'
describe
.
each
([[
''
],
[
'/docs'
]])(
...
...
test/development/basic/next-dynamic.test.ts
View file @
ed4d7723
...
...
@@ -3,7 +3,7 @@ import cheerio from 'cheerio'
import
webdriver
from
'next-webdriver'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
renderViaHTTP
,
check
,
hasRedbox
}
from
'next-test-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
const
customDocumentGipFiles
=
{
'pages/_document.js'
:
`
...
...
test/development/basic/project-directory-rename.test.ts
View file @
ed4d7723
import
fs
from
'fs-extra'
import
webdriver
from
'next-webdriver'
import
{
check
,
findPort
,
hasRedbox
}
from
'next-test-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
createNext
}
from
'e2e-utils'
import
stripAnsi
from
'strip-ansi'
...
...
test/development/basic/styled-components-disabled.test.ts
View file @
ed4d7723
import
{
join
}
from
'path'
import
webdriver
from
'next-webdriver'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
check
,
fetchViaHTTP
}
from
'next-test-utils'
// TODO: Somehow the warning doesn't show up with Turbopack, even though the transform is not enabled.
...
...
test/development/basic/tailwind-jit.test.ts
View file @
ed4d7723
import
{
join
}
from
'path'
import
webdriver
from
'next-webdriver'
import
webdriver
,
{
BrowserInterface
}
from
'next-webdriver'
import
{
FileRef
,
nextTestSetup
}
from
'e2e-utils'
import
{
check
,
shouldRunTurboDevTest
}
from
'next-test-utils'
import
{
BrowserInterface
}
from
'test/lib/browsers/base'
// [TODO]: It is unclear why turbopack takes longer to run this test
// remove once it's fixed
...
...
test/development/client-dev-overlay/index.test.ts
View file @
ed4d7723
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
webdriver
from
'next-webdriver'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
webdriver
,
{
BrowserInterface
}
from
'next-webdriver'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
join
}
from
'path'
import
{
BrowserInterface
}
from
'test/lib/browsers/base'
import
{
check
}
from
'next-test-utils'
describe
(
'client-dev-overlay'
,
()
=>
{
...
...
test/development/correct-tsconfig-defaults/index.test.ts
View file @
ed4d7723
import
{
createNext
}
from
'e2e-utils'
import
{
check
}
from
'next-test-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
describe
(
'correct tsconfig.json defaults'
,
()
=>
{
let
next
:
NextInstance
...
...
test/development/dotenv-default-expansion/index.test.ts
View file @
ed4d7723
import
{
createNext
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
webdriver
from
'next-webdriver'
describe
(
'Dotenv default expansion'
,
()
=>
{
...
...
test/development/gssp-notfound/index.test.ts
View file @
ed4d7723
import
{
createNext
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
waitFor
}
from
'next-test-utils'
import
webdriver
from
'next-webdriver'
...
...
test/development/jsconfig-path-reloading/index.test.ts
View file @
ed4d7723
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
check
,
hasRedbox
,
...
...
test/development/next-font/build-errors.test.ts
View file @
ed4d7723
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
join
}
from
'path'
import
webdriver
from
'next-webdriver'
import
{
getRedboxSource
,
hasRedbox
}
from
'next-test-utils'
...
...
test/development/next-font/font-loader-in-document-error.test.ts
View file @
ed4d7723
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
getRedboxSource
,
hasRedbox
}
from
'next-test-utils'
import
webdriver
from
'next-webdriver'
import
{
join
}
from
'path'
...
...
test/development/project-directory-with-styled-jsx-suffix/index.test.ts
View file @
ed4d7723
import
{
createNext
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
renderViaHTTP
}
from
'next-test-utils'
describe
(
'project directory with styled-jsx suffix'
,
()
=>
{
...
...
test/development/tsconfig-path-reloading/index.test.ts
View file @
ed4d7723
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
check
,
hasRedbox
,
...
...
test/development/typescript-auto-install/index.test.ts
View file @
ed4d7723
import
{
createNext
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
check
,
renderViaHTTP
}
from
'next-test-utils'
import
webdriver
from
'next-webdriver'
import
stripAnsi
from
'strip-ansi'
...
...
test/development/webpack-issuer-deprecation-warning/index.test.ts
View file @
ed4d7723
import
{
createNext
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
renderViaHTTP
}
from
'next-test-utils'
// Skip on Turbopack because it's not supported
...
...
test/e2e/404-page-router/index.test.ts
View file @
ed4d7723
import
path
from
'path'
import
fs
from
'fs-extra'
import
webdriver
from
'next-webdriver'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
createNext
,
FileRef
,
type
NextInstance
}
from
'e2e-utils'
import
{
check
}
from
'next-test-utils'
import
{
type
NextInstance
}
from
'test/lib/next-modes/base'
const
pathnames
=
{
'/404'
:
[
'/not/a/real/page?with=query'
,
'/not/a/real/page'
],
...
...
test/e2e/app-dir/app-a11y/index.test.ts
View file @
ed4d7723
import
{
createNextDescribe
}
from
'e2e-utils'
import
{
check
}
from
'next-test-utils'
import
type
{
BrowserInterface
}
from
'
test/lib/browsers/base
'
import
type
{
BrowserInterface
}
from
'
next-webdriver
'
createNextDescribe
(
'app a11y features'
,
...
...
test/e2e/app-dir/app-client-cache/client-cache.test.ts
View file @
ed4d7723
import
{
createNextDescribe
}
from
'e2e-utils'
import
{
check
}
from
'next-test-utils'
import
{
BrowserInterface
}
from
'
test/lib/browsers/base
'
import
{
BrowserInterface
}
from
'
next-webdriver
'
import
{
browserConfigWithFixedTime
,
createRequestsListener
,
...
...
test/e2e/app-dir/app-client-cache/test-utils.ts
View file @
ed4d7723
import
{
BrowserInterface
}
from
'
test/lib/browsers/base
'
import
{
BrowserInterface
}
from
'
next-webdriver
'
import
type
{
Request
}
from
'playwright'
export
const
getPathname
=
(
url
:
string
)
=>
{
...
...
test/e2e/app-dir/app/useReportWebVitals.test.ts
View file @
ed4d7723
import
{
createNext
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
check
}
from
'next-test-utils'
describe
(
'useReportWebVitals hook'
,
()
=>
{
...
...
test/e2e/app-dir/app/vercel-speed-insights.test.ts
View file @
ed4d7723
import
{
createNext
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
check
}
from
'next-test-utils'
describe
(
'vercel speed insights'
,
()
=>
{
...
...
test/e2e/app-dir/create-root-layout/create-root-layout.test.ts
View file @
ed4d7723
import
path
from
'path'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
check
}
from
'next-test-utils'
import
stripAnsi
from
'strip-ansi'
;(
process
.
env
.
TURBOPACK
?
describe
.
skip
:
describe
)(
...
...
test/e2e/app-dir/interoperability-with-pages/navigation.test.ts
View file @
ed4d7723
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
webdriver
from
'next-webdriver'
describe
(
'navigation between pages and app dir'
,
()
=>
{
...
...
test/e2e/app-dir/metadata/metadata.test.ts
View file @
ed4d7723
import
type
{
BrowserInterface
}
from
'
test/lib/browsers/base
'
import
type
{
BrowserInterface
}
from
'
next-webdriver
'
import
{
createNextDescribe
}
from
'e2e-utils'
import
{
check
}
from
'next-test-utils'
import
fs
from
'fs/promises'
...
...
test/e2e/app-dir/use-selected-layout-segment-s/use-selected-layout-segment-s.test.ts
View file @
ed4d7723
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
webdriver
from
'next-webdriver'
import
{
check
}
from
'next-test-utils'
...
...
test/e2e/basepath-trailing-slash.test.ts
View file @
ed4d7723
import
{
join
}
from
'path'
import
webdriver
from
'next-webdriver'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
hasRedbox
}
from
'next-test-utils'
describe
(
'basePath + trailingSlash'
,
()
=>
{
...
...
test/e2e/basepath.test.ts
View file @
ed4d7723
...
...
@@ -4,7 +4,7 @@ import assert from 'assert'
import
cheerio
from
'cheerio'
import
webdriver
from
'next-webdriver'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
check
,
fetchViaHTTP
,
...
...
test/e2e/browserslist-extends/index.test.ts
View file @
ed4d7723
import
{
createNext
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
renderViaHTTP
}
from
'next-test-utils'
describe
(
'browserslist-extends'
,
()
=>
{
...
...
test/e2e/browserslist/browserslist.test.ts
View file @
ed4d7723
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
renderViaHTTP
,
fetchViaHTTP
}
from
'next-test-utils'
import
path
from
'path'
import
cheerio
from
'cheerio'
...
...
test/e2e/browserslist/default-target.test.ts
View file @
ed4d7723
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
renderViaHTTP
,
fetchViaHTTP
}
from
'next-test-utils'
import
path
from
'path'
import
cheerio
from
'cheerio'
...
...
test/e2e/config-promise-export/async-function.test.ts
View file @
ed4d7723
import
{
createNext
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
renderViaHTTP
}
from
'next-test-utils'
describe
(
'async export'
,
()
=>
{
...
...
test/e2e/config-promise-export/promise.test.ts
View file @
ed4d7723
import
{
createNext
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
renderViaHTTP
}
from
'next-test-utils'
describe
(
'promise export'
,
()
=>
{
...
...
test/e2e/edge-api-endpoints-can-receive-body/index.test.ts
View file @
ed4d7723
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
fetchViaHTTP
}
from
'next-test-utils'
import
path
from
'path'
...
...
test/e2e/edge-async-local-storage/index.test.ts
View file @
ed4d7723
/* eslint-disable jest/valid-expect-in-promise */
import
{
createNext
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
fetchViaHTTP
}
from
'next-test-utils'
describe
(
'edge api can use async local storage'
,
()
=>
{
...
...
test/e2e/edge-can-read-request-body/index.test.ts
View file @
ed4d7723
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
fetchViaHTTP
,
renderViaHTTP
}
from
'next-test-utils'
import
path
from
'path'
import
type
{
Response
}
from
'node-fetch'
...
...
test/e2e/edge-can-use-wasm-files/index.test.ts
View file @
ed4d7723
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
fetchViaHTTP
}
from
'next-test-utils'
import
path
from
'path'
import
fs
from
'fs-extra'
...
...
test/e2e/edge-compiler-can-import-blob-assets/index.test.ts
View file @
ed4d7723
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
fetchViaHTTP
,
renderViaHTTP
}
from
'next-test-utils'
import
path
from
'path'
import
{
promises
as
fs
}
from
'fs'
...
...
test/e2e/edge-compiler-module-exports-preference/index.test.ts
View file @
ed4d7723
import
{
createNext
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
fetchViaHTTP
,
shouldRunTurboDevTest
}
from
'next-test-utils'
describe
(
'Edge compiler module exports preference'
,
()
=>
{
...
...
test/e2e/edge-configurable-runtime/index.test.ts
View file @
ed4d7723
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
fetchViaHTTP
,
File
,
nextBuild
}
from
'next-test-utils'
import
{
join
}
from
'path'
import
stripAnsi
from
'strip-ansi'
...
...
test/e2e/getserversideprops/test/index.test.ts
View file @
ed4d7723
...
...
@@ -14,7 +14,7 @@ import {
}
from
'next-test-utils'
import
{
join
}
from
'path'
import
webdriver
from
'next-webdriver'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
const
appDir
=
join
(
__dirname
,
'../app'
)
...
...
test/e2e/handle-non-hoisted-swc-helpers/index.test.ts
View file @
ed4d7723
import
{
createNext
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
renderViaHTTP
}
from
'next-test-utils'
describe
(
'handle-non-hoisted-swc-helpers'
,
()
=>
{
...
...
test/e2e/i18n-api-support/index.test.ts
View file @
ed4d7723
import
{
createNext
}
from
'e2e-utils'
import
{
fetchViaHTTP
}
from
'next-test-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
describe
(
'i18n API support'
,
()
=>
{
let
next
:
NextInstance
...
...
test/e2e/i18n-data-fetching-redirect/index.test.ts
View file @
ed4d7723
import
{
join
}
from
'path'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
check
}
from
'next-test-utils'
import
webdriver
from
'next-webdriver'
...
...
test/e2e/i18n-ignore-redirect-source-locale/redirects-with-basepath.test.ts
View file @
ed4d7723
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
check
}
from
'next-test-utils'
import
{
join
}
from
'path'
import
webdriver
from
'next-webdriver'
...
...
test/e2e/i18n-ignore-redirect-source-locale/redirects.test.ts
View file @
ed4d7723
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
check
}
from
'next-test-utils'
import
{
join
}
from
'path'
import
webdriver
from
'next-webdriver'
...
...
test/e2e/i18n-ignore-rewrite-source-locale/rewrites-with-basepath.test.ts
View file @
ed4d7723
import
{
createNext
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
fetchViaHTTP
,
renderViaHTTP
}
from
'next-test-utils'
import
path
from
'path'
import
fs
from
'fs-extra'
...
...
test/e2e/i18n-ignore-rewrite-source-locale/rewrites.test.ts
View file @
ed4d7723
import
{
createNext
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
fetchViaHTTP
,
renderViaHTTP
}
from
'next-test-utils'
import
path
from
'path'
import
fs
from
'fs-extra'
...
...
test/e2e/ignore-invalid-popstateevent/with-i18n.test.ts
View file @
ed4d7723
import
{
join
}
from
'path'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
check
,
waitFor
}
from
'next-test-utils'
import
webdriver
from
'next-webdriver'
import
webdriver
,
{
BrowserInterface
}
from
'next-webdriver'
import
type
{
HistoryState
}
from
'../../../packages/next/src/shared/lib/router/router'
import
{
BrowserInterface
}
from
'test/lib/browsers/base'
const
emitPopsStateEvent
=
(
browser
:
BrowserInterface
,
state
:
HistoryState
)
=>
browser
.
eval
(
...
...
test/e2e/ignore-invalid-popstateevent/without-i18n.test.ts
View file @
ed4d7723
import
{
join
}
from
'path'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
check
,
waitFor
}
from
'next-test-utils'
import
webdriver
from
'next-webdriver'
import
webdriver
,
{
BrowserInterface
}
from
'next-webdriver'
import
type
{
HistoryState
}
from
'../../../packages/next/src/shared/lib/router/router'
import
{
BrowserInterface
}
from
'test/lib/browsers/base'
const
emitPopsStateEvent
=
(
browser
:
BrowserInterface
,
state
:
HistoryState
)
=>
browser
.
eval
(
...
...
test/e2e/link-with-api-rewrite/index.test.ts
View file @
ed4d7723
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
check
}
from
'next-test-utils'
import
{
join
}
from
'path'
import
webdriver
from
'next-webdriver'
...
...
test/e2e/manual-client-base-path/index.test.ts
View file @
ed4d7723
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
httpProxy
from
'http-proxy'
import
{
join
}
from
'path'
import
http
from
'http'
...
...
test/e2e/middleware-base-path/test/index.test.ts
View file @
ed4d7723
...
...
@@ -4,7 +4,7 @@ import cheerio from 'cheerio'
import
webdriver
from
'next-webdriver'
import
{
fetchViaHTTP
}
from
'next-test-utils'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
describe
(
'Middleware base tests'
,
()
=>
{
let
next
:
NextInstance
...
...
test/e2e/middleware-custom-matchers-basepath/test/index.test.ts
View file @
ed4d7723
...
...
@@ -5,7 +5,7 @@ import { join } from 'path'
import
webdriver
from
'next-webdriver'
import
{
fetchViaHTTP
}
from
'next-test-utils'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
const
itif
=
(
condition
:
boolean
)
=>
(
condition
?
it
:
it
.
skip
)
...
...
test/e2e/middleware-custom-matchers-i18n/test/index.test.ts
View file @
ed4d7723
...
...
@@ -5,7 +5,7 @@ import { join } from 'path'
import
webdriver
from
'next-webdriver'
import
{
fetchViaHTTP
}
from
'next-test-utils'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
const
itif
=
(
condition
:
boolean
)
=>
(
condition
?
it
:
it
.
skip
)
...
...
test/e2e/middleware-custom-matchers/test/index.test.ts
View file @
ed4d7723
...
...
@@ -4,7 +4,7 @@ import { join } from 'path'
import
webdriver
from
'next-webdriver'
import
{
fetchViaHTTP
}
from
'next-test-utils'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
const
itif
=
(
condition
:
boolean
)
=>
(
condition
?
it
:
it
.
skip
)
...
...
test/e2e/middleware-dynamic-basepath-matcher/test/index.test.ts
View file @
ed4d7723
...
...
@@ -5,7 +5,7 @@ import { join } from 'path'
import
webdriver
from
'next-webdriver'
import
{
check
,
fetchViaHTTP
}
from
'next-test-utils'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
const
itif
=
(
condition
:
boolean
)
=>
(
condition
?
it
:
it
.
skip
)
...
...
test/e2e/middleware-fetches-with-any-http-method/index.test.ts
View file @
ed4d7723
import
{
createNext
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
fetchViaHTTP
}
from
'next-test-utils'
describe
(
'Middleware fetches with any HTTP method'
,
()
=>
{
...
...
test/e2e/middleware-fetches-with-body/index.test.ts
View file @
ed4d7723
import
{
createNext
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
fetchViaHTTP
}
from
'next-test-utils'
describe
(
'Middleware fetches with body'
,
()
=>
{
...
...
test/e2e/middleware-general/test/index.test.ts
View file @
ed4d7723
...
...
@@ -3,7 +3,7 @@
import
fs
from
'fs-extra'
import
{
join
}
from
'path'
import
webdriver
from
'next-webdriver'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
check
,
fetchViaHTTP
,
...
...
test/e2e/middleware-matcher/index.test.ts
View file @
ed4d7723
/* eslint-disable jest/no-identical-title */
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
check
,
fetchViaHTTP
}
from
'next-test-utils'
import
{
join
}
from
'path'
import
webdriver
from
'next-webdriver'
...
...
test/e2e/middleware-redirects/test/index.test.ts
View file @
ed4d7723
...
...
@@ -4,7 +4,7 @@ import { join } from 'path'
import
cheerio
from
'cheerio'
import
webdriver
from
'next-webdriver'
import
{
check
,
fetchViaHTTP
}
from
'next-test-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
describe
(
'Middleware Redirect'
,
()
=>
{
...
...
test/e2e/middleware-request-header-overrides/test/index.test.ts
View file @
ed4d7723
/* eslint-env jest */
import
{
join
}
from
'path'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
fetchViaHTTP
}
from
'next-test-utils'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
cheerio
from
'cheerio'
...
...
test/e2e/middleware-responses/test/index.test.ts
View file @
ed4d7723
...
...
@@ -2,7 +2,7 @@
import
{
join
}
from
'path'
import
{
fetchViaHTTP
}
from
'next-test-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
describe
(
'Middleware Responses'
,
()
=>
{
...
...
test/e2e/middleware-rewrites/test/index.test.ts
View file @
ed4d7723
...
...
@@ -3,7 +3,7 @@
import
{
join
}
from
'path'
import
cheerio
from
'cheerio'
import
webdriver
from
'next-webdriver'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
check
,
fetchViaHTTP
,
retry
}
from
'next-test-utils'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
escapeStringRegexp
from
'escape-string-regexp'
...
...
test/e2e/middleware-shallow-link/index.test.ts
View file @
ed4d7723
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
webdriver
from
'next-webdriver'
import
{
join
}
from
'path'
import
{
check
}
from
'next-test-utils'
...
...
test/e2e/middleware-trailing-slash/test/index.test.ts
View file @
ed4d7723
...
...
@@ -4,7 +4,7 @@ import fs from 'fs-extra'
import
{
join
}
from
'path'
import
webdriver
from
'next-webdriver'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
check
,
fetchViaHTTP
,
waitFor
}
from
'next-test-utils'
describe
(
'Middleware Runtime trailing slash'
,
()
=>
{
...
...
test/e2e/new-link-behavior/child-a-tag-error.test.ts
View file @
ed4d7723
import
{
createNext
,
FileRef
,
isNextDev
}
from
'e2e-utils'
import
{
getRedboxDescription
,
hasRedbox
}
from
'next-test-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
webdriver
from
'next-webdriver'
import
path
from
'path'
...
...
test/e2e/new-link-behavior/index.test.ts
View file @
ed4d7723
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
renderViaHTTP
}
from
'next-test-utils'
import
webdriver
from
'next-webdriver'
import
cheerio
from
'cheerio'
...
...
test/e2e/new-link-behavior/material-ui.test.ts
View file @
ed4d7723
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
webdriver
from
'next-webdriver'
import
path
from
'path'
...
...
test/e2e/new-link-behavior/stitches.test.ts
View file @
ed4d7723
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
webdriver
from
'next-webdriver'
import
path
from
'path'
...
...
test/e2e/new-link-behavior/typescript.test.ts
View file @
ed4d7723
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
renderViaHTTP
}
from
'next-test-utils'
import
cheerio
from
'cheerio'
import
path
from
'path'
...
...
test/e2e/next-font/basepath.test.ts
View file @
ed4d7723
import
cheerio
from
'cheerio'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
renderViaHTTP
}
from
'next-test-utils'
import
{
join
}
from
'path'
...
...
test/e2e/next-font/google-fetch-error.test.ts
View file @
ed4d7723
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
join
}
from
'path'
import
webdriver
from
'next-webdriver'
...
...
test/e2e/next-font/index.test.ts
View file @
ed4d7723
import
cheerio
from
'cheerio'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
renderViaHTTP
,
shouldRunTurboDevTest
}
from
'next-test-utils'
import
{
join
}
from
'path'
import
webdriver
from
'next-webdriver'
...
...
test/e2e/next-font/with-font-declarations-file.test.ts
View file @
ed4d7723
import
cheerio
from
'cheerio'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
renderViaHTTP
}
from
'next-test-utils'
import
{
join
}
from
'path'
...
...
test/e2e/next-font/without-preloaded-fonts.test.ts
View file @
ed4d7723
import
cheerio
from
'cheerio'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
renderViaHTTP
}
from
'next-test-utils'
import
{
join
}
from
'path'
...
...
test/e2e/next-head/index.test.ts
View file @
ed4d7723
...
...
@@ -2,7 +2,7 @@ import { createNext, FileRef } from 'e2e-utils'
import
{
renderViaHTTP
}
from
'next-test-utils'
import
cheerio
from
'cheerio'
import
webdriver
from
'next-webdriver'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
join
}
from
'path'
describe
(
'next/head'
,
()
=>
{
...
...
test/e2e/next-image-forward-ref/index.test.ts
View file @
ed4d7723
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
waitFor
}
from
'next-test-utils'
import
path
from
'path'
import
webdriver
from
'next-webdriver'
...
...
test/e2e/next-script/index.test.ts
View file @
ed4d7723
import
webdriver
from
'next-webdriver'
import
webdriver
,
{
BrowserInterface
}
from
'next-webdriver'
import
{
createNext
}
from
'e2e-utils'
import
{
NextInstance
}
from
'test/lib/next-modes/base'
import
{
BrowserInterface
}
from
'test/lib/browsers/base'
import
{
NextInstance
}
from
'e2e-utils'
import
{
check
}
from
'next-test-utils'
describe
(
'beforeInteractive in document Head'
,
()
=>
{
...
...
test/e2e/no-eslint-warn-with-no-eslint-config/index.test.ts
View file @
ed4d7723
import
{
createNext
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
renderViaHTTP
}
from
'next-test-utils'
describe
(
'no-eslint-warn-with-no-eslint-config'
,
()
=>
{
...
...
test/e2e/nonce-head-manager/index.test.ts
View file @
ed4d7723
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
check
}
from
'next-test-utils'
import
webdriver
from
'next-webdriver'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
join
}
from
'path'
describe
(
'nonce head manager'
,
()
=>
{
...
...
test/e2e/og-api/index.test.ts
View file @
ed4d7723
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
fetchViaHTTP
,
renderViaHTTP
}
from
'next-test-utils'
import
fs
from
'fs-extra'
import
{
join
}
from
'path'
...
...
test/e2e/postcss-config-cjs/index.test.ts
View file @
ed4d7723
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
join
}
from
'path'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
webdriver
from
'next-webdriver'
describe
(
'postcss-config-cjs'
,
()
=>
{
...
...
test/e2e/prerender-crawler.test.ts
View file @
ed4d7723
import
{
createNext
}
from
'e2e-utils'
import
{
renderViaHTTP
}
from
'next-test-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
describe
(
'Prerender crawler handling'
,
()
=>
{
let
next
:
NextInstance
...
...
test/e2e/prerender-native-module.test.ts
View file @
ed4d7723
import
path
from
'path'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
webdriver
from
'next-webdriver'
describe
(
'prerender native module'
,
()
=>
{
...
...
test/e2e/prerender.test.ts
View file @
ed4d7723
...
...
@@ -4,7 +4,7 @@ import cheerio from 'cheerio'
import
{
join
,
sep
}
from
'path'
import
escapeRegex
from
'escape-string-regexp'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
check
,
fetchViaHTTP
,
...
...
test/e2e/proxy-request-with-middleware/test/index.test.ts
View file @
ed4d7723
...
...
@@ -2,7 +2,7 @@
import
{
join
}
from
'path'
import
{
fetchViaHTTP
}
from
'next-test-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
describe
(
'Requests not effected when middleware used'
,
()
=>
{
...
...
test/e2e/reload-scroll-backforward-restoration/index.test.ts
View file @
ed4d7723
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
check
}
from
'next-test-utils'
import
{
join
}
from
'path'
import
webdriver
from
'next-webdriver'
...
...
test/e2e/skip-trailing-slash-redirect/index.test.ts
View file @
ed4d7723
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
check
,
fetchViaHTTP
}
from
'next-test-utils'
import
{
join
}
from
'path'
import
cheerio
from
'cheerio'
...
...
test/e2e/ssr-react-context/index.test.ts
View file @
ed4d7723
import
{
join
}
from
'path'
import
{
renderViaHTTP
,
check
}
from
'next-test-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
describe
(
'React Context'
,
()
=>
{
...
...
test/e2e/streaming-ssr/index.test.ts
View file @
ed4d7723
import
{
join
}
from
'path'
import
{
createNext
,
createNextDescribe
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
check
,
fetchViaHTTP
,
...
...
test/e2e/swc-warnings/index.test.ts
View file @
ed4d7723
import
{
createNext
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
renderViaHTTP
}
from
'next-test-utils'
// Tests Babel, not needed for Turbopack
...
...
test/e2e/switchable-runtime/index.test.ts
View file @
ed4d7723
/* eslint-env jest */
import
webdriver
from
'next-webdriver'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
check
,
fetchViaHTTP
,
renderViaHTTP
,
waitFor
}
from
'next-test-utils'
function
splitLines
(
text
)
{
...
...
test/e2e/trailingslash-with-rewrite/index.test.ts
View file @
ed4d7723
import
{
join
}
from
'path'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
fetchViaHTTP
}
from
'next-test-utils'
describe
(
'trailingSlash:true with rewrites and getStaticProps'
,
()
=>
{
...
...
test/e2e/transpile-packages/index.test.ts
View file @
ed4d7723
import
path
from
'path'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
webdriver
from
'next-webdriver'
import
{
shouldRunTurboDevTest
}
from
'../../lib/next-test-utils'
...
...
test/e2e/type-module-interop/index.test.ts
View file @
ed4d7723
import
{
createNext
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
hasRedbox
,
renderViaHTTP
}
from
'next-test-utils'
import
webdriver
from
'next-webdriver'
import
cheerio
from
'cheerio'
...
...
test/e2e/undici-fetch/index.test.ts
View file @
ed4d7723
import
{
createNext
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
fetchViaHTTP
}
from
'next-test-utils'
describe
(
'undici fetch'
,
()
=>
{
...
...
test/e2e/yarn-pnp/test/utils.ts
View file @
ed4d7723
...
...
@@ -2,7 +2,7 @@ import fs from 'fs-extra'
import
{
join
}
from
'path'
import
{
fetchViaHTTP
}
from
'next-test-utils'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
jest
.
setTimeout
(
2
*
60
*
1000
)
...
...
test/production/app-dir-edge-runtime-with-wasm/index.test.ts
View file @
ed4d7723
import
path
from
'path'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
renderViaHTTP
}
from
'next-test-utils'
const
files
=
{
...
...
test/production/app-dir-hide-suppressed-error-during-next-export/index.test.ts
View file @
ed4d7723
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
join
}
from
'path'
describe
(
'app-dir-hide-suppressed-error-during-next-export'
,
()
=>
{
...
...
test/production/app-dir-prefetch-non-iso-url/index.test.ts
View file @
ed4d7723
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
join
}
from
'path'
import
{
BrowserInterface
}
from
'../../lib/browsers/base'
import
webdriver
from
'next-webdriver'
...
...
test/production/app-dir-prevent-304-caching/index.test.ts
View file @
ed4d7723
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
join
}
from
'path'
import
{
fetchViaHTTP
,
waitFor
}
from
'next-test-utils'
...
...
test/production/custom-error-500/index.test.ts
View file @
ed4d7723
import
{
createNext
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
check
,
renderViaHTTP
}
from
'next-test-utils'
describe
(
'custom-error-500'
,
()
=>
{
...
...
test/production/dependencies-can-use-env-vars-in-middlewares/index.test.ts
View file @
ed4d7723
import
{
createNext
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
fetchViaHTTP
}
from
'next-test-utils'
describe
(
'dependencies can use env vars in middlewares'
,
()
=>
{
...
...
test/production/disable-fallback-polyfills/index.test.ts
View file @
ed4d7723
import
{
createNext
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
describe
(
'Disable fallback polyfills'
,
()
=>
{
let
next
:
NextInstance
...
...
test/production/edge-config-validations/index.test.ts
View file @
ed4d7723
import
{
createNext
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
describe
(
'Edge config validations'
,
()
=>
{
let
next
:
NextInstance
...
...
test/production/edge-runtime-is-addressable/index.test.ts
View file @
ed4d7723
import
{
createNext
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
fetchViaHTTP
}
from
'next-test-utils'
import
fs
from
'fs-extra'
import
path
from
'path'
...
...
test/production/emit-decorator-metadata/index.test.ts
View file @
ed4d7723
import
{
join
}
from
'path'
import
webdriver
from
'next-webdriver'
import
webdriver
,
{
BrowserInterface
}
from
'next-webdriver'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'test/lib/next-modes/base'
import
{
BrowserInterface
}
from
'test/lib/browsers/base'
import
{
NextInstance
}
from
'e2e-utils'
import
{
fetchViaHTTP
}
from
'next-test-utils'
describe
(
'emitDecoratorMetadata SWC option'
,
()
=>
{
...
...
test/production/enoent-during-require/index.test.ts
View file @
ed4d7723
import
{
createNext
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
check
,
renderViaHTTP
}
from
'next-test-utils'
describe
(
'ENOENT during require'
,
()
=>
{
...
...
test/production/escheck-output/index.test.ts
View file @
ed4d7723
import
{
createNext
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
describe
(
'ES Check .next output'
,
()
=>
{
let
next
:
NextInstance
...
...
test/production/eslint-plugin-deps/index.test.ts
View file @
ed4d7723
import
{
createNext
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
renderViaHTTP
}
from
'next-test-utils'
describe
(
'eslint plugin deps'
,
()
=>
{
...
...
test/production/fallback-export-error/index.test.ts
View file @
ed4d7723
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
join
}
from
'path'
describe
(
'fallback export error'
,
()
=>
{
...
...
test/production/fatal-render-errror/index.test.ts
View file @
ed4d7723
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
check
,
renderViaHTTP
,
waitFor
}
from
'next-test-utils'
import
webdriver
from
'next-webdriver'
import
{
join
}
from
'path'
...
...
test/production/generate-middleware-source-maps/index.test.ts
View file @
ed4d7723
import
{
createNext
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
fs
from
'fs-extra'
import
path
from
'path'
...
...
test/production/jest/index.test.ts
View file @
ed4d7723
import
{
createNext
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
renderViaHTTP
}
from
'next-test-utils'
describe
(
'next/jest'
,
()
=>
{
...
...
test/production/jest/new-link-behavior.test.ts
View file @
ed4d7723
import
{
createNext
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
describe
(
'next/jest newLinkBehavior'
,
()
=>
{
let
next
:
NextInstance
...
...
test/production/jest/next-image-preload/next-image-preload.test.ts
View file @
ed4d7723
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
path
from
'path'
import
execa
from
'execa'
...
...
test/production/jest/relay/relay-jest.test.ts
View file @
ed4d7723
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
path
from
'path'
const
appDir
=
path
.
join
(
__dirname
,
'app'
)
...
...
test/production/jest/remove-react-properties/remove-react-properties-jest.test.ts
View file @
ed4d7723
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
renderViaHTTP
}
from
'next-test-utils'
import
path
from
'path'
...
...
test/production/jest/transpile-packages.test.ts
View file @
ed4d7723
import
{
createNext
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
renderViaHTTP
}
from
'next-test-utils'
describe
(
'next/jest'
,
()
=>
{
let
next
:
NextInstance
...
...
test/production/next-font/babel-unsupported.test.ts
View file @
ed4d7723
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
join
}
from
'path'
describe
(
'@next/fon babel unsupported'
,
()
=>
{
...
...
test/production/next-font/telemetry-old.test.ts
View file @
ed4d7723
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
findAllTelemetryEvents
}
from
'next-test-utils'
import
{
join
}
from
'path'
...
...
test/production/next-font/telemetry.test.ts
View file @
ed4d7723
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
findAllTelemetryEvents
}
from
'next-test-utils'
import
{
join
}
from
'path'
...
...
test/production/pnpm-support/index.test.ts
View file @
ed4d7723
...
...
@@ -3,7 +3,7 @@ import path from 'path'
import
fs
from
'fs-extra'
import
webdriver
from
'next-webdriver'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
findPort
,
initNextServerScript
,
...
...
test/production/postcss-plugin-config-as-string/index.test.ts
View file @
ed4d7723
import
{
createNext
}
from
'e2e-utils'
import
{
renderViaHTTP
}
from
'next-test-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
describe
(
'PostCSS plugin config as string'
,
()
=>
{
let
next
:
NextInstance
...
...
test/production/prerender-prefetch/index.test.ts
View file @
ed4d7723
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
check
,
...
...
test/production/reading-request-body-in-middleware/index.test.ts
View file @
ed4d7723
import
{
createNext
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
fetchViaHTTP
}
from
'next-test-utils'
describe
(
'reading request body in middleware'
,
()
=>
{
...
...
test/production/standalone-mode/optimizecss/index.test.ts
View file @
ed4d7723
import
{
createNext
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
renderViaHTTP
}
from
'next-test-utils'
describe
(
'standalone mode and optimizeCss'
,
()
=>
{
...
...
test/production/standalone-mode/required-server-files/required-server-files-app.test.ts
View file @
ed4d7723
...
...
@@ -3,7 +3,7 @@ import fs from 'fs-extra'
import
{
join
}
from
'path'
import
cheerio
from
'cheerio'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
fetchViaHTTP
,
findPort
,
...
...
test/production/standalone-mode/required-server-files/required-server-files-i18n.test.ts
View file @
ed4d7723
...
...
@@ -3,7 +3,7 @@ import fs from 'fs-extra'
import
cheerio
from
'cheerio'
import
{
join
}
from
'path'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
check
,
fetchViaHTTP
,
...
...
test/production/standalone-mode/required-server-files/required-server-files-ppr.test.ts
View file @
ed4d7723
...
...
@@ -3,7 +3,7 @@ import fs from 'fs-extra'
import
{
join
}
from
'path'
import
cheerio
from
'cheerio'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
fetchViaHTTP
,
findPort
,
...
...
test/production/standalone-mode/required-server-files/required-server-files.test.ts
View file @
ed4d7723
...
...
@@ -4,7 +4,7 @@ import cheerio from 'cheerio'
import
{
join
}
from
'path'
import
{
nanoid
}
from
'nanoid'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
check
,
fetchViaHTTP
,
...
...
test/production/standalone-mode/response-cache/index.test.ts
View file @
ed4d7723
...
...
@@ -3,7 +3,7 @@ import fs from 'fs-extra'
import
{
join
}
from
'path'
import
cheerio
from
'cheerio'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
killApp
,
findPort
,
...
...
test/production/standalone-mode/type-module/index.test.ts
View file @
ed4d7723
import
{
createNext
}
from
'e2e-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
import
{
join
}
from
'path'
import
fs
from
'fs-extra'
import
{
...
...
test/production/typescript-basic/index.test.ts
View file @
ed4d7723
import
path
from
'path'
import
{
createNext
,
FileRef
}
from
'e2e-utils'
import
{
renderViaHTTP
}
from
'next-test-utils'
import
{
NextInstance
}
from
'
test/lib/next-modes/base
'
import
{
NextInstance
}
from
'
e2e-utils
'
describe
(
'TypeScript basic'
,
()
=>
{
let
next
:
NextInstance
...
...
tsconfig.base.json
View file @
ed4d7723
...
...
@@ -9,16 +9,15 @@
"target"
:
"ESNext"
,
"esModuleInterop"
:
true
,
"moduleResolution"
:
"node"
,
"baseUrl"
:
"."
,
"types"
:
[
"react"
,
"jest"
,
"node"
,
"trusted-types"
,
"jest-extended"
],
"paths"
:
{
"development-sandbox"
:
[
"test/lib/development-sandbox"
],
"next-test-utils"
:
[
"test/lib/next-test-utils"
],
"amp-test-utils"
:
[
"test/lib/amp-test-utils"
],
"next-webdriver"
:
[
"test/lib/next-webdriver"
],
"e2e-utils"
:
[
"test/lib/e2e-utils"
],
"test-data-service/*"
:
[
"test/lib/test-data-service/*"
],
"test-log"
:
[
"test/lib/test-log"
]
"development-sandbox"
:
[
"
./
test/lib/development-sandbox"
],
"next-test-utils"
:
[
"
./
test/lib/next-test-utils"
],
"amp-test-utils"
:
[
"
./
test/lib/amp-test-utils"
],
"next-webdriver"
:
[
"
./
test/lib/next-webdriver"
],
"e2e-utils"
:
[
"
./
test/lib/e2e-utils"
],
"test-data-service/*"
:
[
"
./
test/lib/test-data-service/*"
],
"test-log"
:
[
"
./
test/lib/test-log"
]
}
}
}
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