Unverified Commit 32057c84 authored by Jan Potoms's avatar Jan Potoms Committed by GitHub

Use the jest-circus test runner (#12974)

parent c239c746
module.exports = { module.exports = {
// this will become default in jest 27:
testRunner: 'jest-circus/runner',
testMatch: ['**/*.test.js'], testMatch: ['**/*.test.js'],
verbose: true, verbose: true,
rootDir: 'test', rootDir: 'test',
modulePaths: ['<rootDir>/lib'], modulePaths: ['<rootDir>/lib'],
globalSetup: '<rootDir>/jest-global-setup.js', globalSetup: '<rootDir>/jest-global-setup.js',
globalTeardown: '<rootDir>/jest-global-teardown.js', globalTeardown: '<rootDir>/jest-global-teardown.js',
setupFilesAfterEnv: ['<rootDir>/jest-setup-after-env.js'],
testEnvironment: '<rootDir>/jest-environment.js', testEnvironment: '<rootDir>/jest-environment.js',
} }
...@@ -76,6 +76,7 @@ ...@@ -76,6 +76,7 @@
"fs-extra": "9.0.0", "fs-extra": "9.0.0",
"get-port": "5.1.1", "get-port": "5.1.1",
"isomorphic-unfetch": "3.0.0", "isomorphic-unfetch": "3.0.0",
"jest-circus": "26.0.1",
"jest-cli": "24.9.0", "jest-cli": "24.9.0",
"ky": "0.19.1", "ky": "0.19.1",
"ky-universal": "0.6.0", "ky-universal": "0.6.0",
......
/* global jasmine */
/* eslint-env jest */ /* eslint-env jest */
import { sandbox } from './helpers' import { sandbox } from './helpers'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5 jest.setTimeout(1000 * 60 * 5)
test('can edit a component without losing state', async () => { test('can edit a component without losing state', async () => {
const [session, cleanup] = await sandbox() const [session, cleanup] = await sandbox()
......
/* global jasmine */
/* eslint-env jest */ /* eslint-env jest */
import { sandbox } from './helpers' import { sandbox } from './helpers'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5 jest.setTimeout(1000 * 60 * 5)
test('logbox: can recover from a syntax error without losing state', async () => { test('logbox: can recover from a syntax error without losing state', async () => {
const [session, cleanup] = await sandbox() const [session, cleanup] = await sandbox()
......
/* global jasmine */
/* eslint-env jest */ /* eslint-env jest */
import { sandbox } from './helpers' import { sandbox } from './helpers'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5 jest.setTimeout(1000 * 60 * 5)
// https://github.com/zeit/next.js/issues/12422 // https://github.com/zeit/next.js/issues/12422
test('styled-components hydration mismatch', async () => { test('styled-components hydration mismatch', async () => {
......
/* global jasmine */
/* eslint-env jest */ /* eslint-env jest */
import { sandbox } from './helpers' import { sandbox } from './helpers'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5 jest.setTimeout(1000 * 60 * 5)
// https://github.com/facebook/metro/blob/b651e535cd0fc5df6c0803b9aa647d664cb9a6c3/packages/metro/src/lib/polyfills/__tests__/require-test.js#L989-L1048 // https://github.com/facebook/metro/blob/b651e535cd0fc5df6c0803b9aa647d664cb9a6c3/packages/metro/src/lib/polyfills/__tests__/require-test.js#L989-L1048
test('re-runs accepted modules', async () => { test('re-runs accepted modules', async () => {
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import fs from 'fs-extra' import fs from 'fs-extra'
import { join } from 'path' import { join } from 'path'
import { import {
...@@ -12,7 +12,7 @@ import { ...@@ -12,7 +12,7 @@ import {
fetchViaHTTP, fetchViaHTTP,
} from 'next-test-utils' } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2 jest.setTimeout(1000 * 60 * 2)
const appDir = join(__dirname, '../') const appDir = join(__dirname, '../')
const nextConfig = join(appDir, 'next.config.js') const nextConfig = join(appDir, 'next.config.js')
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import fs from 'fs-extra' import fs from 'fs-extra'
import { join } from 'path' import { join } from 'path'
import { import {
...@@ -12,7 +12,7 @@ import { ...@@ -12,7 +12,7 @@ import {
fetchViaHTTP, fetchViaHTTP,
} from 'next-test-utils' } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2 jest.setTimeout(1000 * 60 * 2)
const appDir = join(__dirname, '../') const appDir = join(__dirname, '../')
const nextConfig = join(appDir, 'next.config.js') const nextConfig = join(appDir, 'next.config.js')
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import fs from 'fs-extra' import fs from 'fs-extra'
import { join } from 'path' import { join } from 'path'
import { import {
...@@ -13,7 +13,7 @@ import { ...@@ -13,7 +13,7 @@ import {
waitFor, waitFor,
} from 'next-test-utils' } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2 jest.setTimeout(1000 * 60 * 2)
const appDir = join(__dirname, '../') const appDir = join(__dirname, '../')
const pages404 = join(appDir, 'pages/404.js') const pages404 = join(appDir, 'pages/404.js')
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { promises } from 'fs' import { promises } from 'fs'
import { join } from 'path' import { join } from 'path'
import { validateAMP } from 'amp-test-utils' import { validateAMP } from 'amp-test-utils'
import { File, nextBuild, nextExport, runNextCommand } from 'next-test-utils' import { File, nextBuild, nextExport, runNextCommand } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2 jest.setTimeout(1000 * 60 * 2)
const { access, readFile } = promises const { access, readFile } = promises
const appDir = join(__dirname, '../') const appDir = join(__dirname, '../')
const outDir = join(appDir, 'out') const outDir = join(appDir, 'out')
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { join } from 'path' import { join } from 'path'
import { import {
nextBuild, nextBuild,
...@@ -9,7 +9,7 @@ import { ...@@ -9,7 +9,7 @@ import {
renderViaHTTP, renderViaHTTP,
} from 'next-test-utils' } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 1 jest.setTimeout(1000 * 60 * 1)
let app let app
let appPort let appPort
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { join } from 'path' import { join } from 'path'
import { import {
nextBuild, nextBuild,
...@@ -10,7 +10,7 @@ import { ...@@ -10,7 +10,7 @@ import {
renderViaHTTP, renderViaHTTP,
} from 'next-test-utils' } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 1 jest.setTimeout(1000 * 60 * 1)
let app let app
let appPort let appPort
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { join } from 'path' import { join } from 'path'
import cheerio from 'cheerio' import cheerio from 'cheerio'
import { validateAMP } from 'amp-test-utils' import { validateAMP } from 'amp-test-utils'
...@@ -11,7 +11,7 @@ import { ...@@ -11,7 +11,7 @@ import {
renderViaHTTP, renderViaHTTP,
} from 'next-test-utils' } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 jest.setTimeout(1000 * 60)
const appDir = join(__dirname, '../') const appDir = join(__dirname, '../')
let appPort let appPort
let server let server
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import fs from 'fs-extra' import fs from 'fs-extra'
import { join } from 'path' import { join } from 'path'
import cheerio from 'cheerio' import cheerio from 'cheerio'
...@@ -20,7 +20,7 @@ let builtServerPagesDir ...@@ -20,7 +20,7 @@ let builtServerPagesDir
let appPort let appPort
let app let app
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2 jest.setTimeout(1000 * 60 * 2)
const fsExists = file => const fsExists = file =>
fs fs
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
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'
...@@ -29,7 +29,7 @@ const appDir = join(__dirname, '../') ...@@ -29,7 +29,7 @@ const appDir = join(__dirname, '../')
let appPort let appPort
let server let server
let app let app
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5 jest.setTimeout(1000 * 60 * 5)
const context = {} const context = {}
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import fs from 'fs-extra' import fs from 'fs-extra'
import { join } from 'path' import { join } from 'path'
import AbortController from 'abort-controller' import AbortController from 'abort-controller'
...@@ -15,7 +15,7 @@ import { ...@@ -15,7 +15,7 @@ import {
} from 'next-test-utils' } from 'next-test-utils'
import json from '../big.json' import json from '../big.json'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2 jest.setTimeout(1000 * 60 * 2)
const appDir = join(__dirname, '../') const appDir = join(__dirname, '../')
const nextConfig = join(appDir, 'next.config.js') const nextConfig = join(appDir, 'next.config.js')
let appPort let appPort
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { readFileSync, writeFileSync } from 'fs' import { readFileSync, writeFileSync } from 'fs'
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'
import { join } from 'path' import { join } from 'path'
...@@ -13,7 +13,7 @@ import { ...@@ -13,7 +13,7 @@ import {
let appPort let appPort
let server let server
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5 jest.setTimeout(1000 * 60 * 5)
describe('App asPath', () => { describe('App asPath', () => {
beforeAll(async () => { beforeAll(async () => {
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { join } from 'path' import { join } from 'path'
import cheerio from 'cheerio' import cheerio from 'cheerio'
import { import {
...@@ -13,7 +13,7 @@ import { ...@@ -13,7 +13,7 @@ import {
killApp, killApp,
} from 'next-test-utils' } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 jest.setTimeout(1000 * 60)
const appDir = join(__dirname, '../') const appDir = join(__dirname, '../')
let appPort let appPort
let server let server
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { join } from 'path' import { join } from 'path'
import cheerio from 'cheerio' import cheerio from 'cheerio'
import { import {
...@@ -10,7 +10,7 @@ import { ...@@ -10,7 +10,7 @@ import {
renderViaHTTP, renderViaHTTP,
} from 'next-test-utils' } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 jest.setTimeout(1000 * 60)
const appDir = join(__dirname, '../') const appDir = join(__dirname, '../')
let appPort let appPort
let server let server
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { join } from 'path' import { join } from 'path'
import { import {
renderViaHTTP, renderViaHTTP,
...@@ -17,7 +17,7 @@ import csp from './csp' ...@@ -17,7 +17,7 @@ import csp from './csp'
const context = { const context = {
output: '', output: '',
} }
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5 jest.setTimeout(1000 * 60 * 5)
const collectOutput = message => { const collectOutput = message => {
context.output += message context.output += message
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { join } from 'path' import { join } from 'path'
import { renderViaHTTP, findPort, launchApp, killApp } from 'next-test-utils' import { renderViaHTTP, findPort, launchApp, killApp } from 'next-test-utils'
const context = { const context = {
output: '', output: '',
} }
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5 jest.setTimeout(1000 * 60 * 5)
const collectOutput = message => { const collectOutput = message => {
context.output += message context.output += message
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
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'
...@@ -13,7 +13,7 @@ import { ...@@ -13,7 +13,7 @@ import {
waitFor, waitFor,
} from 'next-test-utils' } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 1 jest.setTimeout(1000 * 60 * 1)
const appDir = path.join(__dirname, '..') const appDir = path.join(__dirname, '..')
const nextConfig = path.join(appDir, 'next.config.js') const nextConfig = path.join(appDir, 'next.config.js')
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import path from 'path' import path from 'path'
import fs from 'fs-extra' import fs from 'fs-extra'
import { nextBuild, nextExport } from 'next-test-utils' import { nextBuild, nextExport } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 1 jest.setTimeout(1000 * 60 * 1)
const appDir = path.join(__dirname, '..') const appDir = path.join(__dirname, '..')
const outdir = path.join(__dirname, 'out') const outdir = path.join(__dirname, 'out')
const nextConfig = path.join(appDir, 'next.config.js') const nextConfig = path.join(appDir, 'next.config.js')
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import fs from 'fs' import fs from 'fs'
import path from 'path' import path from 'path'
import { nextBuild } from 'next-test-utils' import { nextBuild } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 1 jest.setTimeout(1000 * 60 * 1)
const appDir = path.join(__dirname, '..') const appDir = path.join(__dirname, '..')
describe('Auto Export Error Serverless', () => { describe('Auto Export Error Serverless', () => {
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'
import path from 'path' import path from 'path'
import { nextBuild, nextStart, findPort, killApp } from 'next-test-utils' import { nextBuild, nextStart, findPort, killApp } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 1 jest.setTimeout(1000 * 60 * 1)
const appDir = path.join(__dirname, '..') const appDir = path.join(__dirname, '..')
let appPort let appPort
let app let app
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'
import path from 'path' import path from 'path'
import { import {
...@@ -10,7 +10,7 @@ import { ...@@ -10,7 +10,7 @@ import {
launchApp, launchApp,
} from 'next-test-utils' } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 1 jest.setTimeout(1000 * 60 * 1)
const appDir = path.join(__dirname, '..') const appDir = path.join(__dirname, '..')
let appPort let appPort
let app let app
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { join } from 'path' import { join } from 'path'
import { nextBuild } from 'next-test-utils' import { nextBuild } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5 jest.setTimeout(1000 * 60 * 5)
describe('Babel', () => { describe('Babel', () => {
it('should allow setting targets.browsers', async () => { it('should allow setting targets.browsers', async () => {
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { join } from 'path' import { join } from 'path'
import { import {
renderViaHTTP, renderViaHTTP,
...@@ -13,7 +13,7 @@ import { ...@@ -13,7 +13,7 @@ import {
import rendering from './rendering' import rendering from './rendering'
const context = {} const context = {}
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5 jest.setTimeout(1000 * 60 * 5)
describe('Babel', () => { describe('Babel', () => {
beforeAll(async () => { beforeAll(async () => {
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'
import { join } from 'path' import { join } from 'path'
import url from 'url' import url from 'url'
...@@ -26,7 +26,7 @@ import fs, { ...@@ -26,7 +26,7 @@ import fs, {
} from 'fs-extra' } from 'fs-extra'
import cheerio from 'cheerio' import cheerio from 'cheerio'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2 jest.setTimeout(1000 * 60 * 2)
const appDir = join(__dirname, '..') const appDir = join(__dirname, '..')
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { join } from 'path' import { join } from 'path'
import { renderViaHTTP, findPort, launchApp, killApp } from 'next-test-utils' import { renderViaHTTP, findPort, launchApp, killApp } from 'next-test-utils'
...@@ -12,7 +12,7 @@ import publicFolder from './public-folder' ...@@ -12,7 +12,7 @@ import publicFolder from './public-folder'
import security from './security' import security from './security'
const context = {} const context = {}
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5 jest.setTimeout(1000 * 60 * 5)
describe('Basic Features', () => { describe('Basic Features', () => {
beforeAll(async () => { beforeAll(async () => {
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import fs from 'fs-extra' import fs from 'fs-extra'
import { join } from 'path' import { join } from 'path'
import { import {
...@@ -11,7 +11,7 @@ import { ...@@ -11,7 +11,7 @@ import {
findPort, findPort,
} from 'next-test-utils' } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2 jest.setTimeout(1000 * 60 * 2)
const appDir = join(__dirname, '..') const appDir = join(__dirname, '..')
const nextConfig = join(appDir, 'next.config.js') const nextConfig = join(appDir, 'next.config.js')
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
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 { findPort, launchApp, killApp, waitFor } from 'next-test-utils' import { findPort, launchApp, killApp, waitFor } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5 jest.setTimeout(1000 * 60 * 5)
const appDir = join(__dirname, '..') const appDir = join(__dirname, '..')
const nextConfig = join(appDir, 'next.config.js') const nextConfig = join(appDir, 'next.config.js')
let appPort let appPort
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import 'flat-map-polyfill' import 'flat-map-polyfill'
import { remove } from 'fs-extra' import { remove } from 'fs-extra'
import { nextBuild } from 'next-test-utils' import { nextBuild } from 'next-test-utils'
import { join } from 'path' import { join } from 'path'
import { recursiveReadDir } from 'next/dist/lib/recursive-readdir' import { recursiveReadDir } from 'next/dist/lib/recursive-readdir'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2 jest.setTimeout(1000 * 60 * 2)
const fixturesDir = join(__dirname, '..', 'fixtures') const fixturesDir = join(__dirname, '..', 'fixtures')
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { remove } from 'fs-extra' import { remove } from 'fs-extra'
import { File, nextBuild, waitFor } from 'next-test-utils' import { File, nextBuild, waitFor } from 'next-test-utils'
import { join } from 'path' import { join } from 'path'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 1 jest.setTimeout(1000 * 60 * 1)
const appDir = join(__dirname, '../') const appDir = join(__dirname, '../')
describe('Build warnings', () => { describe('Build warnings', () => {
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { join } from 'path' import { join } from 'path'
import fs from 'fs-extra' import fs from 'fs-extra'
import { import {
...@@ -10,7 +10,7 @@ import { ...@@ -10,7 +10,7 @@ import {
killApp, killApp,
} from 'next-test-utils' } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 1 jest.setTimeout(1000 * 60 * 1)
const appDir = join(__dirname, '../') const appDir = join(__dirname, '../')
const nextConfig = join(appDir, 'next.config.js') const nextConfig = join(appDir, 'next.config.js')
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { join } from 'path' import { join } from 'path'
import { readFile } from 'fs-extra' import { readFile } from 'fs-extra'
import { nextBuild } from 'next-test-utils' import { nextBuild } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 1 jest.setTimeout(1000 * 60 * 1)
const appDir = join(__dirname, '../') const appDir = join(__dirname, '../')
let buildId let buildId
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import cheerio from 'cheerio' import cheerio from 'cheerio'
import express from 'express' import express from 'express'
import { access, readdir, readFile, unlink } from 'fs-extra' import { access, readdir, readFile, unlink } from 'fs-extra'
...@@ -8,7 +8,7 @@ import { nextBuild, nextServer, promiseCall, stopApp } from 'next-test-utils' ...@@ -8,7 +8,7 @@ import { nextBuild, nextServer, promiseCall, stopApp } from 'next-test-utils'
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'
import { join } from 'path' import { join } from 'path'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 1 jest.setTimeout(1000 * 60 * 1)
const appDir = join(__dirname, '../') const appDir = join(__dirname, '../')
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { runNextCommand, runNextCommandDev, findPort } from 'next-test-utils' import { runNextCommand, runNextCommandDev, findPort } from 'next-test-utils'
import { join } from 'path' import { join } from 'path'
import pkg from 'next/package' import pkg from 'next/package'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5 jest.setTimeout(1000 * 60 * 5)
const dir = join(__dirname, '..') const dir = join(__dirname, '..')
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { join } from 'path' import { join } from 'path'
import { renderViaHTTP, findPort, launchApp, killApp } from 'next-test-utils' import { renderViaHTTP, findPort, launchApp, killApp } from 'next-test-utils'
...@@ -7,7 +7,7 @@ import { renderViaHTTP, findPort, launchApp, killApp } from 'next-test-utils' ...@@ -7,7 +7,7 @@ import { renderViaHTTP, findPort, launchApp, killApp } from 'next-test-utils'
import clientNavigation from './client-navigation' import clientNavigation from './client-navigation'
const context = {} const context = {}
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5 jest.setTimeout(1000 * 60 * 5)
describe('Client 404', () => { describe('Client 404', () => {
beforeAll(async () => { beforeAll(async () => {
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { import {
fetchViaHTTP, fetchViaHTTP,
findPort, findPort,
...@@ -16,7 +16,7 @@ import { join } from 'path' ...@@ -16,7 +16,7 @@ import { join } from 'path'
import renderingSuite from './rendering' import renderingSuite from './rendering'
const context = {} const context = {}
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5 jest.setTimeout(1000 * 60 * 5)
describe('Client Navigation', () => { describe('Client Navigation', () => {
beforeAll(async () => { beforeAll(async () => {
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { join } from 'path' import { join } from 'path'
import { import {
fetchViaHTTP, fetchViaHTTP,
...@@ -10,7 +10,7 @@ import { ...@@ -10,7 +10,7 @@ import {
} from 'next-test-utils' } from 'next-test-utils'
const context = {} const context = {}
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5 jest.setTimeout(1000 * 60 * 5)
describe('Compression', () => { describe('Compression', () => {
beforeAll(async () => { beforeAll(async () => {
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { join } from 'path' import { join } from 'path'
import { import {
nextBuild, nextBuild,
...@@ -9,7 +9,7 @@ import { ...@@ -9,7 +9,7 @@ import {
waitFor, waitFor,
} from 'next-test-utils' } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2 jest.setTimeout(1000 * 60 * 2)
const appDir = join(__dirname, '..') const appDir = join(__dirname, '..')
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { join } from 'path' import { join } from 'path'
import { nextBuild, File } from 'next-test-utils' import { nextBuild, File } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 30 jest.setTimeout(1000 * 30)
const appDir = join(__dirname, '..') const appDir = join(__dirname, '..')
const configFile = new File(join(appDir, '/next.config.js')) const configFile = new File(join(appDir, '/next.config.js'))
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { join } from 'path' import { join } from 'path'
import { runNextCommand, findPort, File } from 'next-test-utils' import { runNextCommand, findPort, File } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 30 jest.setTimeout(1000 * 30)
const configFile = new File(join(__dirname, '../next.config.js')) const configFile = new File(join(__dirname, '../next.config.js'))
describe('Promise in next config', () => { describe('Promise in next config', () => {
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { join } from 'path' import { join } from 'path'
import { runNextCommand } from 'next-test-utils' import { runNextCommand } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5 jest.setTimeout(1000 * 60 * 5)
describe('Invalid resolve alias', () => { describe('Invalid resolve alias', () => {
it('should show relevant error when webpack resolve alias is wrong', async () => { it('should show relevant error when webpack resolve alias is wrong', async () => {
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { join } from 'path' import { join } from 'path'
import { import {
renderViaHTTP, renderViaHTTP,
...@@ -15,7 +15,7 @@ import rendering from './rendering' ...@@ -15,7 +15,7 @@ import rendering from './rendering'
import client from './client' import client from './client'
const context = {} const context = {}
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5 jest.setTimeout(1000 * 60 * 5)
describe('Configuration', () => { describe('Configuration', () => {
beforeAll(async () => { beforeAll(async () => {
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import path from 'path' import path from 'path'
import { import {
nextBuild, nextBuild,
...@@ -9,7 +9,7 @@ import { ...@@ -9,7 +9,7 @@ import {
renderViaHTTP, renderViaHTTP,
} from 'next-test-utils' } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5 jest.setTimeout(1000 * 60 * 5)
const appDir = path.join(__dirname, '..') const appDir = path.join(__dirname, '..')
describe('Errors on conflict between public file and page file', () => { describe('Errors on conflict between public file and page file', () => {
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { join } from 'path' import { join } from 'path'
import { killApp, nextBuild } from 'next-test-utils' import { nextBuild } from 'next-test-utils'
const appDir = join(__dirname, '../') const appDir = join(__dirname, '../')
let server jest.setTimeout(1000 * 60 * 2)
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2
describe('Conformance system', () => { describe('Conformance system', () => {
let build let build
...@@ -15,7 +14,6 @@ describe('Conformance system', () => { ...@@ -15,7 +14,6 @@ describe('Conformance system', () => {
stderr: true, stderr: true,
}) })
}) })
afterAll(() => killApp(server))
it('Should warn about sync external sync scripts', async () => { it('Should warn about sync external sync scripts', async () => {
const { stderr } = build const { stderr } = build
......
...@@ -5,16 +5,12 @@ import execa from 'execa' ...@@ -5,16 +5,12 @@ import execa from 'execa'
import os from 'os' import os from 'os'
const cli = require.resolve('create-next-app/dist/index.js') const cli = require.resolve('create-next-app/dist/index.js')
const cwd = path.join(
os.tmpdir(),
Math.random()
.toString(36)
.substring(2)
)
const run = (...args) => execa('node', [cli, ...args], { cwd }) jest.setTimeout(1000 * 60 * 2)
const runStarter = (...args) => {
const res = run(...args) const run = (cwd, ...args) => execa('node', [cli, ...args], { cwd })
const runStarter = (cwd, ...args) => {
const res = run(cwd, ...args)
res.stdout.on('data', data => { res.stdout.on('data', data => {
const stdout = data.toString() const stdout = data.toString()
...@@ -27,13 +23,24 @@ const runStarter = (...args) => { ...@@ -27,13 +23,24 @@ const runStarter = (...args) => {
return res return res
} }
describe('create next app', () => { async function usingTempDir(fn) {
beforeAll(async () => { const folder = path.join(
jest.setTimeout(1000 * 60 * 2) os.tmpdir(),
await fs.mkdirp(cwd) Math.random()
}) .toString(36)
.substring(2)
)
await fs.mkdirp(folder)
try {
return await fn(folder)
} finally {
await fs.remove(folder)
}
}
describe('create next app', () => {
it('non-empty directory', async () => { it('non-empty directory', async () => {
await usingTempDir(async cwd => {
const projectName = 'non-empty-directory' const projectName = 'non-empty-directory'
await fs.mkdirp(path.join(cwd, projectName)) await fs.mkdirp(path.join(cwd, projectName))
const pkg = path.join(cwd, projectName, 'package.json') const pkg = path.join(cwd, projectName, 'package.json')
...@@ -41,18 +48,20 @@ describe('create next app', () => { ...@@ -41,18 +48,20 @@ describe('create next app', () => {
expect.assertions(1) expect.assertions(1)
try { try {
await runStarter(projectName) await runStarter(cwd, projectName)
} catch (e) { } catch (e) {
expect(e.stdout).toMatch(/contains files that could conflict/) expect(e.stdout).toMatch(/contains files that could conflict/)
} }
}) })
})
// TODO: investigate why this test stalls on yarn install when // TODO: investigate why this test stalls on yarn install when
// stdin is piped instead of inherited on windows // stdin is piped instead of inherited on windows
if (process.platform !== 'win32') { if (process.platform !== 'win32') {
it('empty directory', async () => { it('empty directory', async () => {
await usingTempDir(async cwd => {
const projectName = 'empty-directory' const projectName = 'empty-directory'
const res = await runStarter(projectName) const res = await runStarter(cwd, projectName)
expect(res.exitCode).toBe(0) expect(res.exitCode).toBe(0)
expect( expect(
...@@ -62,13 +71,15 @@ describe('create next app', () => { ...@@ -62,13 +71,15 @@ describe('create next app', () => {
fs.existsSync(path.join(cwd, projectName, 'pages/index.js')) fs.existsSync(path.join(cwd, projectName, 'pages/index.js'))
).toBeTruthy() ).toBeTruthy()
}) })
})
} }
it('invalid example name', async () => { it('invalid example name', async () => {
await usingTempDir(async cwd => {
const projectName = 'invalid-example-name' const projectName = 'invalid-example-name'
expect.assertions(2) expect.assertions(2)
try { try {
await run(projectName, '--example', 'not a real example') await run(cwd, projectName, '--example', 'not a real example')
} catch (e) { } catch (e) {
expect(e.stderr).toMatch(/Could not locate an example named/i) expect(e.stderr).toMatch(/Could not locate an example named/i)
} }
...@@ -76,10 +87,12 @@ describe('create next app', () => { ...@@ -76,10 +87,12 @@ describe('create next app', () => {
fs.existsSync(path.join(cwd, projectName, 'package.json')) fs.existsSync(path.join(cwd, projectName, 'package.json'))
).toBeFalsy() ).toBeFalsy()
}) })
})
it('valid example', async () => { it('valid example', async () => {
await usingTempDir(async cwd => {
const projectName = 'valid-example' const projectName = 'valid-example'
const res = await run(projectName, '--example', 'basic-css') const res = await run(cwd, projectName, '--example', 'basic-css')
expect(res.exitCode).toBe(0) expect(res.exitCode).toBe(0)
expect( expect(
...@@ -93,10 +106,13 @@ describe('create next app', () => { ...@@ -93,10 +106,13 @@ describe('create next app', () => {
fs.existsSync(path.join(cwd, projectName, '.gitignore')) fs.existsSync(path.join(cwd, projectName, '.gitignore'))
).toBeTruthy() ).toBeTruthy()
}) })
})
it('should allow example with GitHub URL', async () => { it('should allow example with GitHub URL', async () => {
await usingTempDir(async cwd => {
const projectName = 'github-app' const projectName = 'github-app'
const res = await run( const res = await run(
cwd,
projectName, projectName,
'--example', '--example',
'https://github.com/zeit/next-learn-demo/tree/master/1-navigate-between-pages' 'https://github.com/zeit/next-learn-demo/tree/master/1-navigate-between-pages'
...@@ -116,10 +132,13 @@ describe('create next app', () => { ...@@ -116,10 +132,13 @@ describe('create next app', () => {
fs.existsSync(path.join(cwd, projectName, '.gitignore')) fs.existsSync(path.join(cwd, projectName, '.gitignore'))
).toBeTruthy() ).toBeTruthy()
}) })
})
it('should allow example with GitHub URL and example-path', async () => { it('should allow example with GitHub URL and example-path', async () => {
await usingTempDir(async cwd => {
const projectName = 'github-example-path' const projectName = 'github-example-path'
const res = await run( const res = await run(
cwd,
projectName, projectName,
'--example', '--example',
'https://github.com/zeit/next-learn-demo/tree/master', 'https://github.com/zeit/next-learn-demo/tree/master',
...@@ -141,10 +160,13 @@ describe('create next app', () => { ...@@ -141,10 +160,13 @@ describe('create next app', () => {
fs.existsSync(path.join(cwd, projectName, '.gitignore')) fs.existsSync(path.join(cwd, projectName, '.gitignore'))
).toBeTruthy() ).toBeTruthy()
}) })
})
it('should use --example-path over the file path in the GitHub URL', async () => { it('should use --example-path over the file path in the GitHub URL', async () => {
await usingTempDir(async cwd => {
const projectName = 'github-example-path-2' const projectName = 'github-example-path-2'
const res = await run( const res = await run(
cwd,
projectName, projectName,
'--example', '--example',
'https://github.com/zeit/next-learn-demo/tree/master/1-navigate-between-pages', 'https://github.com/zeit/next-learn-demo/tree/master/1-navigate-between-pages',
...@@ -166,13 +188,15 @@ describe('create next app', () => { ...@@ -166,13 +188,15 @@ describe('create next app', () => {
fs.existsSync(path.join(cwd, projectName, '.gitignore')) fs.existsSync(path.join(cwd, projectName, '.gitignore'))
).toBeTruthy() ).toBeTruthy()
}) })
})
// TODO: investigate why this test stalls on yarn install when // TODO: investigate why this test stalls on yarn install when
// stdin is piped instead of inherited on windows // stdin is piped instead of inherited on windows
if (process.platform !== 'win32') { if (process.platform !== 'win32') {
it('should allow to manually select an example', async () => { it('should allow to manually select an example', async () => {
await usingTempDir(async cwd => {
const runExample = (...args) => { const runExample = (...args) => {
const res = run(...args) const res = run(cwd, ...args)
function pickExample(data) { function pickExample(data) {
if (/hello-world/.test(data.toString())) { if (/hello-world/.test(data.toString())) {
...@@ -207,5 +231,6 @@ describe('create next app', () => { ...@@ -207,5 +231,6 @@ describe('create next app', () => {
expect(res.exitCode).toBe(0) expect(res.exitCode).toBe(0)
expect(res.stdout).toMatch(/Downloading files for example hello-world/) expect(res.stdout).toMatch(/Downloading files for example hello-world/)
}) })
})
} }
}) })
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { join } from 'path' import { join } from 'path'
import { remove } from 'fs-extra' import { remove } from 'fs-extra'
import { import {
...@@ -12,7 +12,7 @@ import { ...@@ -12,7 +12,7 @@ import {
import cheerio from 'cheerio' import cheerio from 'cheerio'
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 1 jest.setTimeout(1000 * 60 * 1)
const fixturesDir = join(__dirname, '../../css-fixtures') const fixturesDir = join(__dirname, '../../css-fixtures')
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { join } from 'path' import { join } from 'path'
import { readdir, readFile, remove } from 'fs-extra' import { readdir, readFile, remove } from 'fs-extra'
import { nextBuild } from 'next-test-utils' import { nextBuild } from 'next-test-utils'
import escapeStringRegexp from 'escape-string-regexp' import escapeStringRegexp from 'escape-string-regexp'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 1 jest.setTimeout(1000 * 60 * 1)
const fixturesDir = join(__dirname, '../..', 'css-fixtures') const fixturesDir = join(__dirname, '../..', 'css-fixtures')
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { readdir, readFile, remove } from 'fs-extra' import { readdir, readFile, remove } from 'fs-extra'
import { nextBuild } from 'next-test-utils' import { nextBuild } from 'next-test-utils'
import { join } from 'path' import { join } from 'path'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 1 jest.setTimeout(1000 * 60 * 1)
const fixturesDir = join(__dirname, '../fixtures') const fixturesDir = join(__dirname, '../fixtures')
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import cheerio from 'cheerio' import cheerio from 'cheerio'
import { readdir, readFile, remove } from 'fs-extra' import { readdir, readFile, remove } from 'fs-extra'
import { import {
...@@ -15,7 +15,7 @@ import { ...@@ -15,7 +15,7 @@ import {
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'
import { join } from 'path' import { join } from 'path'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 1 jest.setTimeout(1000 * 60 * 1)
const fixturesDir = join(__dirname, '../../css-fixtures') const fixturesDir = join(__dirname, '../../css-fixtures')
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import 'flat-map-polyfill' import 'flat-map-polyfill'
import { join } from 'path' import { join } from 'path'
import { readdir, readFile, remove } from 'fs-extra' import { readdir, readFile, remove } from 'fs-extra'
...@@ -16,7 +16,7 @@ import { ...@@ -16,7 +16,7 @@ import {
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'
import cheerio from 'cheerio' import cheerio from 'cheerio'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2 jest.setTimeout(1000 * 60 * 2)
const fixturesDir = join(__dirname, '../..', 'css-fixtures') const fixturesDir = join(__dirname, '../..', 'css-fixtures')
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import fs from 'fs-extra' import fs from 'fs-extra'
import { join } from 'path' import { join } from 'path'
import { import {
...@@ -11,7 +11,7 @@ import { ...@@ -11,7 +11,7 @@ import {
launchApp, launchApp,
} from 'next-test-utils' } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2 jest.setTimeout(1000 * 60 * 2)
const appDir = join(__dirname, '..') const appDir = join(__dirname, '..')
const page404 = join(appDir, 'pages/404.js') const page404 = join(appDir, 'pages/404.js')
const nextConfig = join(appDir, 'next.config.js') const nextConfig = join(appDir, 'next.config.js')
...@@ -39,7 +39,7 @@ describe('Custom _error', () => { ...@@ -39,7 +39,7 @@ describe('Custom _error', () => {
}, },
}) })
}) })
afterAll(() => killApp()) afterAll(() => killApp(app))
it('should not warn with /_error and /404 when rendering error first', async () => { it('should not warn with /_error and /404 when rendering error first', async () => {
stderr = '' stderr = ''
...@@ -62,7 +62,7 @@ describe('Custom _error', () => { ...@@ -62,7 +62,7 @@ describe('Custom _error', () => {
}, },
}) })
}) })
afterAll(() => killApp()) afterAll(() => killApp(app))
it('should not warn with /_error and /404', async () => { it('should not warn with /_error and /404', async () => {
stderr = '' stderr = ''
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { join } from 'path' import { join } from 'path'
import { import {
nextBuild, nextBuild,
...@@ -11,7 +11,7 @@ import { ...@@ -11,7 +11,7 @@ import {
File, File,
} from 'next-test-utils' } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 1 jest.setTimeout(1000 * 60 * 1)
const appDir = join(__dirname, '..') const appDir = join(__dirname, '..')
let appPort let appPort
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import fs from 'fs-extra' import fs from 'fs-extra'
import { join } from 'path' import { join } from 'path'
import { import {
...@@ -11,7 +11,7 @@ import { ...@@ -11,7 +11,7 @@ import {
renderViaHTTP, renderViaHTTP,
} from 'next-test-utils' } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2 jest.setTimeout(1000 * 60 * 2)
let appDir = join(__dirname, '..') let appDir = join(__dirname, '..')
let buildId let buildId
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import http from 'http' import http from 'http'
import url from 'url' import url from 'url'
import stripAnsi from 'strip-ansi' import stripAnsi from 'strip-ansi'
...@@ -21,7 +21,7 @@ import { ...@@ -21,7 +21,7 @@ import {
initNextServerScript, initNextServerScript,
} from 'next-test-utils' } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2 jest.setTimeout(1000 * 60 * 2)
let appDir = join(__dirname, '..') let appDir = join(__dirname, '..')
const nextConfigPath = join(appDir, 'next.config.js') const nextConfigPath = join(appDir, 'next.config.js')
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { join } from 'path' import { join } from 'path'
import { buildTS } from 'next-test-utils' import { buildTS } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2 jest.setTimeout(1000 * 60 * 2)
const appDir = join(__dirname, '../') const appDir = join(__dirname, '../')
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'
import { join } from 'path' import { join } from 'path'
import getPort from 'get-port' import getPort from 'get-port'
...@@ -20,7 +20,7 @@ const indexPg = new File(join(appDir, 'pages/index.js')) ...@@ -20,7 +20,7 @@ const indexPg = new File(join(appDir, 'pages/index.js'))
let appPort let appPort
let server let server
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2 jest.setTimeout(1000 * 60 * 2)
const context = {} const context = {}
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { join } from 'path' import { join } from 'path'
import cheerio from 'cheerio' import cheerio from 'cheerio'
import { import {
...@@ -10,7 +10,7 @@ import { ...@@ -10,7 +10,7 @@ import {
renderViaHTTP, renderViaHTTP,
} from 'next-test-utils' } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2 jest.setTimeout(1000 * 60 * 2)
const appDir = join(__dirname, '../') const appDir = join(__dirname, '../')
let appPort let appPort
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { join } from 'path' import { join } from 'path'
import cheerio from 'cheerio' import cheerio from 'cheerio'
import { import {
...@@ -17,7 +17,7 @@ const appDir = join(__dirname, '../') ...@@ -17,7 +17,7 @@ const appDir = join(__dirname, '../')
let appPort let appPort
let server let server
let app let app
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5 jest.setTimeout(1000 * 60 * 5)
const context = {} const context = {}
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import fs from 'fs-extra' import fs from 'fs-extra'
import { join } from 'path' import { join } from 'path'
import { BUILD_ID_FILE } from 'next/constants' import { BUILD_ID_FILE } from 'next/constants'
...@@ -11,7 +11,7 @@ import { ...@@ -11,7 +11,7 @@ import {
renderViaHTTP, renderViaHTTP,
} from 'next-test-utils' } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2 jest.setTimeout(1000 * 60 * 2)
const appDir = join(__dirname, '../') const appDir = join(__dirname, '../')
const nextConfig = join(appDir, 'next.config.js') const nextConfig = join(appDir, 'next.config.js')
let appPort let appPort
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import path from 'path' import path from 'path'
import { import {
...@@ -10,7 +10,7 @@ import { ...@@ -10,7 +10,7 @@ import {
killApp, killApp,
} from 'next-test-utils' } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 1 jest.setTimeout(1000 * 60 * 1)
const appDir = path.join(__dirname, '..') const appDir = path.join(__dirname, '..')
describe('Handles Duplicate Pages', () => { describe('Handles Duplicate Pages', () => {
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { join } from 'path' import { join } from 'path'
import { renderViaHTTP, launchApp, findPort, killApp } from 'next-test-utils' import { renderViaHTTP, launchApp, findPort, killApp } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 30 jest.setTimeout(1000 * 30)
let server let server
let appPort let appPort
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import fs from 'fs-extra' import fs from 'fs-extra'
import { join } from 'path' import { join } from 'path'
import { import {
...@@ -10,7 +10,7 @@ import { ...@@ -10,7 +10,7 @@ import {
waitFor, waitFor,
} from 'next-test-utils' } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 30 * 2 jest.setTimeout(1000 * 30 * 2)
let app let app
let appPort let appPort
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'
import { join } from 'path' import { join } from 'path'
import fs from 'fs-extra' import fs from 'fs-extra'
...@@ -17,7 +17,7 @@ import { ...@@ -17,7 +17,7 @@ import {
import cheerio from 'cheerio' import cheerio from 'cheerio'
import escapeRegex from 'escape-string-regexp' import escapeRegex from 'escape-string-regexp'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2 jest.setTimeout(1000 * 60 * 2)
let app let app
let appPort let appPort
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { join } from 'path' import { join } from 'path'
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'
import { import {
...@@ -10,7 +10,7 @@ import { ...@@ -10,7 +10,7 @@ import {
waitFor, waitFor,
} from 'next-test-utils' } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2 jest.setTimeout(1000 * 60 * 2)
const appDir = join(__dirname, '..') const appDir = join(__dirname, '..')
let output = '' let output = ''
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { join } from 'path' import { join } from 'path'
import fs from 'fs' import fs from 'fs'
import { fetchViaHTTP, findPort, launchApp, killApp } from 'next-test-utils' import { fetchViaHTTP, findPort, launchApp, killApp } from 'next-test-utils'
const context = {} const context = {}
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5 jest.setTimeout(1000 * 60 * 5)
describe('Empty Project', () => { describe('Empty Project', () => {
beforeAll(async () => { beforeAll(async () => {
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import url from 'url' import url from 'url'
import fs from 'fs-extra' import fs from 'fs-extra'
import { join } from 'path' import { join } from 'path'
...@@ -14,7 +14,7 @@ import { ...@@ -14,7 +14,7 @@ import {
fetchViaHTTP, fetchViaHTTP,
} from 'next-test-utils' } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2 jest.setTimeout(1000 * 60 * 2)
let app let app
let appPort let appPort
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import path from 'path' import path from 'path'
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'
import { import {
...@@ -11,7 +11,7 @@ import { ...@@ -11,7 +11,7 @@ import {
waitFor, waitFor,
} from 'next-test-utils' } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 1 jest.setTimeout(1000 * 60 * 1)
const appDir = path.join(__dirname, '..') const appDir = path.join(__dirname, '..')
let app let app
let port let port
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { join } from 'path' import { join } from 'path'
import fs from 'fs-extra' import fs from 'fs-extra'
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'
import { nextBuild, nextStart, findPort, killApp, check } from 'next-test-utils' import { nextBuild, nextStart, findPort, killApp, check } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 1 jest.setTimeout(1000 * 60 * 1)
const appDir = join(__dirname, '..') const appDir = join(__dirname, '..')
let app let app
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import path from 'path' import path from 'path'
import fs from 'fs-extra' import fs from 'fs-extra'
import { nextBuild, nextExport } from 'next-test-utils' import { nextBuild, nextExport } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 1 jest.setTimeout(1000 * 60 * 1)
const appDir = path.join(__dirname, '..') const appDir = path.join(__dirname, '..')
const nextConfig = path.join(appDir, 'next.config.js') const nextConfig = path.join(appDir, 'next.config.js')
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { promises } from 'fs' import { promises } from 'fs'
import { join } from 'path' import { join } from 'path'
import cheerio from 'cheerio' import cheerio from 'cheerio'
import { nextBuild, nextExport } from 'next-test-utils' import { nextBuild, nextExport } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5 jest.setTimeout(1000 * 60 * 5)
const { access, readFile } = promises const { access, readFile } = promises
const appDir = join(__dirname, '../') const appDir = join(__dirname, '../')
const outdir = join(appDir, 'out') const outdir = join(appDir, 'out')
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { promises } from 'fs' import { promises } from 'fs'
import { join } from 'path' import { join } from 'path'
import cheerio from 'cheerio' import cheerio from 'cheerio'
import { nextBuild, nextExport } from 'next-test-utils' import { nextBuild, nextExport } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5 jest.setTimeout(1000 * 60 * 5)
const { access, readFile } = promises const { access, readFile } = promises
const appDir = join(__dirname, '../') const appDir = join(__dirname, '../')
const outdir = join(appDir, 'out') const outdir = join(appDir, 'out')
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
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'
...@@ -11,7 +11,7 @@ import { ...@@ -11,7 +11,7 @@ import {
renderViaHTTP, renderViaHTTP,
} from 'next-test-utils' } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 jest.setTimeout(1000 * 60)
const appDir = join(__dirname, '../') const appDir = join(__dirname, '../')
const outdir = join(appDir, 'out') const outdir = join(appDir, 'out')
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
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'
...@@ -11,7 +11,7 @@ import { ...@@ -11,7 +11,7 @@ import {
renderViaHTTP, renderViaHTTP,
} from 'next-test-utils' } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 jest.setTimeout(1000 * 60)
const appDir = join(__dirname, '../') const appDir = join(__dirname, '../')
const outdir = join(appDir, 'out') const outdir = join(appDir, 'out')
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { remove } from 'fs-extra' import { remove } from 'fs-extra'
import { nextBuild, nextExport, nextExportDefault } from 'next-test-utils' import { nextBuild, nextExport, nextExportDefault } from 'next-test-utils'
import path, { join } from 'path' import path, { join } from 'path'
import fs from 'fs' import fs from 'fs'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2 jest.setTimeout(1000 * 60 * 2)
const fixturesDir = join(__dirname, '..', 'fixtures') const fixturesDir = join(__dirname, '..', 'fixtures')
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { promises } from 'fs' import { promises } from 'fs'
import { join } from 'path' import { join } from 'path'
import { nextBuild, nextExport } from 'next-test-utils' import { nextBuild, nextExport } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5 jest.setTimeout(1000 * 60 * 5)
const { readFile } = promises const { readFile } = promises
const appDir = join(__dirname, '../') const appDir = join(__dirname, '../')
const outdir = join(appDir, 'out') const outdir = join(appDir, 'out')
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { join } from 'path' import { join } from 'path'
import { promises } from 'fs' import { promises } from 'fs'
import { import {
...@@ -20,7 +20,7 @@ import dev from './dev' ...@@ -20,7 +20,7 @@ import dev from './dev'
import dynamic from './dynamic' import dynamic from './dynamic'
import apiRoutes from './api-routes' import apiRoutes from './api-routes'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5 jest.setTimeout(1000 * 60 * 5)
const { access, mkdir, writeFile } = promises const { access, mkdir, writeFile } = promises
const appDir = join(__dirname, '../') const appDir = join(__dirname, '../')
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { promises } from 'fs' import { promises } from 'fs'
import { join } from 'path' import { join } from 'path'
import cheerio from 'cheerio' import cheerio from 'cheerio'
import { nextBuild, nextExport } from 'next-test-utils' import { nextBuild, nextExport } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5 jest.setTimeout(1000 * 60 * 5)
const { access, readFile } = promises const { access, readFile } = promises
const appDir = join(__dirname, '../') const appDir = join(__dirname, '../')
const outdir = join(appDir, 'out') const outdir = join(appDir, 'out')
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { promises } from 'fs' import { promises } from 'fs'
import { join } from 'path' import { join } from 'path'
import cheerio from 'cheerio' import cheerio from 'cheerio'
import { nextBuild, nextExport } from 'next-test-utils' import { nextBuild, nextExport } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5 jest.setTimeout(1000 * 60 * 5)
const { access, readFile } = promises const { access, readFile } = promises
const appDir = join(__dirname, '../') const appDir = join(__dirname, '../')
const outdir = join(appDir, 'out') const outdir = join(appDir, 'out')
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { join } from 'path' import { join } from 'path'
import { import {
nextBuild, nextBuild,
...@@ -20,7 +20,7 @@ import { promises } from 'fs' ...@@ -20,7 +20,7 @@ import { promises } from 'fs'
import dynamic from './dynamic' import dynamic from './dynamic'
import apiRoutes from './api-routes' import apiRoutes from './api-routes'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5 jest.setTimeout(1000 * 60 * 5)
const { access, mkdir, writeFile } = promises const { access, mkdir, writeFile } = promises
const appDir = join(__dirname, '../') const appDir = join(__dirname, '../')
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { join } from 'path' import { join } from 'path'
import { import {
killApp, killApp,
...@@ -12,7 +12,7 @@ import { ...@@ -12,7 +12,7 @@ import {
const appDir = join(__dirname, '../') const appDir = join(__dirname, '../')
let appPort let appPort
let app let app
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5 jest.setTimeout(1000 * 60 * 5)
describe('External Assets', () => { describe('External Assets', () => {
beforeAll(async () => { beforeAll(async () => {
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import fs from 'fs-extra' import fs from 'fs-extra'
import path from 'path' import path from 'path'
import { nextBuild } from 'next-test-utils' import { nextBuild } from 'next-test-utils'
import escapeStringRegexp from 'escape-string-regexp' import escapeStringRegexp from 'escape-string-regexp'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 1 jest.setTimeout(1000 * 60 * 1)
const appDir = path.join(__dirname, '../app') const appDir = path.join(__dirname, '../app')
let buildId let buildId
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import fs from 'fs-extra' import fs from 'fs-extra'
import { join } from 'path' import { join } from 'path'
import { import {
...@@ -13,7 +13,7 @@ import { ...@@ -13,7 +13,7 @@ import {
} from 'next-test-utils' } from 'next-test-utils'
import clone from 'clone' import clone from 'clone'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2 jest.setTimeout(1000 * 60 * 2)
const appDir = join(__dirname, '../') const appDir = join(__dirname, '../')
const nextConfig = join(appDir, 'next.config.js') const nextConfig = join(appDir, 'next.config.js')
let appPort let appPort
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import fs from 'fs-extra' import fs from 'fs-extra'
import { join } from 'path' import { join } from 'path'
import { import {
...@@ -15,7 +15,7 @@ import { ...@@ -15,7 +15,7 @@ import {
import clone from 'clone' import clone from 'clone'
import cheerio from 'cheerio' import cheerio from 'cheerio'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2 jest.setTimeout(1000 * 60 * 2)
const appDir = join(__dirname, '../') const appDir = join(__dirname, '../')
const nextConfig = join(appDir, 'next.config.js') const nextConfig = join(appDir, 'next.config.js')
let appPort let appPort
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import fs from 'fs-extra' import fs from 'fs-extra'
import { join } from 'path' import { join } from 'path'
import { import {
...@@ -11,7 +11,7 @@ import { ...@@ -11,7 +11,7 @@ import {
launchApp, launchApp,
} from 'next-test-utils' } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2 jest.setTimeout(1000 * 60 * 2)
const appDir = join(__dirname, '../') const appDir = join(__dirname, '../')
let appPort let appPort
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import { join } from 'path' import { join } from 'path'
import getPort from 'get-port' import getPort from 'get-port'
import { fetchViaHTTP, initNextServerScript, killApp } from 'next-test-utils' import { fetchViaHTTP, initNextServerScript, killApp } from 'next-test-utils'
...@@ -8,7 +8,7 @@ import clone from 'clone' ...@@ -8,7 +8,7 @@ import clone from 'clone'
const appDir = join(__dirname, '../') const appDir = join(__dirname, '../')
let appPort let appPort
let server let server
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2 jest.setTimeout(1000 * 60 * 2)
const context = {} const context = {}
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import path from 'path' import path from 'path'
import fs from 'fs-extra' import fs from 'fs-extra'
import { nextBuild } from 'next-test-utils' import { nextBuild } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 1 jest.setTimeout(1000 * 60 * 1)
const appDir = path.join(__dirname, '..') const appDir = path.join(__dirname, '..')
const nextConfig = path.join(appDir, 'next.config.js') const nextConfig = path.join(appDir, 'next.config.js')
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'
import { join } from 'path' import { join } from 'path'
import { import {
...@@ -10,7 +10,7 @@ import { ...@@ -10,7 +10,7 @@ import {
renderViaHTTP, renderViaHTTP,
} from 'next-test-utils' } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5 jest.setTimeout(1000 * 60 * 5)
let appDir = join(__dirname, '../') let appDir = join(__dirname, '../')
let server let server
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import fs from 'fs-extra' import fs from 'fs-extra'
import { nextBuild, nextExport } from 'next-test-utils' import { nextBuild, nextExport } from 'next-test-utils'
import { join } from 'path' import { join } from 'path'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2 jest.setTimeout(1000 * 60 * 2)
const appDir = join(__dirname, '..') const appDir = join(__dirname, '..')
const nextConfig = join(appDir, 'next.config.js') const nextConfig = join(appDir, 'next.config.js')
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import cheerio from 'cheerio' import cheerio from 'cheerio'
import cookie from 'cookie' import cookie from 'cookie'
import fs from 'fs-extra' import fs from 'fs-extra'
...@@ -18,7 +18,7 @@ import os from 'os' ...@@ -18,7 +18,7 @@ import os from 'os'
import { join } from 'path' import { join } from 'path'
import qs from 'querystring' import qs from 'querystring'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2 jest.setTimeout(1000 * 60 * 2)
const appDir = join(__dirname, '..') const appDir = join(__dirname, '..')
const nextConfigPath = join(appDir, 'next.config.js') const nextConfigPath = join(appDir, 'next.config.js')
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import cheerio from 'cheerio' import cheerio from 'cheerio'
import escapeRegex from 'escape-string-regexp' import escapeRegex from 'escape-string-regexp'
import fs from 'fs-extra' import fs from 'fs-extra'
...@@ -20,7 +20,7 @@ import { ...@@ -20,7 +20,7 @@ import {
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'
import { join } from 'path' import { join } from 'path'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2 jest.setTimeout(1000 * 60 * 2)
const appDir = join(__dirname, '..') const appDir = join(__dirname, '..')
const nextConfig = join(appDir, 'next.config.js') const nextConfig = join(appDir, 'next.config.js')
let app let app
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import cheerio from 'cheerio' import cheerio from 'cheerio'
import fs from 'fs-extra' import fs from 'fs-extra'
import { import {
...@@ -12,7 +12,7 @@ import { ...@@ -12,7 +12,7 @@ import {
} from 'next-test-utils' } from 'next-test-utils'
import { join } from 'path' import { join } from 'path'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2 jest.setTimeout(1000 * 60 * 2)
const appDir = join(__dirname, '..') const appDir = join(__dirname, '..')
const appPage = join(appDir, 'pages/_app.js') const appPage = join(appDir, 'pages/_app.js')
const indexPage = join(appDir, 'pages/index.js') const indexPage = join(appDir, 'pages/index.js')
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import fs from 'fs-extra' import fs from 'fs-extra'
import { join } from 'path' import { join } from 'path'
import cheerio from 'cheerio' import cheerio from 'cheerio'
...@@ -12,7 +12,7 @@ import { ...@@ -12,7 +12,7 @@ import {
nextStart, nextStart,
} from 'next-test-utils' } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2 jest.setTimeout(1000 * 60 * 2)
const appDir = join(__dirname, '..') const appDir = join(__dirname, '..')
const nextConfig = join(appDir, 'next.config.js') const nextConfig = join(appDir, 'next.config.js')
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import path from 'path' import path from 'path'
import { nextBuild } from 'next-test-utils' import { nextBuild } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2 jest.setTimeout(1000 * 60 * 2)
const appDir = path.join(__dirname, '..') const appDir = path.join(__dirname, '..')
describe('Handle non-page in pages when target: serverless', () => { describe('Handle non-page in pages when target: serverless', () => {
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import path from 'path' import path from 'path'
import { nextBuild } from 'next-test-utils' import { nextBuild } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5 jest.setTimeout(1000 * 60 * 5)
const appDir = path.join(__dirname, '..') const appDir = path.join(__dirname, '..')
describe('Handles Errors During Export', () => { describe('Handles Errors During Export', () => {
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
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'
...@@ -12,7 +12,7 @@ import { ...@@ -12,7 +12,7 @@ import {
check, check,
} from 'next-test-utils' } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 1 jest.setTimeout(1000 * 60 * 1)
const appDir = path.join(__dirname, '..') const appDir = path.join(__dirname, '..')
let app let app
let appPort let appPort
......
/* eslint-env jest */ /* eslint-env jest */
/* global jasmine */
import path from 'path' import path from 'path'
import webdriver from 'next-webdriver' import webdriver from 'next-webdriver'
import { import {
...@@ -10,7 +10,7 @@ import { ...@@ -10,7 +10,7 @@ import {
killApp, killApp,
} from 'next-test-utils' } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 1 jest.setTimeout(1000 * 60 * 1)
const appDir = path.join(__dirname, '..') const appDir = path.join(__dirname, '..')
let app let app
let appPort let appPort
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment