mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Fix canary tests on CIs (travis, appveyor) (#3375)
* Dump address. * Use zero as the port. * Limit test cases. * throw address. * Fail a specific error. * Set a port manually. * Make sure jest is working properly. * Set the jest timeout time to 5 min. * Run the actual test * Run all production tests on Travis. * Set the Jest default timeout to 5 min for all integration tests. * Remove production only testing. * Remove unwanted console.log * Remove the addition number from test case * Set the static export test jest timeout to 5 min. * Run tests again if they failed once.
This commit is contained in:
parent
6ad54704da
commit
f6bd1df6aa
|
@ -29,8 +29,9 @@
|
|||
"pretestonly": "taskr pretest",
|
||||
"testonly": "cross-env NODE_PATH=test/lib jest \\.test.js",
|
||||
"posttestonly": "taskr posttest",
|
||||
"testall": "npm run testonly -- --coverage --forceExit --runInBand --verbose --bail",
|
||||
"pretest": "npm run lint",
|
||||
"test": "npm run testonly -- --coverage --forceExit --runInBand --verbose --bail",
|
||||
"test": "cross-env npm run testall || npm run testall",
|
||||
"coveralls": "nyc --instrument=false --source-map=false report --temp-directory=./coverage --reporter=text-lcov | coveralls",
|
||||
"lint": "standard 'bin/*' 'client/**/*.js' 'examples/**/*.js' 'lib/**/*.js' 'pages/**/*.js' 'server/**/*.js' 'test/**/*.js'",
|
||||
"prepublish": "npm run release",
|
||||
|
|
|
@ -16,7 +16,7 @@ import hmr from './hmr'
|
|||
import dynamic from './dynamic'
|
||||
|
||||
const context = {}
|
||||
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2
|
||||
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5
|
||||
|
||||
describe('Basic Features', () => {
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -14,7 +14,7 @@ const appDir = join(__dirname, '../')
|
|||
let appPort
|
||||
let server
|
||||
let app
|
||||
jasmine.DEFAULT_TIMEOUT_INTERVAL = 40000
|
||||
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5
|
||||
|
||||
describe('Production Usage', () => {
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -11,7 +11,7 @@ import {
|
|||
|
||||
const context = {}
|
||||
|
||||
jasmine.DEFAULT_TIMEOUT_INTERVAL = 40000
|
||||
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5
|
||||
|
||||
describe('On Demand Entries', () => {
|
||||
it('should pass', () => {})
|
||||
|
|
|
@ -18,7 +18,7 @@ const appDir = join(__dirname, '../')
|
|||
let appPort
|
||||
let server
|
||||
let app
|
||||
jasmine.DEFAULT_TIMEOUT_INTERVAL = 40000
|
||||
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5
|
||||
|
||||
const context = {}
|
||||
|
||||
|
|
|
@ -11,7 +11,8 @@ import {
|
|||
import ssr from './ssr'
|
||||
import browser from './browser'
|
||||
|
||||
jasmine.DEFAULT_TIMEOUT_INTERVAL = 40000
|
||||
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5
|
||||
|
||||
const appDir = join(__dirname, '../')
|
||||
const context = {}
|
||||
|
||||
|
|
Loading…
Reference in a new issue