Skip to content

Commit a862d40

Browse files
authored
chore: update deps (#462)
1 parent c9fa515 commit a862d40

File tree

6 files changed

+830
-798
lines changed

6 files changed

+830
-798
lines changed

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,23 @@
2222
},
2323
"devDependencies": {
2424
"@babel/cli": "^7.16.0",
25-
"@babel/core": "^7.16.0",
26-
"@babel/eslint-parser": "^7.16.3",
27-
"@babel/preset-env": "^7.16.4",
28-
"babel-jest": "^27.3.1",
25+
"@babel/core": "^7.16.5",
26+
"@babel/eslint-parser": "^7.16.5",
27+
"@babel/preset-env": "^7.16.5",
28+
"babel-jest": "^27.4.5",
2929
"conventional-github-releaser": "^3.1.5",
3030
"cross-env": "^7.0.3",
31-
"eslint": "^8.3.0",
31+
"eslint": "^8.4.1",
3232
"eslint-config-airbnb-base": "^15.0.0",
3333
"eslint-config-prettier": "^8.3.0",
3434
"eslint-plugin-import": "^2.25.3",
3535
"express": "^4.17.1",
3636
"husky": "^7.0.4",
37-
"jest": "^27.3.1",
37+
"jest": "^27.4.5",
3838
"lerna": "^4.0.0",
3939
"lint-staged": "^12.1.2",
40-
"prettier": "^2.5.0",
41-
"puppeteer": "^11.0.0",
40+
"prettier": "^2.5.1",
41+
"puppeteer": "^12.0.1",
4242
"rimraf": "^3.0.2"
4343
}
4444
}

packages/jest-dev-server/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
"dependencies": {
2121
"chalk": "^4.1.2",
2222
"cwd": "^0.10.0",
23-
"find-process": "^1.4.5",
24-
"prompts": "^2.4.1",
23+
"find-process": "^1.4.7",
24+
"prompts": "^2.4.2",
2525
"spawnd": "^6.0.2",
2626
"tree-kill": "^1.2.2",
2727
"wait-on": "^6.0.0"

packages/jest-environment-puppeteer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"chalk": "^4.1.2",
2525
"cwd": "^0.10.0",
2626
"jest-dev-server": "^6.0.2",
27-
"jest-environment-node": "^27.3.1",
27+
"jest-environment-node": "^27.4.4",
2828
"merge-deep": "^3.0.3"
2929
}
3030
}

packages/jest-environment-puppeteer/src/global.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export async function setup(jestConfig = {}) {
2727
process.env.BROWSERS_COUNT = browsersCount
2828

2929
let wsEndpoints = []
30-
if(config.connect && config.connect.browserWSEndpoint) {
30+
if (config.connect && config.connect.browserWSEndpoint) {
3131
wsEndpoints = [config.connect.browserWSEndpoint]
3232
} else {
3333
browsers = await Promise.all(

packages/jest-environment-puppeteer/tests/setup.test.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import puppeteer from 'puppeteer'
44
import { setup, teardown } from '../src/global'
55

66
describe('setup', () => {
7-
describe('browserWSEndpoint in config connect' , () => {
7+
describe('browserWSEndpoint in config connect', () => {
88
const connectSpy = jest.spyOn(puppeteer, 'connect')
99
beforeEach(() => {
1010
process.env.JEST_PUPPETEER_CONFIG = path.resolve(
@@ -17,7 +17,7 @@ describe('setup', () => {
1717
await setup()
1818
expect(connectSpy).not.toHaveBeenCalled()
1919
})
20-
20+
2121
it('should set the ws-endpoint to the one provided in config', async () => {
2222
await setup()
2323
expect(process.env.BROWSERS_COUNT).toBe('1')
@@ -26,7 +26,7 @@ describe('setup', () => {
2626
})
2727
})
2828

29-
describe('browserWSEndpoint not in config connect' , () => {
29+
describe('browserWSEndpoint not in config connect', () => {
3030
const launchSpy = jest.spyOn(puppeteer, 'launch')
3131
beforeEach(() => {
3232
process.env.JEST_PUPPETEER_CONFIG = path.resolve(
@@ -42,12 +42,13 @@ describe('setup', () => {
4242
await setup()
4343
expect(launchSpy).toHaveBeenCalled()
4444
})
45-
45+
4646
it('should use ws-endpoint generated by launch or connect', async () => {
4747
await setup()
4848
expect(process.env.BROWSERS_COUNT).toBe('1')
4949
const wsEndPoint = JSON.parse(process.env.PUPPETEER_WS_ENDPOINTS)[0]
50-
const wsRegex = /^(ws):\/\/(127.0.0.1):(?<num>\d{4,5})(\/devtools\/browser\/)(.*)$/
50+
const wsRegex =
51+
/^(ws):\/\/(127.0.0.1):(?<num>\d{4,5})(\/devtools\/browser\/)(.*)$/
5152
expect(wsEndPoint).toMatch(wsRegex)
5253
})
5354
})

0 commit comments

Comments
 (0)