Skip to content

Commit 6be9fdb

Browse files
committed
chore: avoid production tip during tests
1 parent f319bef commit 6be9fdb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: src/platforms/web/runtime/index.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,19 @@ Vue.nextTick(() => {
4848
if (config.devtools) {
4949
if (devtools) {
5050
devtools.emit('init', Vue)
51-
} else if (process.env.NODE_ENV !== 'production' && isChrome) {
51+
} else if (
52+
process.env.NODE_ENV !== 'production' &&
53+
process.env.NODE_ENV !== 'test' &&
54+
isChrome
55+
) {
5256
console[console.info ? 'info' : 'log'](
5357
'Download the Vue Devtools extension for a better development experience:\n' +
5458
'https://github.com/vuejs/vue-devtools'
5559
)
5660
}
5761
}
5862
if (process.env.NODE_ENV !== 'production' &&
63+
process.env.NODE_ENV !== 'test' &&
5964
config.productionTip !== false &&
6065
inBrowser && typeof console !== 'undefined'
6166
) {

0 commit comments

Comments
 (0)