Skip to content

Commit

Permalink
test: jest + jest-image-snapshot + puppeteer for visual regression
Browse files Browse the repository at this point in the history
  • Loading branch information
d4rkr00t committed Mar 3, 2018
1 parent 7df07b7 commit 33864c5
Show file tree
Hide file tree
Showing 19 changed files with 455 additions and 2,548 deletions.
71 changes: 44 additions & 27 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
"sourceType": "module"
},

"plugins": [
"flowtype"
],
"plugins": ["flowtype"],

"extends": [
// https://github.com/gajus/eslint-plugin-flowtype#configuration
Expand All @@ -23,7 +21,8 @@

"globals": {
"expect": true,
"gemini": true
"beforeAll": true,
"jest": true
},

"rules": {
Expand Down Expand Up @@ -154,10 +153,13 @@
"block-spacing": [2],
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
"camelcase": [2, { "properties": "never" }],
"comma-spacing": [2, {
"before": false,
"after": true
}],
"comma-spacing": [
2,
{
"before": false,
"after": true
}
],
"comma-style": [2, "last"],
"computed-property-spacing": [2, "never"],
"consistent-this": [2, "_this"],
Expand All @@ -166,15 +168,21 @@
"func-style": [0],
"indent": [0],
"jsx-quotes": [2, "prefer-double"],
"key-spacing": [2, {
"beforeColon": false,
"afterColon": true
}],
"key-spacing": [
2,
{
"beforeColon": false,
"afterColon": true
}
],
"keyword-spacing": [2],
"linebreak-style": [2, "unix"],
"lines-around-comment": [2, {
"beforeBlockComment": true
}],
"lines-around-comment": [
2,
{
"beforeBlockComment": true
}
],
"max-depth": [2, 4],
"max-nested-callbacks": [2, 4],
"max-params": [0],
Expand All @@ -201,10 +209,13 @@
"no-unneeded-ternary": [2],
"no-whitespace-before-property": [2],
"object-curly-spacing": [2, "always"],
"one-var": [2, {
"uninitialized": "always",
"initialized": "never"
}],
"one-var": [
2,
{
"uninitialized": "always",
"initialized": "never"
}
],
"one-var-declaration-per-line": [0],
"operator-assignment": [0],
"operator-linebreak": [0],
Expand All @@ -213,17 +224,23 @@
"quotes": [0],
"require-jsdoc": [0],
"semi": [2, "always"],
"semi-spacing": [2, {
"before": false,
"after": true
}],
"semi-spacing": [
2,
{
"before": false,
"after": true
}
],
"sort-imports": [0],
"sort-vars": [0],
"space-before-blocks": [2, "always"],
"space-before-function-paren": [2, {
"anonymous": "never",
"named": "never"
}],
"space-before-function-paren": [
2,
{
"anonymous": "never",
"named": "never"
}
],
"space-in-parens": [2, "never"],
"space-infix-ops": [2],
"space-unary-ops": [2],
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ _docs
tests/heavy/*
!tests/heavy/run.sh
!tests/heavy/_package.json
tests/visual-regression/reports
tests/visual-regression/__image_snapshots__/__diff_output__
packages
lib

Expand Down
12 changes: 2 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
os:
- linux
language: node_js
cache:
directories:
- node_modules
notifications:
email: false
env:
global:
- CXX=g++-4.8
node_js:
- "6"
- "7"
Expand All @@ -22,10 +21,3 @@ script:
- npm run ci:coverage
after_success:
- npm run ci:github-release
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8

0 comments on commit 33864c5

Please sign in to comment.