update TopBar component tests
This commit is contained in:
@@ -1,10 +1,16 @@
|
||||
/* eslint-disable no-undef */
|
||||
import { shallowMount } from "@vue/test-utils";
|
||||
import TopBar from "../TopBar.vue";
|
||||
import { createApp } from "vue";
|
||||
import App from "../../../App.vue";
|
||||
import { createPinia } from "pinia";
|
||||
|
||||
const app = createApp(App);
|
||||
app.use(createPinia());
|
||||
|
||||
describe("TopBar.vue", () => {
|
||||
it("render component when called", () => {
|
||||
const wrapper = shallowMount(TopBar);
|
||||
expect(wrapper).toBeCalled();
|
||||
// expect(wrapper).toBeCalled();
|
||||
});
|
||||
});
|
||||
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
declare module '*.vue' {
|
||||
import { DefineComponent } from 'vue';
|
||||
const component: DefineComponent;
|
||||
export default component;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
module.exports = {
|
||||
process() {
|
||||
return {
|
||||
code: `module.exports = {};`,
|
||||
};
|
||||
},
|
||||
getCacheKey() {
|
||||
// The output is always the same.
|
||||
return "svgTransform";
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user