increase transition test durations for suacelabs

This commit is contained in:
Evan You 2016-06-27 22:18:01 -04:00
parent 7043fa633b
commit 98a7e75f1e
3 changed files with 4 additions and 3 deletions

View File

@ -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
}
})
],

View File

@ -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"
},

View File

@ -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 () {