Skip to content

Commit

Permalink
fix: update deps (#457)
Browse files Browse the repository at this point in the history
  • Loading branch information
UziTech committed Nov 25, 2021
1 parent 51b8706 commit bcd0415
Show file tree
Hide file tree
Showing 7 changed files with 1,299 additions and 1,340 deletions.
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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

This comment has been minimized.

This comment has been minimized.

Copy link
@UziTech

UziTech Jun 16, 2022

Author Contributor

If you want to create a PR to change it back we could release it under a major update 😁👍

13 changes: 7 additions & 6 deletions packages/jest-dev-server/src/global.js
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ function spawnd(command, options) {
return proc
}

module.exports = spawnd
export default spawnd
Loading

0 comments on commit bcd0415

Please sign in to comment.