1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
next.js/test/jest-global-setup.js

15 lines
313 B
JavaScript
Raw Normal View History

'use strict'
const chromedriver = require('chromedriver')
const waitPort = require('wait-port')
module.exports = async function globalSetup () {
chromedriver.start()
// https://github.com/giggio/node-chromedriver/issues/117
await waitPort({
port: 9515,
timeout: 1000 * 60 * 2 // 2 Minutes
})
}