Stop using baseUrl
in root tsconfig (#64117)
This commit is contained in:
parent
2d99073b87
commit
ed4d772359
142 changed files with 153 additions and 161 deletions
|
@ -1,5 +1,5 @@
|
|||
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', () => {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
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'
|
||||
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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']])(
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
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', () => {
|
||||
|
|
|
@ -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']])(
|
||||
|
|
|
@ -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': `
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
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'
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
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.
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
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
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
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', () => {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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', () => {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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'
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { createNext, FileRef } from 'e2e-utils'
|
||||
import { NextInstance } from 'test/lib/next-modes/base'
|
||||
import { NextInstance } from 'e2e-utils'
|
||||
import {
|
||||
check,
|
||||
hasRedbox,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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', () => {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { createNext, FileRef } from 'e2e-utils'
|
||||
import { NextInstance } from 'test/lib/next-modes/base'
|
||||
import { NextInstance } from 'e2e-utils'
|
||||
import {
|
||||
check,
|
||||
hasRedbox,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
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'],
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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',
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { BrowserInterface } from 'test/lib/browsers/base'
|
||||
import { BrowserInterface } from 'next-webdriver'
|
||||
import type { Request } from 'playwright'
|
||||
|
||||
export const getPathname = (url: string) => {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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', () => {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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', () => {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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)(
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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', () => {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
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'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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'
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
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', () => {
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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', () => {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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', () => {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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', () => {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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'
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* 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', () => {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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', () => {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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'
|
||||
|
|
|
@ -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')
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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', () => {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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'
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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'
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
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(
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
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(
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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', () => {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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', () => {
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* 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'
|
||||
|
|
|
@ -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', () => {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* 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'
|
||||
|
|
|
@ -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', () => {
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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'
|
||||
|
|
|
@ -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', () => {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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'
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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'
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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'
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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'
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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'
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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'
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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'
|
||||
|
||||
|
|
|
@ -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', () => {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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'
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
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', () => {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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', () => {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
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', () => {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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', () => {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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', () => {
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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', () => {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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', () => {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* 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) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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', () => {
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue