diff --git a/.storybook/config.js b/.storybook/config.js index f7744c6..ff734f4 100644 --- a/.storybook/config.js +++ b/.storybook/config.js @@ -7,7 +7,6 @@ import '../src/App/App.st.css'; if (process.env.SEED) { faker.seed(parseInt(process.env.SEED)); - document.body.style.fontFamily = 'Arial'; } const stories = require.context( diff --git a/.travis.yml b/.travis.yml index 4a524ca..0bd2cb7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,8 +4,6 @@ node_js: cache: directories: - node_modules -before_install: - - sudo apt-get update - - echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections - - sudo apt-get install -y msttcorefonts -after_failure: npm run artifacts +after_script: + # - npm run jest -u + - npm run artifacts diff --git a/package.json b/package.json index dc5ee25..d591031 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "lint": "trigen-scripts lint", "jest": "trigen-scripts jest", "test": "SEED=584 npm run build:storybook && trigen-scripts test", - "artifacts": "trigen-scripts artifacts test/__image_snapshots__/__diff_output__", + "artifacts": "trigen-scripts artifacts test/__image_snapshots__", "build:favicons": "trigen-scripts build:favicons --androidBackground white -m src/manifest.json", "build:docs": "trigen-scripts build:docs", "start:storybook": "trigen-scripts start:storybook -c .storybook", diff --git a/test/__image_snapshots__/Navigator__with-3-items-snap.png b/test/__image_snapshots__/Navigator__with-3-items-snap.png index 8bb1216..d80af76 100644 Binary files a/test/__image_snapshots__/Navigator__with-3-items-snap.png and b/test/__image_snapshots__/Navigator__with-3-items-snap.png differ diff --git a/test/__image_snapshots__/TodoForm__with-basic-data-snap.png b/test/__image_snapshots__/TodoForm__with-basic-data-snap.png index a9b9243..6e78fee 100644 Binary files a/test/__image_snapshots__/TodoForm__with-basic-data-snap.png and b/test/__image_snapshots__/TodoForm__with-basic-data-snap.png differ diff --git a/test/__image_snapshots__/TodoItem__with-basic-data-snap.png b/test/__image_snapshots__/TodoItem__with-basic-data-snap.png index 63588bf..9be3ca5 100644 Binary files a/test/__image_snapshots__/TodoItem__with-basic-data-snap.png and b/test/__image_snapshots__/TodoItem__with-basic-data-snap.png differ diff --git a/test/__image_snapshots__/TodoList__with-basic-data-snap.png b/test/__image_snapshots__/TodoList__with-basic-data-snap.png index 1409bb0..6a5b4ca 100644 Binary files a/test/__image_snapshots__/TodoList__with-basic-data-snap.png and b/test/__image_snapshots__/TodoList__with-basic-data-snap.png differ diff --git a/test/__image_snapshots__/WeatherList__with-items-snap.png b/test/__image_snapshots__/WeatherList__with-items-snap.png index 2846688..3711dde 100644 Binary files a/test/__image_snapshots__/WeatherList__with-items-snap.png and b/test/__image_snapshots__/WeatherList__with-items-snap.png differ diff --git a/test/__image_snapshots__/Weather__with-basic-data-snap.png b/test/__image_snapshots__/Weather__with-basic-data-snap.png index cf36384..527432f 100644 Binary files a/test/__image_snapshots__/Weather__with-basic-data-snap.png and b/test/__image_snapshots__/Weather__with-basic-data-snap.png differ diff --git a/test/__image_snapshots__/Weather__with-small-size-snap.png b/test/__image_snapshots__/Weather__with-small-size-snap.png index f61156d..e3b1513 100644 Binary files a/test/__image_snapshots__/Weather__with-small-size-snap.png and b/test/__image_snapshots__/Weather__with-small-size-snap.png differ diff --git a/test/storyshots.spec.ts b/test/storyshots.spec.ts index 0972dcd..5996055 100644 --- a/test/storyshots.spec.ts +++ b/test/storyshots.spec.ts @@ -1,17 +1,7 @@ -import initStoryshots, { - getMatchOptions -} from '@trigen/scripts-plugin-storybook/jest/storyshots'; +import initStoryshots from '@trigen/scripts-plugin-storybook/jest/storyshots'; -initStoryshots({ - getMatchOptions(info) { - - const options = getMatchOptions(info); - const failureThreshold = 0.03; - - return { - failureThresholdType: 'percent', - failureThreshold, - ...options - }; - } -}); +if (process.platform === 'linux') { + initStoryshots(); +} else { + it('should skip storyshots', () => {}); +}