Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 14 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
"license": "MIT",
"dependencies": {
"chalk": "^4.1.0",
"chrome-launcher": "^0.15.0",
"chrome-launcher": "^1.2.1",
"compression": "^1.7.4",
"dotenv": "^16.0.0",
"dotenv": "^17.2.3",
"express": "^4.17.1",
"html-minifier-terser": "^7.2.0",
"lighthouse": "^9.6.3",
"puppeteer": "^24.8.2"
"puppeteer": "^24.29.1"
},
"engines": {
"node": ">=18.14.0"
Expand All @@ -47,21 +47,25 @@
"@commitlint/cli": "^17.0.0",
"@commitlint/config-conventional": "^17.0.0",
"cypress": "^13.17.0",
"eslint": "^8.32.0",
"eslint-plugin-cypress": "^2.11.2",
"eslint-plugin-import": "^2.27.4",
"eslint": "^8.57.1",
"eslint-plugin-cypress": "^2.15.2",
"eslint-plugin-import": "^2.32.0",
"husky": "^8.0.1",
"jest": "^29.0.0",
"jest": "^30.0.0",
"netlify-plugin-cypress": "^2.2.1",
"prettier": "^2.0.0",
"strip-ansi": "^7.0.1"
"strip-ansi": "^7.1.2"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"resolutions": {
"koa": "^2.15.4"
}
"koa": "^2.15.4",
"ws": "^8.17.1",
"tar-fs": "^2.1.4",
"@koa/cors": "^5.0.0"
},
"packageManager": "[email protected]+sha256.c17d3797fb9a9115bf375e31bfd30058cac6bc9c3b8807a3d8cb2094794b51ca"
}
6 changes: 2 additions & 4 deletions src/e2e/mocks/chrome-launcher.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
const chromeLauncher = () =>
jest.unstable_mockModule('chrome-launcher', () => {
return {
default: {
launch: () =>
Promise.resolve({ port: 49920, kill: () => Promise.resolve() }),
},
launch: () =>
Promise.resolve({ port: 49920, kill: () => Promise.resolve() }),
};
});

Expand Down
2 changes: 1 addition & 1 deletion src/run-lighthouse.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import puppeteer from 'puppeteer';
import lighthouse from 'lighthouse';
import log from 'lighthouse-logger';
import chromeLauncher from 'chrome-launcher';
import * as chromeLauncher from 'chrome-launcher';

export const getBrowserPath = async () => {
const browser = await puppeteer.launch({
Expand Down
Loading
Loading