From 1899c381f2fbd43cde0e60a63c98f7bb69734b21 Mon Sep 17 00:00:00 2001 From: Gregory Quinio <1063530+undefined@users.noreply.github.com> Date: Mon, 14 Feb 2022 16:24:03 +0000 Subject: [PATCH 1/2] add test vue utils --- button/test/index.test.js | 9 +++++++++ package.json | 7 ++++--- 2 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 button/test/index.test.js diff --git a/button/test/index.test.js b/button/test/index.test.js new file mode 100644 index 0000000..57f9721 --- /dev/null +++ b/button/test/index.test.js @@ -0,0 +1,9 @@ +import { shallowMount } from '@vue/test-utils'; +import Button from '../src/Button.vue'; + +describe('Button', () => { + it('renders a button', () => { + const wrapper = shallowMount(Button); + console.assert(wrapper.find('button')); + }); +}); diff --git a/package.json b/package.json index 6a8ab76..a8aa70c 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "@divriots/starter-vue3", + "name": "@backlight-dev/divriots.starter-vue3", "version": "0.0.0", "description": "", "license": "MIT", @@ -15,6 +15,7 @@ "devDependencies": { "@divriots/dockit-core": "^0.6.4", "lit": "^2.0.2", - "prettier": "^2.3.2" + "prettier": "^2.3.2", + "@vue/test-utils": "latest" } -} +} \ No newline at end of file From 561346512c8911c1184f8c81b2d6311d1fe720fb Mon Sep 17 00:00:00 2001 From: Gregory Quinio <1063530+undefined@users.noreply.github.com> Date: Mon, 14 Feb 2022 16:26:18 +0000 Subject: [PATCH 2/2] Push from test --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a8aa70c..6a2ff15 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "@backlight-dev/divriots.starter-vue3", + "name": "@divriots/starter-vue3", "version": "0.0.0", "description": "", "license": "MIT",