Skip to content

Commit 98a7e75

Browse files
committed
increase transition test durations for suacelabs
1 parent 7043fa6 commit 98a7e75

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

build/karma.base.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ var webpackConfig = {
1919
plugins: [
2020
new webpack.DefinePlugin({
2121
'process.env': {
22-
NODE_ENV: '"development"'
22+
NODE_ENV: '"development"',
23+
TRANSITION_DURATION: process.env.SAUCE ? 200 : 50
2324
}
2425
})
2526
],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"test:sauce": "npm run sauce -- 0 && npm run sauce -- 1 && npm run sauce -- 2",
2525
"lint": "eslint src build test",
2626
"flow": "flow check",
27-
"sauce": "NODE_ENV=development karma start build/karma.sauce.config.js",
27+
"sauce": "NODE_ENV=development SAUCE=true karma start build/karma.sauce.config.js",
2828
"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",
2929
"release": "bash build/release.sh"
3030
},

test/unit/features/transition/inject-styles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function insertCSS (text) {
44
document.head.appendChild(cssEl)
55
}
66

7-
const duration = 50
7+
const duration = process.env.TRANSITION_DURATION || 50
88
let injected = false
99

1010
export default function injectStyles () {

0 commit comments

Comments
 (0)