Repository: jhipster/jhipster-vuejs
Pull request #607 (2020-05-08 15:36:12)

Update vue test utils to 1.0.0 final
The lot of changes are due to deprecation of ` isVueInstance`. I removed two tests as they have been empty after that removal. Of course we could add some custom matcher or so to check and test if the component still can be rendered.

-   Please make sure the below checklist is followed for Pull Requests.

-   [ ] [All continuous integration tests](https://github.com/jhipster/jhipster-vuejs/actions) are green
-   [ ] Tests are added where necessary
-   [ ] Documentation is added/updated where necessary
-   [ ] Coding Rules & Commit Guidelines as per our [CONTRIBUTING.md document](https://github.com/jhipster/jhipster-vuejs/blob/master/CONTRIBUTING.md) are followed

<!--
Please also reference the issue number in a commit message to [automatically close the related Github issue](https://help.github.com/articles/closing-issues-via-commit-messages/)

Note: It is also possible to add `[skip ci]` to your commit message to skip Travis tests
-->



Patch:
diff --git a/generators/client/files.js b/generators/client/files.js
index 6727749..9146da9 100644
--- a/generators/client/files.js
+++ b/generators/client/files.js
@@ -311,14 +311,12 @@ const vueFiles = {
                 'spec/app/account/account.service.spec.ts',
                 'spec/app/core/home/home.component.spec.ts',
                 'spec/app/core/error/error.component.spec.ts',
-                'spec/app/core/jhi-footer/jhi-footer.component.spec.ts',
                 'spec/app/core/jhi-navbar/jhi-navbar.component.spec.ts',
                 'spec/app/core/ribbon/ribbon.component.spec.ts',
                 'spec/app/shared/alert/alert.service.spec.ts',
                 'spec/app/shared/config/axios-interceptor.spec.ts',
                 'spec/app/shared/data/data-utils.service.spec.ts',
                 'spec/app/admin/configuration/configuration.component.spec.ts',
-                'spec/app/admin/docs/docs.component.spec.ts',
                 'spec/app/admin/health/health.component.spec.ts',
                 'spec/app/admin/health/health-modal.component.spec.ts',
                 'spec/app/admin/health/health.service.spec.ts',
diff --git a/generators/client/templates/vue/package.json.ejs b/generators/client/templates/vue/package.json.ejs
index 97e09ed..ca2e17a 100644
--- a/generators/client/templates/vue/package.json.ejs
+++ b/generators/client/templates/vue/package.json.ejs
@@ -71,7 +71,7 @@ limitations under the License.
     "@types/vuelidate": "0.7.13",
     "@vue/cli-plugin-typescript": "4.3.1",
     "@vue/cli-service": "4.3.1",
-    "@vue/test-utils": "1.0.0-beta.33",
+    "@vue/test-utils": "1.0.0",
     "autoprefixer": "9.7.6",
     "browser-sync": "2.26.7",
     "browser-sync-webpack-plugin": "2.2.2",


Test patch:
diff --git a/generators/client/templates/vue/src/test/javascript/spec/app/account/activate/activate.component.spec.ts.ejs b/generators/client/templates/vue/src/test/javascript/spec/app/account/activate/activate.component.spec.ts.ejs
index a8b505a..048f464 100644
--- a/generators/client/templates/vue/src/test/javascript/spec/app/account/activate/activate.component.spec.ts.ejs
+++ b/generators/client/templates/vue/src/test/javascript/spec/app/account/activate/activate.component.spec.ts.ejs
@@ -43,10 +43,6 @@ describe('Activate Component', () => {
     activate = wrapper.vm;
   });
 
-  it('should be a Vue instance', () => {
-    expect(wrapper.isVueInstance()).toBeTruthy();
-  });
-
   it('should display error when activation fails using route', async () => {
     mockedAxios.get.mockReturnValue(Promise.reject({}));
     activate.beforeRouteEnter({query: {key: 'invalid-key'}}, null, cb => cb(activate));
diff --git a/generators/client/templates/vue/src/test/javascript/spec/app/account/change-password/change-password.component.spec.ts.ejs b/generators/client/templates/vue/src/test/javascript/spec/app/account/change-password/change-password.component.spec.ts.ejs
index b2c8b89..997218e 100644
--- a/generators/client/templates/vue/src/test/javascript/spec/app/account/change-password/change-password.component.spec.ts.ejs
+++ b/generators/client/templates/vue/src/test/javascript/spec/app/account/change-password/change-password.component.spec.ts.ejs
@@ -38,11 +38,7 @@ describe('ChangePassword Component', () => {
       });
     changePassword = wrapper.vm;
   });
-
-  it('should be a Vue instance', () => {
-    expect(wrapper.isVueInstance()).toBeTruthy();
-  });
-
+  
   it('should show error if passwords do not match', () => {
     // GIVEN
     changePassword.resetPassword = { newPassword: 'password1', confirmPassword: 'password2' };
diff --git a/generators/client/templates/vue/src/test/javascript/spec/app/account/login-form/login-form.component.spec.ts.ejs b/generators/client/templates/vue/src/test/javascript/spec/app/account/login-form/login-form.component.spec.ts.ejs
index 8d5a407..3c5a760 100644
--- a/generators/client/templates/vue/src/test/javascript/spec/app/account/login-form/login-form.component.spec.ts.ejs
+++ b/generators/client/templates/vue/src/test/javascript/spec/app/account/login-form/login-form.component.spec.ts.ejs
@@ -57,10 +57,6 @@ describe('LoginForm Component', () => {
     loginForm = wrapper.vm;
   });
 
-  it('should be a Vue instance', () => {
-    expect(wrapper.isVueInstance()).toBeTruthy();
-  });
-
   <%_ if (authenticationType === 'jwt') { _%>
   it('should not store token if authentication is KO', async () => {
     // GIVEN
diff --git a/generators/client/templates/vue/src/test/javascript/spec/app/account/register/register.component.spec.ts.ejs b/generators/client/templates/vue/src/test/javascript/spec/app/account/register/register.component.spec.ts.ejs
index 874d775..0966b20 100644
--- a/generators/client/templates/vue/src/test/javascript/spec/app/account/register/register.component.spec.ts.ejs
+++ b/generators/client/templates/vue/src/test/javascript/spec/app/account/register/register.component.spec.ts.ejs
@@ -46,10 +46,6 @@ describe('Register Component', () => {
     register = wrapper.vm;
   });
 
-  it('should be a Vue instance', () => {
-    expect(wrapper.isVueInstance()).toBeTruthy();
-  });
-
   it('should set all default values correctly', () => {
     expect(register.success).toBe(false);
     expect(register.doNotMatch).toBe('');
diff --git a/generators/client/templates/vue/src/test/javascript/spec/app/account/reset-password/finish/reset-password-finish.component.spec.ts.ejs b/generators/client/templates/vue/src/test/javascript/spec/app/account/reset-password/finish/reset-password-finish.component.spec.ts.ejs
index 776dd50..0c61820 100644
--- a/generators/client/templates/vue/src/test/javascript/spec/app/account/reset-password/finish/reset-password-finish.component.spec.ts.ejs
+++ b/generators/client/templates/vue/src/test/javascript/spec/app/account/reset-password/finish/reset-password-finish.component.spec.ts.ejs
@@ -36,10 +36,6 @@ describe('Reset Component Finish', () => {
     resetPasswordFinish = wrapper.vm;
   });
 
-  it('should be a Vue instance', () => {
-    expect(wrapper.isVueInstance()).toBeTruthy();
-  });
-
   it('should reset finish be a success', async () => {
     // Given
     mockedAxios.post.mockReturnValue(Promise.resolve());
diff --git a/generators/client/templates/vue/src/test/javascript/spec/app/account/reset-password/init/reset-password-init.component.spec.ts.ejs b/generators/client/templates/vue/src/test/javascript/spec/app/account/reset-password/init/reset-password-init.component.spec.ts.ejs
index c39fec4..0add76e 100644
--- a/generators/client/templates/vue/src/test/javascript/spec/app/account/reset-password/init/reset-password-init.component.spec.ts.ejs
+++ b/generators/client/templates/vue/src/test/javascript/spec/app/account/reset-password/init/reset-password-init.component.spec.ts.ejs
@@ -32,10 +32,6 @@ describe('Reset Component Init', () => {
         resetPasswordInit = wrapper.vm;
     });
 
-    it('should be a Vue instance', () => {
-        expect(wrapper.isVueInstance()).toBeTruthy();
-    });
-
     it('should reset request be a success', async () => {
         // Given
         mockedAxios.post.mockReturnValue(Promise.resolve());
diff --git a/generators/client/templates/vue/src/test/javascript/spec/app/account/sessions/sessions.component.spec.ts.ejs b/generators/client/templates/vue/src/test/javascript/spec/app/account/sessions/sessions.component.spec.ts.ejs
index 422afe2..e4bbe67 100644
--- a/generators/client/templates/vue/src/test/javascript/spec/app/account/sessions/sessions.component.spec.ts.ejs
+++ b/generators/client/templates/vue/src/test/javascript/spec/app/account/sessions/sessions.component.spec.ts.ejs
@@ -54,8 +54,7 @@ describe('Sessions Component', () => {
     sessions = wrapper.vm;
   });
 
-  it('should be a Vue instance', () => {
-    expect(wrapper.isVueInstance()).toBeTruthy();
+  it('should call remote service on init', () => {
     expect(mockedAxios.get).toHaveBeenCalledTimes(1);
   });
 
diff --git a/generators/client/templates/vue/src/test/javascript/spec/app/account/settings/settings.component.spec.ts.ejs b/generators/client/templates/vue/src/test/javascript/spec/app/account/settings/settings.component.spec.ts.ejs
index 3dd8315..94d2dd4 100644
--- a/generators/client/templates/vue/src/test/javascript/spec/app/account/settings/settings.component.spec.ts.ejs
+++ b/generators/client/templates/vue/src/test/javascript/spec/app/account/settings/settings.component.spec.ts.ejs
@@ -46,10 +46,6 @@ describe('Settings Component', () => {
     settings = wrapper.vm;
   });
 
-  it('should be a Vue instance', () => {
-    expect(wrapper.isVueInstance()).toBeTruthy();
-  });
-
   it('should send the current identity upon save', async () => {
     // GIVEN
     mockedAxios.post.mockReturnValue(Promise.resolve({}));
diff --git a/generators/client/templates/vue/src/test/javascript/spec/app/admin/audits/audits.component.spec.ts.ejs b/generators/client/templates/vue/src/test/javascript/spec/app/admin/audits/audits.component.spec.ts.ejs
index 2e60e98..1459b52 100644
--- a/generators/client/templates/vue/src/test/javascript/spec/app/admin/audits/audits.component.spec.ts.ejs
+++ b/generators/client/templates/vue/src/test/javascript/spec/app/admin/audits/audits.component.spec.ts.ejs
@@ -47,10 +47,6 @@ describe('Audits Component', () => {
     audits = wrapper.vm;
   });
 
-  it('should be a Vue instance', () => {
-    expect(wrapper.isVueInstance()).toBeTruthy();
-  });
-
   describe('today function ', () => {
     it('should set toDate to current date', () => {
       audits.today();
diff --git a/generators/client/templates/vue/src/test/javascript/spec/app/admin/configuration/configuration.component.spec.ts.ejs b/generators/client/templates/vue/src/test/javascript/spec/app/admin/configuration/configuration.component.spec.ts.ejs
index 4b16c51..228fba5 100644
--- a/generators/client/templates/vue/src/test/javascript/spec/app/admin/configuration/configuration.component.spec.ts.ejs
+++ b/generators/client/templates/vue/src/test/javascript/spec/app/admin/configuration/configuration.component.spec.ts.ejs
@@ -32,10 +32,6 @@ describe('Configuration Component', () => {
     configuration = wrapper.vm;
   });
 
-  it('should be a Vue instance', () => {
-    expect(wrapper.isVueInstance()).toBeTruthy();
-  });
-
   describe('OnRouteEnter', () => {
     it('should set all default values correctly', () => {
       expect(configuration.configKeys).toEqual([]);
diff --git a/generators/client/templates/vue/src/test/javascript/spec/app/admin/docs/docs.component.spec.ts.ejs b/generators/client/templates/vue/src/test/javascript/spec/app/admin/docs/docs.component.spec.ts.ejs
deleted file mode 100644
index 7b962b1..0000000
--- a/generators/client/templates/vue/src/test/javascript/spec/app/admin/docs/docs.component.spec.ts.ejs
+++ /dev/null
@@ -1,31 +0,0 @@
-import { shallowMount, createLocalVue, Wrapper } from "@vue/test-utils";
-import <%=jhiPrefixCapitalized%>Docs from '@/admin/docs/docs.vue';
-import <%=jhiPrefixCapitalized%>DocsClass from '@/admin/docs/docs.component';
-
-import * as config from '@/shared/config/config';
-
-const localVue = createLocalVue();
-
-config.initVueApp(localVue);
-<%_ if (enableTranslation) { _%>
-const i18n = config.initI18N(localVue);
-<%_ } _%>
-
-describe('<%=jhiPrefixCapitalized%>Docs', () => {
-  let <%=jhiPrefix%>Docs: <%=jhiPrefixCapitalized%>DocsClass;
-  let wrapper: Wrapper<<%=jhiPrefixCapitalized%>DocsClass>;
-
-  beforeEach(() => {
-    wrapper = shallowMount<<%=jhiPrefixCapitalized%>DocsClass>(<%=jhiPrefixCapitalized%>Docs, {
-      <%_ if (enableTranslation) { _%>
-      i18n,
-      <%_ } _%>
-      localVue,
-    });
-    <%=jhiPrefix%>Docs = wrapper.vm;
-  });
-
-  it('should be a Vue instance', async () => {
-    expect(wrapper.isVueInstance()).toBeTruthy();
-  });
-});
diff --git a/generators/client/templates/vue/src/test/javascript/spec/app/admin/gateway/gateway.component.spec.ts.ejs b/generators/client/templates/vue/src/test/javascript/spec/app/admin/gateway/gateway.component.spec.ts.ejs
index 58d7fb4..5cb5c45 100644
--- a/generators/client/templates/vue/src/test/javascript/spec/app/admin/gateway/gateway.component.spec.ts.ejs
+++ b/generators/client/templates/vue/src/test/javascript/spec/app/admin/gateway/gateway.component.spec.ts.ejs
@@ -25,6 +25,6 @@ describe('Gateway Component', () => {
   });
 
   it('should be a Vue instance', () => {
-    expect(wrapper.isVueInstance()).toBeTruthy();
+    expect(wrapper.get('#gateway-page-heading'));
   });
 });
diff --git a/generators/client/templates/vue/src/test/javascript/spec/app/admin/health/health-modal.component.spec.ts.ejs b/generators/client/templates/vue/src/test/javascript/spec/app/admin/health/health-modal.component.spec.ts.ejs
index de7255a..62da528 100644
--- a/generators/client/templates/vue/src/test/javascript/spec/app/admin/health/health-modal.component.spec.ts.ejs
+++ b/generators/client/templates/vue/src/test/javascript/spec/app/admin/health/health-modal.component.spec.ts.ejs
@@ -32,10 +32,6 @@ let wrapper: Wrapper<HealthModalClass>;
     healthModal = wrapper.vm;
   });
 
-  it('should be a Vue instance', () => {
-    expect(wrapper.isVueInstance()).toBeTruthy();
-  });
-
   describe('baseName and subSystemName', () => {
     it('should use healthService', () => {
       healthModal.baseName('base');
@@ -85,10 +81,6 @@ describe('Health Modal Component for diskSpace', () => {
     healthModal = wrapper.vm;
   });
 
-  it('should be a Vue instance', () => {
-    expect(wrapper.isVueInstance()).toBeTruthy();
-  });
-
   describe('readableValue should transform data', () => {
     it('to GB when needed', () => {
       const result = healthModal.readableValue(2147483648);
diff --git a/generators/client/templates/vue/src/test/javascript/spec/app/admin/health/health.component.spec.ts.ejs b/generators/client/templates/vue/src/test/javascript/spec/app/admin/health/health.component.spec.ts.ejs
index e18f6e1..cf454fc 100644
--- a/generators/client/templates/vue/src/test/javascript/spec/app/admin/health/health.component.spec.ts.ejs
+++ b/generators/client/templates/vue/src/test/javascript/spec/app/admin/health/health.component.spec.ts.ejs
@@ -44,10 +44,6 @@ describe('Health Component', () => {
     health = wrapper.vm;
   });
 
-  it('should be a Vue instance', () => {
-    expect(wrapper.isVueInstance()).toBeTruthy();
-  });
-
   describe('baseName and subSystemName', () => {
     it('should return the basename when it has no sub system', () => {
       expect(health.baseName('base')).toBe('base');
diff --git a/generators/client/templates/vue/src/test/javascript/spec/app/admin/logs/logs.component.spec.ts.ejs b/generators/client/templates/vue/src/test/javascript/spec/app/admin/logs/logs.component.spec.ts.ejs
index 78342c1..5163a9c 100644
--- a/generators/client/templates/vue/src/test/javascript/spec/app/admin/logs/logs.component.spec.ts.ejs
+++ b/generators/client/templates/vue/src/test/javascript/spec/app/admin/logs/logs.component.spec.ts.ejs
@@ -30,10 +30,6 @@ describe('Logs Component', () => {
     logs = wrapper.vm;
   });
 
-  it('should be a Vue instance', () => {
-    expect(wrapper.isVueInstance()).toBeTruthy();
-  });
-
   describe('OnInit', () => {
     it('should set all default values correctly', () => {
       expect(logs.filtered).toBe('');
diff --git a/generators/client/templates/vue/src/test/javascript/spec/app/admin/metrics/metrics-modal.component.spec.ts.ejs b/generators/client/templates/vue/src/test/javascript/spec/app/admin/metrics/metrics-modal.component.spec.ts.ejs
index 40465f4..36a839f 100644
--- a/generators/client/templates/vue/src/test/javascript/spec/app/admin/metrics/metrics-modal.component.spec.ts.ejs
+++ b/generators/client/templates/vue/src/test/javascript/spec/app/admin/metrics/metrics-modal.component.spec.ts.ejs
@@ -20,11 +20,7 @@ describe('Metrics Component', () => {
     wrapper = shallowMount<MetricsModalClass>(MetricsModal, { store, <% if (enableTranslation) { %>i18n, <% } %>localVue });
     metricsModal = wrapper.vm;
   });
-
-  it('should be a Vue instance', () => {
-    expect(wrapper.isVueInstance()).toBeTruthy();
-  });
-
+  
   describe('init', () => {
     it('should count the numbers of each thread type', () => {
       wrapper.setProps({
diff --git a/generators/client/templates/vue/src/test/javascript/spec/app/admin/metrics/metrics.component.spec.ts.ejs b/generators/client/templates/vue/src/test/javascript/spec/app/admin/metrics/metrics.component.spec.ts.ejs
index bf35c68..ab35ad2 100644
--- a/generators/client/templates/vue/src/test/javascript/spec/app/admin/metrics/metrics.component.spec.ts.ejs
+++ b/generators/client/templates/vue/src/test/javascript/spec/app/admin/metrics/metrics.component.spec.ts.ejs
@@ -252,10 +252,6 @@ describe('Metrics Component', () => {
     metricsComponent = wrapper.vm;
   });
 
-  it('should be a Vue instance', () => {
-    expect(wrapper.isVueInstance()).toBeTruthy();
-  });
-
   describe('refresh', () => {
     it('should call refresh on init', async () => {
       // GIVEN
diff --git a/generators/client/templates/vue/src/test/javascript/spec/app/admin/tracker/tracker.component.spec.ts.ejs b/generators/client/templates/vue/src/test/javascript/spec/app/admin/tracker/tracker.component.spec.ts.ejs
index f876aa6..7b3f614 100644
--- a/generators/client/templates/vue/src/test/javascript/spec/app/admin/tracker/tracker.component.spec.ts.ejs
+++ b/generators/client/templates/vue/src/test/javascript/spec/app/admin/tracker/tracker.component.spec.ts.ejs
@@ -46,8 +46,7 @@ describe('<%=jhiPrefixCapitalized%>Tracker', () => {
     <%=jhiPrefix%>Tracker = wrapper.vm;
   });
 
-  it('should be a Vue instance', () => {
-    expect(wrapper.isVueInstance()).toBeTruthy();
+  it('should subscribe', () => {
     expect(trackerServiceStub.subscribe.called).toBeTruthy();
   });
 
diff --git a/generators/client/templates/vue/src/test/javascript/spec/app/admin/user-management/user-management-edit.component.spec.ts.ejs b/generators/client/templates/vue/src/test/javascript/spec/app/admin/user-management/user-management-edit.component.spec.ts.ejs
index 934f192..b6c3abe 100644
--- a/generators/client/templates/vue/src/test/javascript/spec/app/admin/user-management/user-management-edit.component.spec.ts.ejs
+++ b/generators/client/templates/vue/src/test/javascript/spec/app/admin/user-management/user-management-edit.component.spec.ts.ejs
@@ -51,10 +51,6 @@ describe('UserManagementEdit Component', () => {
     userManagementEdit = wrapper.vm;
   });
 
-  it('should be a Vue instance', () => {
-    expect(wrapper.isVueInstance()).toBeTruthy();
-  });
-
   describe('init', () => {
     it('Should load user', async () => {
       // GIVEN
diff --git a/generators/client/templates/vue/src/test/javascript/spec/app/admin/user-management/user-management-view.component.spec.ts.ejs b/generators/client/templates/vue/src/test/javascript/spec/app/admin/user-management/user-management-view.component.spec.ts.ejs
index b6d8771..d05c411 100644
--- a/generators/client/templates/vue/src/test/javascript/spec/app/admin/user-management/user-management-view.component.spec.ts.ejs
+++ b/generators/client/templates/vue/src/test/javascript/spec/app/admin/user-management/user-management-view.component.spec.ts.ejs
@@ -37,10 +37,6 @@ describe('UserManagementView Component', () => {
     userManagementView = wrapper.vm;
   });
 
-  it('should be a Vue instance', () => {
-    expect(wrapper.isVueInstance()).toBeTruthy();
-  });
-
   describe('OnInit', () => {
     it('Should call load all on init', async () => {
       // GIVEN
diff --git a/generators/client/templates/vue/src/test/javascript/spec/app/admin/user-management/user-management.component.spec.ts.ejs b/generators/client/templates/vue/src/test/javascript/spec/app/admin/user-management/user-management.component.spec.ts.ejs
index da884b1..a8af35e 100644
--- a/generators/client/templates/vue/src/test/javascript/spec/app/admin/user-management/user-management.component.spec.ts.ejs
+++ b/generators/client/templates/vue/src/test/javascript/spec/app/admin/user-management/user-management.component.spec.ts.ejs
@@ -66,10 +66,6 @@ describe('UserManagement Component', () => {
     userManagement = wrapper.vm;
   });
 
-  it('should be a Vue instance', () => {
-    expect(wrapper.isVueInstance()).toBeTruthy();
-  });
-
   describe('OnInit', () => {
     it('Should call load all on init', async () => {
       // WHEN
diff --git a/generators/client/templates/vue/src/test/javascript/spec/app/core/error/error.component.spec.ts.ejs b/generators/client/templates/vue/src/test/javascript/spec/app/core/error/error.component.spec.ts.ejs
index c1c7284..22dfaed 100644
--- a/generators/client/templates/vue/src/test/javascript/spec/app/core/error/error.component.spec.ts.ejs
+++ b/generators/client/templates/vue/src/test/javascript/spec/app/core/error/error.component.spec.ts.ejs
@@ -39,11 +39,7 @@ let wrapper: Wrapper<ErrorClass>;
     });
     error = wrapper.vm;
   });
-
-  it('should be a Vue instance', () => {
-    expect(wrapper.isVueInstance()).toBeTruthy();
-  });
-
+  
   it('should have retrieve custom error on routing', () => {
     error.beforeRouteEnter({meta: { errorMessage: customErrorMsg}}, null, cb => cb(error));
 
diff --git a/generators/client/templates/vue/src/test/javascript/spec/app/core/home/home.component.spec.ts.ejs b/generators/client/templates/vue/src/test/javascript/spec/app/core/home/home.component.spec.ts.ejs
index d6d7b56..74f345d 100644
--- a/generators/client/templates/vue/src/test/javascript/spec/app/core/home/home.component.spec.ts.ejs
+++ b/generators/client/templates/vue/src/test/javascript/spec/app/core/home/home.component.spec.ts.ejs
@@ -36,10 +36,6 @@ describe('Home', () => {
     home = wrapper.vm;
   });
 
-  it('should be a Vue instance', () => {
-    expect(wrapper.isVueInstance()).toBeTruthy();
-  });
-
   it('should not have user data set', () => {
     expect(home.authenticated).toBeFalsy();
     expect(home.username).toBe('');
diff --git a/generators/client/templates/vue/src/test/javascript/spec/app/core/jhi-footer/jhi-footer.component.spec.ts.ejs b/generators/client/templates/vue/src/test/javascript/spec/app/core/jhi-footer/jhi-footer.component.spec.ts.ejs
deleted file mode 100644
index 506c528..0000000
--- a/generators/client/templates/vue/src/test/javascript/spec/app/core/jhi-footer/jhi-footer.component.spec.ts.ejs
+++ /dev/null
@@ -1,31 +0,0 @@
-import { shallowMount, createLocalVue, Wrapper } from "@vue/test-utils";
-import JhiFooter from '@/core/jhi-footer/jhi-footer.vue';
-import JhiFooterClass from '@/core/jhi-footer/jhi-footer.component';
-
-import * as config from '@/shared/config/config';
-
-const localVue = createLocalVue();
-
-config.initVueApp(localVue);
-<%_ if (enableTranslation) { _%>
-const i18n = config.initI18N(localVue);
-<%_ } _%>
-
-describe('JhiFooter', () => {
-  let jhiFooter: JhiFooterClass;
-  let wrapper: Wrapper<JhiFooterClass>;
-
-  beforeEach(() => {
-    wrapper = shallowMount<JhiFooterClass>(JhiFooter, {
-      <%_ if (enableTranslation) { _%>
-      i18n,
-      <%_ } _%>
-      localVue,
-    });
-    jhiFooter = wrapper.vm;
-  });
-
-  it('should be a Vue instance', async () => {
-    expect(wrapper.isVueInstance()).toBeTruthy();
-  });
-});
diff --git a/generators/client/templates/vue/src/test/javascript/spec/app/core/jhi-navbar/jhi-navbar.component.spec.ts.ejs b/generators/client/templates/vue/src/test/javascript/spec/app/core/jhi-navbar/jhi-navbar.component.spec.ts.ejs
index 879f71c..0197994 100644
--- a/generators/client/templates/vue/src/test/javascript/spec/app/core/jhi-navbar/jhi-navbar.component.spec.ts.ejs
+++ b/generators/client/templates/vue/src/test/javascript/spec/app/core/jhi-navbar/jhi-navbar.component.spec.ts.ejs
@@ -54,14 +54,11 @@ let wrapper: Wrapper<JhiNavbarClass>;
     });
     jhiNavbar = wrapper.vm;
   });
-
-  it('should be a Vue instance', () => {
-    expect(wrapper.isVueInstance()).toBeTruthy();
-
-    <%_ if (enableTranslation) { _%>
+  <%_ if (enableTranslation) { _%>
+  it('should refresh translations', () => {
     expect(translationService.refreshTranslation).toHaveBeenCalled();
-    <%_ } _%>
   });
+  <%_ } _%>
 
   it('should not have user data set', () => {
     expect(jhiNavbar.authenticated).toBeFalsy();
diff --git a/generators/client/templates/vue/src/test/javascript/spec/app/core/ribbon/ribbon.component.spec.ts.ejs b/generators/client/templates/vue/src/test/javascript/spec/app/core/ribbon/ribbon.component.spec.ts.ejs
index 76bb156..a39b799 100644
--- a/generators/client/templates/vue/src/test/javascript/spec/app/core/ribbon/ribbon.component.spec.ts.ejs
+++ b/generators/client/templates/vue/src/test/javascript/spec/app/core/ribbon/ribbon.component.spec.ts.ejs
@@ -32,11 +32,6 @@ describe('Ribbon', () => {
     store.commit('setRibbonOnProfiles', null);
   });
 
-  it('should be a Vue instance', async () => {
-    await wrap();
-    expect(wrapper.isVueInstance()).toBeTruthy();
-  });
-
   it('should not have ribbonEnabled when no data', async () => {
     await wrap();
     expect(ribbon.ribbonEnabled).toBeFalsy();
diff --git a/generators/entity-client/templates/vue/src/test/javascript/spec/app/entities/entity-management.component.spec.ts.ejs b/generators/entity-client/templates/vue/src/test/javascript/spec/app/entities/entity-management.component.spec.ts.ejs
index dd23ace..e4014c5 100644
--- a/generators/entity-client/templates/vue/src/test/javascript/spec/app/entities/entity-management.component.spec.ts.ejs
+++ b/generators/entity-client/templates/vue/src/test/javascript/spec/app/entities/entity-management.component.spec.ts.ejs
@@ -79,10 +79,6 @@ describe('Component Tests', () => {
       comp = wrapper.vm;
     });
 
-    it('should be a Vue instance', () => {
-      expect(wrapper.isVueInstance()).toBeTruthy();
-    });
-
     it('Should call load all on init', async () => {
       // GIVEN
       <%= entityInstance %>ServiceStub.retrieve.resolves({ headers: {}, data: [{ id: <%- tsKeyId %> }] });
diff --git a/generators/page/templates/vue/src/test/javascript/spec/app/pages/page.component.spec.ts.ejs b/generators/page/templates/vue/src/test/javascript/spec/app/pages/page.component.spec.ts.ejs
index dc7f203..1d8ca0e 100644
--- a/generators/page/templates/vue/src/test/javascript/spec/app/pages/page.component.spec.ts.ejs
+++ b/generators/page/templates/vue/src/test/javascript/spec/app/pages/page.component.spec.ts.ejs
@@ -54,10 +54,6 @@ describe('Component Tests', () => {
       comp = wrapper.vm;
     });
 
-    it('should be a Vue instance', () => {
-      expect(wrapper.isVueInstance()).toBeTruthy();
-    });
-
     it('Should call "method" on init', async () => {
       // THEN
       expect(<%= pageInstance %>ServiceStub.method.called).toBeTruthy();
diff --git a/test/generator.spec.js b/test/generator.spec.js
index 826e848..6ad01c6 100644
--- a/test/generator.spec.js
+++ b/test/generator.spec.js
@@ -130,7 +130,6 @@ const expectedFiles = {
         `${CLIENT_SPEC_SRC_DIR}app/admin/audits/audits.component.spec.ts`,
         // `${CLIENT_SPEC_SRC_DIR}app/admin/audits/audits.service.spec.ts`,
         `${CLIENT_SPEC_SRC_DIR}app/admin/configuration/configuration.component.spec.ts`,
-        `${CLIENT_SPEC_SRC_DIR}app/admin/docs/docs.component.spec.ts`,
         `${CLIENT_SPEC_SRC_DIR}app/admin/health/health.component.spec.ts`,
         `${CLIENT_SPEC_SRC_DIR}app/admin/health/health-modal.component.spec.ts`,
         `${CLIENT_SPEC_SRC_DIR}app/admin/health/health.service.spec.ts`,
@@ -153,7 +152,6 @@ const expectedFiles = {
 
         `${CLIENT_SPEC_SRC_DIR}app/core/error/error.component.spec.ts`,
         `${CLIENT_SPEC_SRC_DIR}app/core/home/home.component.spec.ts`,
-        `${CLIENT_SPEC_SRC_DIR}app/core/jhi-footer/jhi-footer.component.spec.ts`,
         `${CLIENT_SPEC_SRC_DIR}app/core/jhi-navbar/jhi-navbar.component.spec.ts`,
         `${CLIENT_SPEC_SRC_DIR}app/core/ribbon/ribbon.component.spec.ts`,
         `${CLIENT_SPEC_SRC_DIR}app/shared/alert/alert.service.spec.ts`,