Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

test: capture screenshots with capture-chrome, and diff them with resemble #3

Merged
merged 14 commits into from
Mar 10, 2018

Conversation

lynnmercier
Copy link
Contributor

No description provided.

@@ -0,0 +1,5 @@
{
"presets": [
"es2015"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we also add "react" here? We don't have any jsx files yet, so we can add it then.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think i want to wait, because this babelrc is actually affecting our babel translator for the mocha. So basically this is running on like capture-suite.js

Copy link

@moog16 moog16 Mar 10, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ya, but I don't think it affects .js files that don't have JSX in it. It basically compiles the JSX -> JS. Although I'm testing the branch again right now and having issues, but don't think it is related to the .babelrc file.

return Promise.all([capturePromise, readPromise])
.then(function([newScreenshot, oldScreenshot]) {
return new Promise(function(resolve) {
const resolve2 = function(data) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

more appropriate name is onComplete

@lynnmercier lynnmercier merged commit a1616de into master Mar 10, 2018
@lynnmercier lynnmercier deleted the test/capture branch March 10, 2018 01:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants