Skip to content

Commit

Permalink
Merge pull request #10854 from qmonmert/fixtestimport
Browse files Browse the repository at this point in the history
Type and must be imported using a type-only import
  • Loading branch information
murdos authored Sep 15, 2024
2 parents 2e10b4a + b762397 commit 3a0cbf8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { describe, expect, it } from 'vitest';
import { RestPage, toPage } from '@/shared/pagination/infrastructure/secondary/RestPage';
import { Page } from '@/shared/pagination/domain/Page';
import { type RestPage, toPage } from '@/shared/pagination/infrastructure/secondary/RestPage';
import type { Page } from '@/shared/pagination/domain/Page';

describe('RestPage', () => {
it('should map empty page', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { mount, VueWrapper } from '@vue/test-utils';
import { beforeEach, describe, expect, it } from 'vitest';
import { createRouter, createWebHistory, Router } from 'vue-router';
import { createRouter, createWebHistory, type Router } from 'vue-router';
import { routes } from '@/router';
import HomepageVue from '@/home/infrastructure/primary/HomepageVue.vue';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, it, expect } from 'vitest';
import { AxiosResponse } from 'axios';
import type { AxiosResponse } from 'axios';
import { AxiosHttp } from '@/shared/http/infrastructure/secondary/AxiosHttp';
import { dataAxiosResponse, stubAxiosInstance } from './AxiosStub';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { AxiosInstance, AxiosResponse } from 'axios';
import sinon, { SinonStub } from 'sinon';
import type { AxiosInstance, AxiosResponse } from 'axios';
import sinon, { type SinonStub } from 'sinon';

export interface AxiosStubInstance extends AxiosInstance {
get: SinonStub;
Expand Down

0 comments on commit 3a0cbf8

Please sign in to comment.