From 98a7e75f1e06daf15368267cd8ecbe17cabb24e3 Mon Sep 17 00:00:00 2001 From: Evan You Date: Mon, 27 Jun 2016 22:18:01 -0400 Subject: [PATCH] increase transition test durations for suacelabs --- build/karma.base.config.js | 3 ++- package.json | 2 +- test/unit/features/transition/inject-styles.js | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/build/karma.base.config.js b/build/karma.base.config.js index 79fe9509..a5ac8860 100644 --- a/build/karma.base.config.js +++ b/build/karma.base.config.js @@ -19,7 +19,8 @@ var webpackConfig = { plugins: [ new webpack.DefinePlugin({ 'process.env': { - NODE_ENV: '"development"' + NODE_ENV: '"development"', + TRANSITION_DURATION: process.env.SAUCE ? 200 : 50 } }) ], diff --git a/package.json b/package.json index b9341933..8ea1c14c 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "test:sauce": "npm run sauce -- 0 && npm run sauce -- 1 && npm run sauce -- 2", "lint": "eslint src build test", "flow": "flow check", - "sauce": "NODE_ENV=development karma start build/karma.sauce.config.js", + "sauce": "NODE_ENV=development SAUCE=true karma start build/karma.sauce.config.js", "bench:ssr": "npm run build:ssr && NODE_ENV=production VUE_ENV=server node benchmarks/ssr/renderToString.js && NODE_ENV=production VUE_ENV=server node benchmarks/ssr/renderToStream.js", "release": "bash build/release.sh" }, diff --git a/test/unit/features/transition/inject-styles.js b/test/unit/features/transition/inject-styles.js index 0206833e..96db88b1 100644 --- a/test/unit/features/transition/inject-styles.js +++ b/test/unit/features/transition/inject-styles.js @@ -4,7 +4,7 @@ function insertCSS (text) { document.head.appendChild(cssEl) } -const duration = 50 +const duration = process.env.TRANSITION_DURATION || 50 let injected = false export default function injectStyles () {