Skip to content

Commit

Permalink
try remote puppeteer
Browse files Browse the repository at this point in the history
  • Loading branch information
mcrowder65 committed Sep 28, 2019
1 parent 0830966 commit 6e449fe
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@
"statements": 100
}
},
"moduleFileExtensions": ["json", "js"]
"moduleFileExtensions": [
"json",
"js"
]
},
"peerDependencies": {
"@material-ui/core": "3.9.2",
Expand Down Expand Up @@ -83,6 +86,7 @@
"sosia": "^1.2.5",
"sosia-markdown": "^1.1.1",
"sosia-puppeteer": "^1.1.0",
"sosia-remote-puppeteer": "^1.1.3",
"webpack": "4.29.6"
},
"babelConfig": ".babelrc.js",
Expand Down
4 changes: 2 additions & 2 deletions test/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ require("jest-dom/extend-expect");
require("babel-polyfill");
require("react-testing-library/cleanup-after-each");
const { configure, toMatchVisualSnapshot } = require("sosia");
const { PuppeteerBrowserTarget } = require("sosia-puppeteer");
const { RemotePuppeteerBrowserTarget } = require("sosia-remote-puppeteer");
const { MarkdownSource } = require("sosia-markdown");

expect.extend({ toMatchVisualSnapshot });
configure({
targets: {
"chrome-desktop": new PuppeteerBrowserTarget({
"chrome-desktop": new RemotePuppeteerBrowserTarget({
width: 1024,
height: 768,
}),
Expand Down
13 changes: 13 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6421,6 +6421,11 @@ node-fetch@^1.0.1:
encoding "^0.1.11"
is-stream "^1.0.1"

node-fetch@^2.6.0:
version "2.6.0"
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.0.tgz#e633456386d4aa55863f676a7ab0daa8fdecb0fd"
integrity sha512-8dG4H5ujfvFiqDmVu9fQ5bOHUC15JMjMY/Zumv26oOvvVJjM67KF8koCWIabKQ1GJIa9r2mMZscBq/TbdOcmNA==

node-forge@0.7.5:
version "0.7.5"
resolved "https://registry.yarnpkg.com/node-forge/-/node-forge-0.7.5.tgz#6c152c345ce11c52f465c2abd957e8639cd674df"
Expand Down Expand Up @@ -8336,6 +8341,14 @@ sosia-puppeteer@^1.1.0:
puppeteer "^1.12.2"
sosia-types "^1.0.2"

sosia-remote-puppeteer@^1.1.3:
version "1.1.3"
resolved "https://registry.yarnpkg.com/sosia-remote-puppeteer/-/sosia-remote-puppeteer-1.1.3.tgz#49e39a796d2df32a00c6b1ef38cfa42fb5692c36"
integrity sha512-WqzZfmB9BDlKwDRwaAAzy+XFBcsD/T6h5KRRIYJpKxtxNjojTsaEsHGm9frCNnxmJhIm4I8nDluCumMKrLp4RA==
dependencies:
node-fetch "^2.6.0"
sosia-types "^1.0.3"

sosia-types@^1.0.2, sosia-types@^1.0.3:
version "1.0.3"
resolved "https://registry.yarnpkg.com/sosia-types/-/sosia-types-1.0.3.tgz#f467c548930b4cccfec20e4540340edfc7c3ee97"
Expand Down

0 comments on commit 6e449fe

Please sign in to comment.