Stop using baseUrl in root tsconfig (#64117)

This commit is contained in:
Sebastian Silbermann 2024-04-09 00:25:43 +02:00 committed by GitHub
parent 2d99073b87
commit ed4d772359
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
142 changed files with 153 additions and 161 deletions

View file

@ -1,5 +1,5 @@
import { createNext } from 'e2e-utils' 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 { fetchViaHTTP } from 'next-test-utils'
describe('Rewritten API Requests should pass OPTIONS requests to the api function', () => { describe('Rewritten API Requests should pass OPTIONS requests to the api function', () => {

View file

@ -1,4 +1,4 @@
import { type BrowserInterface } from 'test/lib/browsers/base' import { type BrowserInterface } from 'next-webdriver'
import { createNextDescribe } from 'e2e-utils' import { createNextDescribe } from 'e2e-utils'
import { check } from 'next-test-utils' import { check } from 'next-test-utils'

View file

@ -4,7 +4,7 @@ import { join } from 'path'
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'
import { createNext, FileRef } from 'e2e-utils' import { createNext, FileRef } from 'e2e-utils'
import { check, getRedboxHeader, hasRedbox } from 'next-test-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) => { const installCheckVisible = (browser) => {
return browser.eval(`(function() { return browser.eval(`(function() {

View file

@ -13,7 +13,7 @@ import {
waitFor, waitFor,
} from 'next-test-utils' } from 'next-test-utils'
import { createNext } from 'e2e-utils' import { createNext } from 'e2e-utils'
import { NextInstance } from 'test/lib/next-modes/base' import { NextInstance } from 'e2e-utils'
import { outdent } from 'outdent' import { outdent } from 'outdent'
describe.each([[''], ['/docs']])( describe.each([[''], ['/docs']])(

View file

@ -1,7 +1,7 @@
import { join } from 'path' import { join } from 'path'
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'
import { createNext, FileRef } from 'e2e-utils' 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 { check } from 'next-test-utils'
describe('Legacy decorators SWC option', () => { describe('Legacy decorators SWC option', () => {

View file

@ -2,7 +2,7 @@ import url from 'url'
import { join } from 'path' import { join } from 'path'
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'
import { createNext, FileRef } from 'e2e-utils' 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 { fetchViaHTTP, renderViaHTTP } from 'next-test-utils'
describe.each([[''], ['/docs']])( describe.each([[''], ['/docs']])(

View file

@ -3,7 +3,7 @@ import cheerio from 'cheerio'
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'
import { createNext, FileRef } from 'e2e-utils' import { createNext, FileRef } from 'e2e-utils'
import { renderViaHTTP, check, hasRedbox } from 'next-test-utils' import { renderViaHTTP, check, hasRedbox } from 'next-test-utils'
import { NextInstance } from 'test/lib/next-modes/base' import { NextInstance } from 'e2e-utils'
const customDocumentGipFiles = { const customDocumentGipFiles = {
'pages/_document.js': ` 'pages/_document.js': `

View file

@ -1,7 +1,7 @@
import fs from 'fs-extra' import fs from 'fs-extra'
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'
import { check, findPort, hasRedbox } from 'next-test-utils' 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 { createNext } from 'e2e-utils'
import stripAnsi from 'strip-ansi' import stripAnsi from 'strip-ansi'

View file

@ -1,7 +1,7 @@
import { join } from 'path' import { join } from 'path'
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'
import { createNext, FileRef } from 'e2e-utils' 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 { check, fetchViaHTTP } from 'next-test-utils'
// TODO: Somehow the warning doesn't show up with Turbopack, even though the transform is not enabled. // TODO: Somehow the warning doesn't show up with Turbopack, even though the transform is not enabled.

View file

@ -1,8 +1,7 @@
import { join } from 'path' import { join } from 'path'
import webdriver from 'next-webdriver' import webdriver, { BrowserInterface } from 'next-webdriver'
import { FileRef, nextTestSetup } from 'e2e-utils' import { FileRef, nextTestSetup } from 'e2e-utils'
import { check, shouldRunTurboDevTest } from 'next-test-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 // [TODO]: It is unclear why turbopack takes longer to run this test
// remove once it's fixed // remove once it's fixed

View file

@ -1,8 +1,7 @@
import { createNext, FileRef } from 'e2e-utils' import { createNext, FileRef } from 'e2e-utils'
import webdriver from 'next-webdriver' import webdriver, { BrowserInterface } from 'next-webdriver'
import { NextInstance } from 'test/lib/next-modes/base' import { NextInstance } from 'e2e-utils'
import { join } from 'path' import { join } from 'path'
import { BrowserInterface } from 'test/lib/browsers/base'
import { check } from 'next-test-utils' import { check } from 'next-test-utils'
describe('client-dev-overlay', () => { describe('client-dev-overlay', () => {

View file

@ -1,6 +1,6 @@
import { createNext } from 'e2e-utils' import { createNext } from 'e2e-utils'
import { check } from 'next-test-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', () => { describe('correct tsconfig.json defaults', () => {
let next: NextInstance let next: NextInstance

View file

@ -1,5 +1,5 @@
import { createNext } from 'e2e-utils' import { createNext } from 'e2e-utils'
import { NextInstance } from 'test/lib/next-modes/base' import { NextInstance } from 'e2e-utils'
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'
describe('Dotenv default expansion', () => { describe('Dotenv default expansion', () => {

View file

@ -1,5 +1,5 @@
import { createNext } from 'e2e-utils' 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 { waitFor } from 'next-test-utils'
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'

View file

@ -1,5 +1,5 @@
import { createNext, FileRef } from 'e2e-utils' import { createNext, FileRef } from 'e2e-utils'
import { NextInstance } from 'test/lib/next-modes/base' import { NextInstance } from 'e2e-utils'
import { import {
check, check,
hasRedbox, hasRedbox,

View file

@ -1,5 +1,5 @@
import { createNext, FileRef } from 'e2e-utils' import { createNext, FileRef } from 'e2e-utils'
import { NextInstance } from 'test/lib/next-modes/base' import { NextInstance } from 'e2e-utils'
import { join } from 'path' import { join } from 'path'
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'
import { getRedboxSource, hasRedbox } from 'next-test-utils' import { getRedboxSource, hasRedbox } from 'next-test-utils'

View file

@ -1,5 +1,5 @@
import { createNext, FileRef } from 'e2e-utils' 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 { getRedboxSource, hasRedbox } from 'next-test-utils'
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'
import { join } from 'path' import { join } from 'path'

View file

@ -1,5 +1,5 @@
import { createNext } from 'e2e-utils' import { createNext } from 'e2e-utils'
import { NextInstance } from 'test/lib/next-modes/base' import { NextInstance } from 'e2e-utils'
import { renderViaHTTP } from 'next-test-utils' import { renderViaHTTP } from 'next-test-utils'
describe('project directory with styled-jsx suffix', () => { describe('project directory with styled-jsx suffix', () => {

View file

@ -1,5 +1,5 @@
import { createNext, FileRef } from 'e2e-utils' import { createNext, FileRef } from 'e2e-utils'
import { NextInstance } from 'test/lib/next-modes/base' import { NextInstance } from 'e2e-utils'
import { import {
check, check,
hasRedbox, hasRedbox,

View file

@ -1,5 +1,5 @@
import { createNext } from 'e2e-utils' 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 { check, renderViaHTTP } from 'next-test-utils'
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'
import stripAnsi from 'strip-ansi' import stripAnsi from 'strip-ansi'

View file

@ -1,5 +1,5 @@
import { createNext } from 'e2e-utils' import { createNext } from 'e2e-utils'
import { NextInstance } from 'test/lib/next-modes/base' import { NextInstance } from 'e2e-utils'
import { renderViaHTTP } from 'next-test-utils' import { renderViaHTTP } from 'next-test-utils'
// Skip on Turbopack because it's not supported // Skip on Turbopack because it's not supported

View file

@ -1,9 +1,8 @@
import path from 'path' import path from 'path'
import fs from 'fs-extra' import fs from 'fs-extra'
import webdriver from 'next-webdriver' 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 { check } from 'next-test-utils'
import { type NextInstance } from 'test/lib/next-modes/base'
const pathnames = { const pathnames = {
'/404': ['/not/a/real/page?with=query', '/not/a/real/page'], '/404': ['/not/a/real/page?with=query', '/not/a/real/page'],

View file

@ -1,6 +1,6 @@
import { createNextDescribe } from 'e2e-utils' import { createNextDescribe } from 'e2e-utils'
import { check } from 'next-test-utils' import { check } from 'next-test-utils'
import type { BrowserInterface } from 'test/lib/browsers/base' import type { BrowserInterface } from 'next-webdriver'
createNextDescribe( createNextDescribe(
'app a11y features', 'app a11y features',

View file

@ -1,6 +1,6 @@
import { createNextDescribe } from 'e2e-utils' import { createNextDescribe } from 'e2e-utils'
import { check } from 'next-test-utils' import { check } from 'next-test-utils'
import { BrowserInterface } from 'test/lib/browsers/base' import { BrowserInterface } from 'next-webdriver'
import { import {
browserConfigWithFixedTime, browserConfigWithFixedTime,
createRequestsListener, createRequestsListener,

View file

@ -1,4 +1,4 @@
import { BrowserInterface } from 'test/lib/browsers/base' import { BrowserInterface } from 'next-webdriver'
import type { Request } from 'playwright' import type { Request } from 'playwright'
export const getPathname = (url: string) => { export const getPathname = (url: string) => {

View file

@ -1,5 +1,5 @@
import { createNext } from 'e2e-utils' import { createNext } from 'e2e-utils'
import { NextInstance } from 'test/lib/next-modes/base' import { NextInstance } from 'e2e-utils'
import { check } from 'next-test-utils' import { check } from 'next-test-utils'
describe('useReportWebVitals hook', () => { describe('useReportWebVitals hook', () => {

View file

@ -1,5 +1,5 @@
import { createNext } from 'e2e-utils' import { createNext } from 'e2e-utils'
import { NextInstance } from 'test/lib/next-modes/base' import { NextInstance } from 'e2e-utils'
import { check } from 'next-test-utils' import { check } from 'next-test-utils'
describe('vercel speed insights', () => { describe('vercel speed insights', () => {

View file

@ -1,6 +1,6 @@
import path from 'path' import path from 'path'
import { createNext, FileRef } from 'e2e-utils' 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 { check } from 'next-test-utils'
import stripAnsi from 'strip-ansi' import stripAnsi from 'strip-ansi'
;(process.env.TURBOPACK ? describe.skip : describe)( ;(process.env.TURBOPACK ? describe.skip : describe)(

View file

@ -1,5 +1,5 @@
import { createNext, FileRef } from 'e2e-utils' 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 webdriver from 'next-webdriver'
describe('navigation between pages and app dir', () => { describe('navigation between pages and app dir', () => {

View file

@ -1,4 +1,4 @@
import type { BrowserInterface } from 'test/lib/browsers/base' import type { BrowserInterface } from 'next-webdriver'
import { createNextDescribe } from 'e2e-utils' import { createNextDescribe } from 'e2e-utils'
import { check } from 'next-test-utils' import { check } from 'next-test-utils'
import fs from 'fs/promises' import fs from 'fs/promises'

View file

@ -1,5 +1,5 @@
import { createNext, FileRef } from 'e2e-utils' 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 webdriver from 'next-webdriver'
import { check } from 'next-test-utils' import { check } from 'next-test-utils'

View file

@ -1,7 +1,7 @@
import { join } from 'path' import { join } from 'path'
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'
import { createNext, FileRef } from 'e2e-utils' 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' import { hasRedbox } from 'next-test-utils'
describe('basePath + trailingSlash', () => { describe('basePath + trailingSlash', () => {

View file

@ -4,7 +4,7 @@ import assert from 'assert'
import cheerio from 'cheerio' import cheerio from 'cheerio'
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'
import { createNext, FileRef } from 'e2e-utils' import { createNext, FileRef } from 'e2e-utils'
import { NextInstance } from 'test/lib/next-modes/base' import { NextInstance } from 'e2e-utils'
import { import {
check, check,
fetchViaHTTP, fetchViaHTTP,

View file

@ -1,5 +1,5 @@
import { createNext } from 'e2e-utils' import { createNext } from 'e2e-utils'
import { NextInstance } from 'test/lib/next-modes/base' import { NextInstance } from 'e2e-utils'
import { renderViaHTTP } from 'next-test-utils' import { renderViaHTTP } from 'next-test-utils'
describe('browserslist-extends', () => { describe('browserslist-extends', () => {

View file

@ -1,5 +1,5 @@
import { createNext, FileRef } from 'e2e-utils' 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 { renderViaHTTP, fetchViaHTTP } from 'next-test-utils'
import path from 'path' import path from 'path'
import cheerio from 'cheerio' import cheerio from 'cheerio'

View file

@ -1,5 +1,5 @@
import { createNext, FileRef } from 'e2e-utils' 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 { renderViaHTTP, fetchViaHTTP } from 'next-test-utils'
import path from 'path' import path from 'path'
import cheerio from 'cheerio' import cheerio from 'cheerio'

View file

@ -1,5 +1,5 @@
import { createNext } from 'e2e-utils' import { createNext } from 'e2e-utils'
import { NextInstance } from 'test/lib/next-modes/base' import { NextInstance } from 'e2e-utils'
import { renderViaHTTP } from 'next-test-utils' import { renderViaHTTP } from 'next-test-utils'
describe('async export', () => { describe('async export', () => {

View file

@ -1,5 +1,5 @@
import { createNext } from 'e2e-utils' import { createNext } from 'e2e-utils'
import { NextInstance } from 'test/lib/next-modes/base' import { NextInstance } from 'e2e-utils'
import { renderViaHTTP } from 'next-test-utils' import { renderViaHTTP } from 'next-test-utils'
describe('promise export', () => { describe('promise export', () => {

View file

@ -1,5 +1,5 @@
import { createNext, FileRef } from 'e2e-utils' 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 { fetchViaHTTP } from 'next-test-utils'
import path from 'path' import path from 'path'

View file

@ -1,6 +1,6 @@
/* eslint-disable jest/valid-expect-in-promise */ /* eslint-disable jest/valid-expect-in-promise */
import { createNext } from 'e2e-utils' 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 { fetchViaHTTP } from 'next-test-utils'
describe('edge api can use async local storage', () => { describe('edge api can use async local storage', () => {

View file

@ -1,5 +1,5 @@
import { createNext, FileRef } from 'e2e-utils' 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 { fetchViaHTTP, renderViaHTTP } from 'next-test-utils'
import path from 'path' import path from 'path'
import type { Response } from 'node-fetch' import type { Response } from 'node-fetch'

View file

@ -1,5 +1,5 @@
import { createNext, FileRef } from 'e2e-utils' 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 { fetchViaHTTP } from 'next-test-utils'
import path from 'path' import path from 'path'
import fs from 'fs-extra' import fs from 'fs-extra'

View file

@ -1,5 +1,5 @@
import { createNext, FileRef } from 'e2e-utils' 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 { fetchViaHTTP, renderViaHTTP } from 'next-test-utils'
import path from 'path' import path from 'path'
import { promises as fs } from 'fs' import { promises as fs } from 'fs'

View file

@ -1,5 +1,5 @@
import { createNext } from 'e2e-utils' 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' import { fetchViaHTTP, shouldRunTurboDevTest } from 'next-test-utils'
describe('Edge compiler module exports preference', () => { describe('Edge compiler module exports preference', () => {

View file

@ -1,5 +1,5 @@
import { createNext, FileRef } from 'e2e-utils' 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 { fetchViaHTTP, File, nextBuild } from 'next-test-utils'
import { join } from 'path' import { join } from 'path'
import stripAnsi from 'strip-ansi' import stripAnsi from 'strip-ansi'

View file

@ -14,7 +14,7 @@ import {
} from 'next-test-utils' } from 'next-test-utils'
import { join } from 'path' import { join } from 'path'
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'
import { NextInstance } from 'test/lib/next-modes/base' import { NextInstance } from 'e2e-utils'
const appDir = join(__dirname, '../app') const appDir = join(__dirname, '../app')

View file

@ -1,5 +1,5 @@
import { createNext } from 'e2e-utils' import { createNext } from 'e2e-utils'
import { NextInstance } from 'test/lib/next-modes/base' import { NextInstance } from 'e2e-utils'
import { renderViaHTTP } from 'next-test-utils' import { renderViaHTTP } from 'next-test-utils'
describe('handle-non-hoisted-swc-helpers', () => { describe('handle-non-hoisted-swc-helpers', () => {

View file

@ -1,6 +1,6 @@
import { createNext } from 'e2e-utils' import { createNext } from 'e2e-utils'
import { fetchViaHTTP } from 'next-test-utils' import { fetchViaHTTP } from 'next-test-utils'
import { NextInstance } from 'test/lib/next-modes/base' import { NextInstance } from 'e2e-utils'
describe('i18n API support', () => { describe('i18n API support', () => {
let next: NextInstance let next: NextInstance

View file

@ -1,6 +1,6 @@
import { join } from 'path' import { join } from 'path'
import { createNext, FileRef } from 'e2e-utils' 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 { check } from 'next-test-utils'
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'

View file

@ -1,5 +1,5 @@
import { createNext, FileRef } from 'e2e-utils' 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 { check } from 'next-test-utils'
import { join } from 'path' import { join } from 'path'
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'

View file

@ -1,5 +1,5 @@
import { createNext, FileRef } from 'e2e-utils' 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 { check } from 'next-test-utils'
import { join } from 'path' import { join } from 'path'
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'

View file

@ -1,5 +1,5 @@
import { createNext } from 'e2e-utils' 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 { fetchViaHTTP, renderViaHTTP } from 'next-test-utils'
import path from 'path' import path from 'path'
import fs from 'fs-extra' import fs from 'fs-extra'

View file

@ -1,5 +1,5 @@
import { createNext } from 'e2e-utils' 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 { fetchViaHTTP, renderViaHTTP } from 'next-test-utils'
import path from 'path' import path from 'path'
import fs from 'fs-extra' import fs from 'fs-extra'

View file

@ -1,11 +1,10 @@
import { join } from 'path' import { join } from 'path'
import { createNext, FileRef } from 'e2e-utils' 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 { 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 type { HistoryState } from '../../../packages/next/src/shared/lib/router/router'
import { BrowserInterface } from 'test/lib/browsers/base'
const emitPopsStateEvent = (browser: BrowserInterface, state: HistoryState) => const emitPopsStateEvent = (browser: BrowserInterface, state: HistoryState) =>
browser.eval( browser.eval(

View file

@ -1,11 +1,10 @@
import { join } from 'path' import { join } from 'path'
import { createNext, FileRef } from 'e2e-utils' 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 { 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 type { HistoryState } from '../../../packages/next/src/shared/lib/router/router'
import { BrowserInterface } from 'test/lib/browsers/base'
const emitPopsStateEvent = (browser: BrowserInterface, state: HistoryState) => const emitPopsStateEvent = (browser: BrowserInterface, state: HistoryState) =>
browser.eval( browser.eval(

View file

@ -1,5 +1,5 @@
import { createNext, FileRef } from 'e2e-utils' 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 { check } from 'next-test-utils'
import { join } from 'path' import { join } from 'path'
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'

View file

@ -1,5 +1,5 @@
import { createNext, FileRef } from 'e2e-utils' 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 httpProxy from 'http-proxy'
import { join } from 'path' import { join } from 'path'
import http from 'http' import http from 'http'

View file

@ -4,7 +4,7 @@ import cheerio from 'cheerio'
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'
import { fetchViaHTTP } from 'next-test-utils' import { fetchViaHTTP } from 'next-test-utils'
import { createNext, FileRef } from 'e2e-utils' import { createNext, FileRef } from 'e2e-utils'
import { NextInstance } from 'test/lib/next-modes/base' import { NextInstance } from 'e2e-utils'
describe('Middleware base tests', () => { describe('Middleware base tests', () => {
let next: NextInstance let next: NextInstance

View file

@ -5,7 +5,7 @@ import { join } from 'path'
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'
import { fetchViaHTTP } from 'next-test-utils' import { fetchViaHTTP } from 'next-test-utils'
import { createNext, FileRef } from 'e2e-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) const itif = (condition: boolean) => (condition ? it : it.skip)

View file

@ -5,7 +5,7 @@ import { join } from 'path'
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'
import { fetchViaHTTP } from 'next-test-utils' import { fetchViaHTTP } from 'next-test-utils'
import { createNext, FileRef } from 'e2e-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) const itif = (condition: boolean) => (condition ? it : it.skip)

View file

@ -4,7 +4,7 @@ import { join } from 'path'
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'
import { fetchViaHTTP } from 'next-test-utils' import { fetchViaHTTP } from 'next-test-utils'
import { createNext, FileRef } from 'e2e-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) const itif = (condition: boolean) => (condition ? it : it.skip)

View file

@ -5,7 +5,7 @@ import { join } from 'path'
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'
import { check, fetchViaHTTP } from 'next-test-utils' import { check, fetchViaHTTP } from 'next-test-utils'
import { createNext, FileRef } from 'e2e-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) const itif = (condition: boolean) => (condition ? it : it.skip)

View file

@ -1,5 +1,5 @@
import { createNext } from 'e2e-utils' 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 { fetchViaHTTP } from 'next-test-utils'
describe('Middleware fetches with any HTTP method', () => { describe('Middleware fetches with any HTTP method', () => {

View file

@ -1,5 +1,5 @@
import { createNext } from 'e2e-utils' 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 { fetchViaHTTP } from 'next-test-utils'
describe('Middleware fetches with body', () => { describe('Middleware fetches with body', () => {

View file

@ -3,7 +3,7 @@
import fs from 'fs-extra' import fs from 'fs-extra'
import { join } from 'path' import { join } from 'path'
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'
import { NextInstance } from 'test/lib/next-modes/base' import { NextInstance } from 'e2e-utils'
import { import {
check, check,
fetchViaHTTP, fetchViaHTTP,

View file

@ -1,6 +1,6 @@
/* eslint-disable jest/no-identical-title */ /* eslint-disable jest/no-identical-title */
import { createNext, FileRef } from 'e2e-utils' 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 { check, fetchViaHTTP } from 'next-test-utils'
import { join } from 'path' import { join } from 'path'
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'

View file

@ -4,7 +4,7 @@ import { join } from 'path'
import cheerio from 'cheerio' import cheerio from 'cheerio'
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'
import { check, fetchViaHTTP } from 'next-test-utils' 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' import { createNext, FileRef } from 'e2e-utils'
describe('Middleware Redirect', () => { describe('Middleware Redirect', () => {

View file

@ -1,7 +1,7 @@
/* eslint-env jest */ /* eslint-env jest */
import { join } from 'path' import { join } from 'path'
import { NextInstance } from 'test/lib/next-modes/base' import { NextInstance } from 'e2e-utils'
import { fetchViaHTTP } from 'next-test-utils' import { fetchViaHTTP } from 'next-test-utils'
import { createNext, FileRef } from 'e2e-utils' import { createNext, FileRef } from 'e2e-utils'
import cheerio from 'cheerio' import cheerio from 'cheerio'

View file

@ -2,7 +2,7 @@
import { join } from 'path' import { join } from 'path'
import { fetchViaHTTP } from 'next-test-utils' 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' import { createNext, FileRef } from 'e2e-utils'
describe('Middleware Responses', () => { describe('Middleware Responses', () => {

View file

@ -3,7 +3,7 @@
import { join } from 'path' import { join } from 'path'
import cheerio from 'cheerio' import cheerio from 'cheerio'
import webdriver from 'next-webdriver' 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 { check, fetchViaHTTP, retry } from 'next-test-utils'
import { createNext, FileRef } from 'e2e-utils' import { createNext, FileRef } from 'e2e-utils'
import escapeStringRegexp from 'escape-string-regexp' import escapeStringRegexp from 'escape-string-regexp'

View file

@ -1,5 +1,5 @@
import { createNext, FileRef } from 'e2e-utils' 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 webdriver from 'next-webdriver'
import { join } from 'path' import { join } from 'path'
import { check } from 'next-test-utils' import { check } from 'next-test-utils'

View file

@ -4,7 +4,7 @@ import fs from 'fs-extra'
import { join } from 'path' import { join } from 'path'
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'
import { createNext, FileRef } from 'e2e-utils' 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' import { check, fetchViaHTTP, waitFor } from 'next-test-utils'
describe('Middleware Runtime trailing slash', () => { describe('Middleware Runtime trailing slash', () => {

View file

@ -1,6 +1,6 @@
import { createNext, FileRef, isNextDev } from 'e2e-utils' import { createNext, FileRef, isNextDev } from 'e2e-utils'
import { getRedboxDescription, hasRedbox } from 'next-test-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 webdriver from 'next-webdriver'
import path from 'path' import path from 'path'

View file

@ -1,5 +1,5 @@
import { createNext, FileRef } from 'e2e-utils' 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 { renderViaHTTP } from 'next-test-utils'
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'
import cheerio from 'cheerio' import cheerio from 'cheerio'

View file

@ -1,5 +1,5 @@
import { createNext, FileRef } from 'e2e-utils' 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 webdriver from 'next-webdriver'
import path from 'path' import path from 'path'

View file

@ -1,5 +1,5 @@
import { createNext, FileRef } from 'e2e-utils' 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 webdriver from 'next-webdriver'
import path from 'path' import path from 'path'

View file

@ -1,5 +1,5 @@
import { createNext, FileRef } from 'e2e-utils' 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 { renderViaHTTP } from 'next-test-utils'
import cheerio from 'cheerio' import cheerio from 'cheerio'
import path from 'path' import path from 'path'

View file

@ -1,6 +1,6 @@
import cheerio from 'cheerio' import cheerio from 'cheerio'
import { createNext, FileRef } from 'e2e-utils' 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 { renderViaHTTP } from 'next-test-utils'
import { join } from 'path' import { join } from 'path'

View file

@ -1,5 +1,5 @@
import { createNext, FileRef } from 'e2e-utils' import { createNext, FileRef } from 'e2e-utils'
import { NextInstance } from 'test/lib/next-modes/base' import { NextInstance } from 'e2e-utils'
import { join } from 'path' import { join } from 'path'
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'

View file

@ -1,6 +1,6 @@
import cheerio from 'cheerio' import cheerio from 'cheerio'
import { createNext, FileRef } from 'e2e-utils' 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 { renderViaHTTP, shouldRunTurboDevTest } from 'next-test-utils'
import { join } from 'path' import { join } from 'path'
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'

View file

@ -1,6 +1,6 @@
import cheerio from 'cheerio' import cheerio from 'cheerio'
import { createNext, FileRef } from 'e2e-utils' 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 { renderViaHTTP } from 'next-test-utils'
import { join } from 'path' import { join } from 'path'

View file

@ -1,6 +1,6 @@
import cheerio from 'cheerio' import cheerio from 'cheerio'
import { createNext, FileRef } from 'e2e-utils' 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 { renderViaHTTP } from 'next-test-utils'
import { join } from 'path' import { join } from 'path'

View file

@ -2,7 +2,7 @@ import { createNext, FileRef } from 'e2e-utils'
import { renderViaHTTP } from 'next-test-utils' import { renderViaHTTP } from 'next-test-utils'
import cheerio from 'cheerio' import cheerio from 'cheerio'
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'
import { NextInstance } from 'test/lib/next-modes/base' import { NextInstance } from 'e2e-utils'
import { join } from 'path' import { join } from 'path'
describe('next/head', () => { describe('next/head', () => {

View file

@ -1,5 +1,5 @@
import { createNext, FileRef } from 'e2e-utils' 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 { waitFor } from 'next-test-utils'
import path from 'path' import path from 'path'
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'

View file

@ -1,7 +1,6 @@
import webdriver from 'next-webdriver' import webdriver, { BrowserInterface } from 'next-webdriver'
import { createNext } from 'e2e-utils' import { createNext } from 'e2e-utils'
import { NextInstance } from 'test/lib/next-modes/base' import { NextInstance } from 'e2e-utils'
import { BrowserInterface } from 'test/lib/browsers/base'
import { check } from 'next-test-utils' import { check } from 'next-test-utils'
describe('beforeInteractive in document Head', () => { describe('beforeInteractive in document Head', () => {

View file

@ -1,5 +1,5 @@
import { createNext } from 'e2e-utils' import { createNext } from 'e2e-utils'
import { NextInstance } from 'test/lib/next-modes/base' import { NextInstance } from 'e2e-utils'
import { renderViaHTTP } from 'next-test-utils' import { renderViaHTTP } from 'next-test-utils'
describe('no-eslint-warn-with-no-eslint-config', () => { describe('no-eslint-warn-with-no-eslint-config', () => {

View file

@ -1,7 +1,7 @@
import { createNext, FileRef } from 'e2e-utils' import { createNext, FileRef } from 'e2e-utils'
import { check } from 'next-test-utils' import { check } from 'next-test-utils'
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'
import { NextInstance } from 'test/lib/next-modes/base' import { NextInstance } from 'e2e-utils'
import { join } from 'path' import { join } from 'path'
describe('nonce head manager', () => { describe('nonce head manager', () => {

View file

@ -1,5 +1,5 @@
import { createNext, FileRef } from 'e2e-utils' 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 { fetchViaHTTP, renderViaHTTP } from 'next-test-utils'
import fs from 'fs-extra' import fs from 'fs-extra'
import { join } from 'path' import { join } from 'path'

View file

@ -1,6 +1,6 @@
import { createNext, FileRef } from 'e2e-utils' import { createNext, FileRef } from 'e2e-utils'
import { join } from 'path' import { join } from 'path'
import { NextInstance } from 'test/lib/next-modes/base' import { NextInstance } from 'e2e-utils'
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'
describe('postcss-config-cjs', () => { describe('postcss-config-cjs', () => {

View file

@ -1,6 +1,6 @@
import { createNext } from 'e2e-utils' import { createNext } from 'e2e-utils'
import { renderViaHTTP } from 'next-test-utils' import { renderViaHTTP } from 'next-test-utils'
import { NextInstance } from 'test/lib/next-modes/base' import { NextInstance } from 'e2e-utils'
describe('Prerender crawler handling', () => { describe('Prerender crawler handling', () => {
let next: NextInstance let next: NextInstance

View file

@ -1,6 +1,6 @@
import path from 'path' import path from 'path'
import { createNext, FileRef } from 'e2e-utils' 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 webdriver from 'next-webdriver'
describe('prerender native module', () => { describe('prerender native module', () => {

View file

@ -4,7 +4,7 @@ import cheerio from 'cheerio'
import { join, sep } from 'path' import { join, sep } from 'path'
import escapeRegex from 'escape-string-regexp' import escapeRegex from 'escape-string-regexp'
import { createNext, FileRef } from 'e2e-utils' import { createNext, FileRef } from 'e2e-utils'
import { NextInstance } from 'test/lib/next-modes/base' import { NextInstance } from 'e2e-utils'
import { import {
check, check,
fetchViaHTTP, fetchViaHTTP,

View file

@ -2,7 +2,7 @@
import { join } from 'path' import { join } from 'path'
import { fetchViaHTTP } from 'next-test-utils' 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' import { createNext, FileRef } from 'e2e-utils'
describe('Requests not effected when middleware used', () => { describe('Requests not effected when middleware used', () => {

View file

@ -1,5 +1,5 @@
import { createNext, FileRef } from 'e2e-utils' 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 { check } from 'next-test-utils'
import { join } from 'path' import { join } from 'path'
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'

View file

@ -1,5 +1,5 @@
import { createNext, FileRef } from 'e2e-utils' 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 { check, fetchViaHTTP } from 'next-test-utils'
import { join } from 'path' import { join } from 'path'
import cheerio from 'cheerio' import cheerio from 'cheerio'

View file

@ -1,6 +1,6 @@
import { join } from 'path' import { join } from 'path'
import { renderViaHTTP, check } from 'next-test-utils' 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' import { createNext, FileRef } from 'e2e-utils'
describe('React Context', () => { describe('React Context', () => {

View file

@ -1,6 +1,6 @@
import { join } from 'path' import { join } from 'path'
import { createNext, createNextDescribe } from 'e2e-utils' import { createNext, createNextDescribe } from 'e2e-utils'
import { NextInstance } from 'test/lib/next-modes/base' import { NextInstance } from 'e2e-utils'
import { import {
check, check,
fetchViaHTTP, fetchViaHTTP,

View file

@ -1,5 +1,5 @@
import { createNext } from 'e2e-utils' import { createNext } from 'e2e-utils'
import { NextInstance } from 'test/lib/next-modes/base' import { NextInstance } from 'e2e-utils'
import { renderViaHTTP } from 'next-test-utils' import { renderViaHTTP } from 'next-test-utils'
// Tests Babel, not needed for Turbopack // Tests Babel, not needed for Turbopack

View file

@ -1,7 +1,7 @@
/* eslint-env jest */ /* eslint-env jest */
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'
import { createNext, FileRef } from 'e2e-utils' 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' import { check, fetchViaHTTP, renderViaHTTP, waitFor } from 'next-test-utils'
function splitLines(text) { function splitLines(text) {

View file

@ -1,6 +1,6 @@
import { join } from 'path' import { join } from 'path'
import { createNext, FileRef } from 'e2e-utils' 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 { fetchViaHTTP } from 'next-test-utils'
describe('trailingSlash:true with rewrites and getStaticProps', () => { describe('trailingSlash:true with rewrites and getStaticProps', () => {

Some files were not shown because too many files have changed in this diff Show more