diff --git a/packages/create-vant-cli-app/generators/vue3/src/demo-button/test/__snapshots__/index.spec.js.snap b/packages/create-vant-cli-app/generators/vue3/src/demo-button/test/__snapshots__/index.spec.js.snap index e9030c705..d1a320721 100644 --- a/packages/create-vant-cli-app/generators/vue3/src/demo-button/test/__snapshots__/index.spec.js.snap +++ b/packages/create-vant-cli-app/generators/vue3/src/demo-button/test/__snapshots__/index.spec.js.snap @@ -1,3 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`render demo button 1`] = ``; +exports[`render demo button 1`] = ` + +`; diff --git a/packages/create-vant-cli-app/generators/vue3/src/demo-button/test/index.spec.js b/packages/create-vant-cli-app/generators/vue3/src/demo-button/test/index.spec.js index d87d7d531..cb29feee9 100644 --- a/packages/create-vant-cli-app/generators/vue3/src/demo-button/test/index.spec.js +++ b/packages/create-vant-cli-app/generators/vue3/src/demo-button/test/index.spec.js @@ -3,5 +3,5 @@ import DemoButton from '../../demo-button'; test('render demo button', () => { const wrapper = mount(DemoButton); - expect(wrapper).toMatchSnapshot(); + expect(wrapper.html()).toMatchSnapshot(); });