From ec5ad720b906f713142d3c2ead712cb7ff633252 Mon Sep 17 00:00:00 2001 From: jedi Date: Mon, 22 May 2023 01:40:12 +0200 Subject: [PATCH] stash --- frontend/package.json | 5 +- frontend/src/components/SearchBox.vue | 4 +- frontend/src/tests/SearchBox.js | 59 +++++++++++++++++++ .../src/tests/__snapshots__/SearchBox.js.snap | 9 +++ frontend/vite.config.js | 5 ++ 5 files changed, 79 insertions(+), 3 deletions(-) create mode 100644 frontend/src/tests/SearchBox.js create mode 100644 frontend/src/tests/__snapshots__/SearchBox.js.snap diff --git a/frontend/package.json b/frontend/package.json index 6ab03b4..ec3a019 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -17,7 +17,10 @@ }, "devDependencies": { "@vitejs/plugin-vue": "^4.0.0", + "@vue/test-utils": "^2.3.2", + "jsdom": "^22.0.0", "sass": "^1.62.1", - "vite": "^4.1.4" + "vite": "^4.1.4", + "vitest": "^0.31.1" } } diff --git a/frontend/src/components/SearchBox.vue b/frontend/src/components/SearchBox.vue index c914eab..8d74fb6 100644 --- a/frontend/src/components/SearchBox.vue +++ b/frontend/src/components/SearchBox.vue @@ -1,7 +1,7 @@