Skip to content

Commit

Permalink
chore: downgrade puppeteer to ^ 1.20.0
Browse files Browse the repository at this point in the history
It fixes browser's new page testing step
  • Loading branch information
francisrod01 committed Sep 11, 2023
1 parent 8d06507 commit 2071e35
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
7 changes: 3 additions & 4 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
// testTimeout: 30000,
testTimeout: 120000,
setupFilesAfterEnv: ['./__tests__/jest.setup.js'],
testPathIgnorePatterns: [
Expand All @@ -13,8 +12,8 @@ module.exports = {
'./__tests__/jest.setup.js'
],
verbose: true,
detectOpenHandles: true,
collectCoverage: true,
forceExit: true,
// detectOpenHandles: true,
// collectCoverage: true,
// forceExit: true,
moduleDirectories: ["node_modules", "src"]
};
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@kill-comment": "Kill a process running in a specific port: PORT=3000 npm run kill",
"kill": "kill $(lsof -t -i:$PORT) && echo '> KILLED!' || echo '> The port was already dead'",
"@test-comment": "It will run: jest --env=node --colors --coverage test --runInBand --detectOpenHandles --forceExit",
"test": "jest"
"test": "jest --no-cache --runInBand --detectOpenHandles --forceExit"
},
"author": "",
"license": "ISC",
Expand All @@ -24,17 +24,17 @@
"cookie-session": "^2.0.0",
"express": "^4.18.2",
"migrate-mongoose": "^4.0.0",
"mongoose": "5.10.11",
"mongoose": "^5.13.20",
"passport": "^0.6.0",
"passport-google-oauth20": "^2.0.0",
"path-parser": "^6.1.0",
"redis": "2.8.0",
"uuid": "^9.0.0"
},
"devDependencies": {
"jest": "^29.6.4",
"jest": "^24.9.0",
"nodemon": "^3.0.1",
"puppeteer": "^21.1.1",
"ts-jest": "^29.1.1"
"puppeteer": "^1.20.0",
"ts-jest": "^24.3.0"
}
}

0 comments on commit 2071e35

Please sign in to comment.