Skip to content

Commit

Permalink
Upgrade packages
Browse files Browse the repository at this point in the history
  • Loading branch information
rosczja authored and rosczja committed Nov 30, 2021
1 parent 2a7ba8e commit 20a75b8
Show file tree
Hide file tree
Showing 6 changed files with 214 additions and 514 deletions.
2 changes: 1 addition & 1 deletion example/jest-puppeteer-react.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module.exports = {
filename: '[name].js',
},
devServer: {
https: true,
server: 'https',
},
resolve: {
alias: aliasObject,
Expand Down
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,19 @@
},
"homepage": "https://github.com/hapag-lloyd/jest-puppeteer-react#readme",
"dependencies": {
"debug": "^4.3.2",
"debug": "^4.3.3",
"docker-cli-js": "^2.8.0",
"expect-puppeteer": "^6.0.0",
"expect-puppeteer": "^6.0.2",
"format-util": "^1.0.5",
"glob": "^7.2.0",
"jest-each": "^27.3.1",
"jest-environment-node": "^27.3.1",
"jest-environment-puppeteer": "^6.0.0",
"jest-environment-node": "^27.4.1",
"jest-environment-puppeteer": "^6.0.2",
"jest-image-snapshot": "^4.5.1",
"jest-puppeteer": "^6.0.0",
"lodash.merge": "^4.6.2",
"jest-puppeteer": "^6.0.2",
"lodash": "^4.17.21",
"ora": "^5.4.0",
"pretty-format": "^27.3.1"
"pretty-format": "^27.4.1"
},
"peerDependencies": {
"jest": "27.x",
Expand All @@ -67,13 +67,13 @@
"devDependencies": {
"husky": "^4.3.8",
"mkdirp": "^1.0.4",
"prettier": "^2.4.1",
"pretty-quick": "^3.1.1",
"prettier": "^2.5.0",
"pretty-quick": "^3.1.2",
"puppeteer": "^10.4.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"webpack": "^5.59.1",
"webpack-dev-server": "^4.3.1",
"webpack": "^5.64.4",
"webpack-dev-server": "^4.6.0",
"yalc": "^1.0.0-pre.53"
},
"prettier": {
Expand Down
2 changes: 1 addition & 1 deletion src/render.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const merge = require('lodash.merge');
const merge = require('lodash/merge');
const debug = require('debug')('jest-puppeteer-react');

async function render(reactNode, options) {
Expand Down
12 changes: 7 additions & 5 deletions src/webpack/globals.browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,14 @@ const arrayFormat = (title, ...args) => {
return format(prettyTitle, ...remainingArgs.slice(0, placeholders.length - prettyIndexes.length));
};

const each = (cb) => (...args) => {
return (title, testFun) => {
const table = args[0].every(Array.isArray) ? args[0] : args[0].map((entry) => [entry]);
return table.forEach((row) => cb(arrayFormat(title, ...row), applyRestParams(row, testFun)));
const each =
(cb) =>
(...args) => {
return (title, testFun) => {
const table = args[0].every(Array.isArray) ? args[0] : args[0].map((entry) => [entry]);
return table.forEach((row) => cb(arrayFormat(title, ...row), applyRestParams(row, testFun)));
};
};
};

window.describe = (name, fun) => {
window.__path.push(name);
Expand Down
2 changes: 1 addition & 1 deletion src/webpack/render.browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ export const render = async (reactNode, options) => {
reactNode,
path: [...window.__path],
});

return window.page;
};
Loading

0 comments on commit 20a75b8

Please sign in to comment.