From 3706604829007681d6173e6d1cb18fc9a5db01e6 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Mon, 25 Apr 2022 17:27:52 +0200 Subject: [PATCH] test: failing state --- .../shell-dev-vue3/src/devtools-plugin/index.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/packages/shell-dev-vue3/src/devtools-plugin/index.js b/packages/shell-dev-vue3/src/devtools-plugin/index.js index 42688ef74..68ef74335 100644 --- a/packages/shell-dev-vue3/src/devtools-plugin/index.js +++ b/packages/shell-dev-vue3/src/devtools-plugin/index.js @@ -1,4 +1,5 @@ import { setupDevtoolsPlugin } from '@vue/devtools-api' +import { reactive, ref } from 'vue' /** @type {import('@vue/devtools-api').DevtoolsPluginApi} */ let devtoolsApi @@ -103,6 +104,19 @@ export default { }, }) + payload.instanceData.state.push({ + type: 'fail', + key: 'state', + editable: true, + value: { + _custom: { + type: null, + readOnly: false, + value: reactive({ n: ref(0) }), + }, + }, + }) + return api.getComponentBounds(payload.componentInstance).then(bounds => { payload.instanceData.state.push({ type: stateType,