Fix tests on main (#479)

This commit is contained in:
Félix Malfait
2023-06-29 22:30:56 -07:00
committed by GitHub
parent eb7fb2ba8e
commit 3731380ce6
6 changed files with 8 additions and 4 deletions

View File

@ -1,8 +1,8 @@
import { Navigate, Route, Routes } from 'react-router-dom';
import { useTrackPageView } from '@/analytics/hooks/useTrackPageView';
import { RequireAuth } from '@/auth/components/RequireAuth';
import { RequireNotAuth } from '@/auth/components/RequireNotAuth';
import { useTrackPageView } from '@/analytics/hooks/useTrackPageView';
import { useGoToHotkeys } from '@/hotkeys/hooks/useGoToHotkeys';
import { DefaultLayout } from '@/ui/layout/DefaultLayout';
import { Index } from '~/pages/auth/Index';

View File

@ -1,8 +1,8 @@
import { getOperationName } from '@apollo/client/utilities';
import { graphql } from 'msw';
import { GET_COMPANIES } from '@/companies/services';
import { CREATE_EVENT } from '@/analytics/services';
import { GET_COMPANIES } from '@/companies/services';
import { GET_PEOPLE, UPDATE_PERSON } from '@/people/services';
import {
SEARCH_COMPANY_QUERY,

View File

@ -1,4 +1,4 @@
import { ObjectType, Field, Int } from '@nestjs/graphql';
import { ObjectType, Field } from '@nestjs/graphql';
@ObjectType()
export class Event {

View File

@ -1,12 +1,14 @@
import { Test, TestingModule } from '@nestjs/testing';
import { EventResolver } from './event.resolver';
import { EventService } from './event.service';
import { HttpModule } from '@nestjs/axios';
describe('EventResolver', () => {
let resolver: EventResolver;
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
imports: [HttpModule],
providers: [EventResolver, EventService],
}).compile();

View File

@ -1,4 +1,4 @@
import { Resolver, Mutation, Args, Context } from '@nestjs/graphql';
import { Resolver, Mutation, Args } from '@nestjs/graphql';
import { EventService } from './event.service';
import { Event } from './event.entity';
import { CreateEventInput } from './dto/create-event.input';

View File

@ -1,11 +1,13 @@
import { Test, TestingModule } from '@nestjs/testing';
import { EventService } from './event.service';
import { HttpModule } from '@nestjs/axios';
describe('EventService', () => {
let service: EventService;
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
imports: [HttpModule],
providers: [EventService],
}).compile();