Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update deps #457

Merged
merged 2 commits into from Nov 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
26 changes: 13 additions & 13 deletions package.json
Expand Up @@ -21,24 +21,24 @@
]
},
"devDependencies": {
"@babel/cli": "^7.15.7",
"@babel/core": "^7.15.5",
"@babel/eslint-parser": "^7.15.7",
"@babel/preset-env": "^7.15.6",
"babel-jest": "^27.2.1",
"@babel/cli": "^7.16.0",
"@babel/core": "^7.16.0",
"@babel/eslint-parser": "^7.16.3",
"@babel/preset-env": "^7.16.4",
"babel-jest": "^27.3.1",
"conventional-github-releaser": "^3.1.5",
"cross-env": "^7.0.3",
"eslint": "^7.32.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint": "^8.3.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-import": "^2.25.3",
"express": "^4.17.1",
"husky": "^7.0.2",
"jest": "^27.2.1",
"husky": "^7.0.4",
"jest": "^27.3.1",
"lerna": "^4.0.0",
"lint-staged": "^11.1.2",
"prettier": "^2.4.1",
"puppeteer": "^10.4.0",
"lint-staged": "^12.1.2",
"prettier": "^2.5.0",
"puppeteer": "^11.0.0",
"rimraf": "^3.0.2"
}
}
7 changes: 3 additions & 4 deletions packages/expect-puppeteer/src/index.js
Expand Up @@ -10,7 +10,8 @@ import toMatch from './matchers/toMatch'
import toMatchElement from './matchers/toMatchElement'
import toSelect from './matchers/toSelect'
import toUploadFile from './matchers/toUploadFile'
import { setDefaultOptions, getDefaultOptions } from './options'

export { setDefaultOptions, getDefaultOptions } from './options'

const pageMatchers = {
toClick,
Expand Down Expand Up @@ -109,6 +110,4 @@ if (typeof global.expect !== 'undefined') {
})
}

module.exports = expectPuppeteer
module.exports.setDefaultOptions = setDefaultOptions
module.exports.getDefaultOptions = getDefaultOptions
export default expectPuppeteer
13 changes: 7 additions & 6 deletions packages/jest-dev-server/src/global.js
Expand Up @@ -56,7 +56,7 @@ async function killProc(proc) {
console.log(chalk.green(`Successfully killed process ${proc.name}`))
}

function runServer(config = {}, index) {
function runServer(config = {}, index = 0) {
if (!config.command) {
throw new JestDevServerError(
'You must define a `command`',
Expand Down Expand Up @@ -89,13 +89,13 @@ async function outOfStin(block) {
return result
}

function getIsPortTaken(config) {
async function getIsPortTaken(config) {
let server
const cleanupAndReturn = (result) =>
new Promise((resolve) =>
server.once('close', () => resolve(result)).close(),
)
return new Promise((resolve, reject) => {
new Promise((resolve) => {
server.once('close', () => resolve(result)).close()
})
const val = await new Promise((resolve, reject) => {
server = net
.createServer()
.once('error', (err) =>
Expand All @@ -104,6 +104,7 @@ function getIsPortTaken(config) {
.once('listening', () => resolve(cleanupAndReturn(false)))
.listen(config.port, config.host)
})
return val
}

export async function setup(providedConfigs) {
Expand Down
4 changes: 2 additions & 2 deletions packages/jest-environment-puppeteer/package.json
Expand Up @@ -21,10 +21,10 @@
"prepublishOnly": "yarn build"
},
"dependencies": {
"chalk": "^4.1.1",
"chalk": "^4.1.2",
"cwd": "^0.10.0",
"jest-dev-server": "^6.0.0",
"jest-environment-node": "^27.0.1",
"jest-environment-node": "^27.3.1",
"merge-deep": "^3.0.3"
}
}
2 changes: 1 addition & 1 deletion packages/spawnd/package.json
Expand Up @@ -23,7 +23,7 @@
},
"dependencies": {
"exit": "^0.1.2",
"signal-exit": "^3.0.3",
"signal-exit": "^3.0.6",
"tree-kill": "^1.2.2"
}
}
2 changes: 1 addition & 1 deletion packages/spawnd/src/index.js
Expand Up @@ -36,4 +36,4 @@ function spawnd(command, options) {
return proc
}

module.exports = spawnd
export default spawnd