title: Cannot find module 'swiper_angular' on unit test (jest) after upgrading Swiper 6 to 7
body: <p>I'm running into a problem on my unit tests after <a href="https://swiperjs.com/migration-guide" rel="nofollow noreferrer">upgrading Swiper 6 to 7</a>. I'm using Angular 12 and Swiper 7.3.1. Before upgrading it the unit tests were working fine (Swiper version 6.5.9).</p>
  <p>I'm using the <code>SwiperModule</code> in my tests like this:</p>
  <pre><code>import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
  import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
  import { of } from 'rxjs';
  import { SwiperComponent, SwiperModule } from 'swiper/angular';
  
  import { TeaserWrapperContainerComponent } from './teaser-wrapper-container.component';
  import { InterfaceState } from '@migrosonline/shared-deps-all/core/interface/interface.store';
  
  
  describe('TeaserWrapperContainerComponent', () =&gt; {
      let component: TeaserWrapperContainerComponent;
      let fixture: ComponentFixture&lt;TeaserWrapperContainerComponent&gt;;
  
  const mockedSwiperComponent = {
          swiperRef: {
              slideNext: jest.fn(),
              slidePrev: jest.fn(),
              destroy: jest.fn(),
              update: jest.fn()
          }
      } as unknown as SwiperComponent;
  
  beforeEach(
          waitForAsync(() =&gt; {
              mockedInterfaceService.prototype.select = jest.fn();
  
              TestBed.configureTestingModule({
                  declarations: [TeaserWrapperContainerComponent],
                  imports: [SwiperModule],
                  providers: [{ provide: InterfaceService, useClass: mockedInterfaceService }],
                  schemas: [CUSTOM_ELEMENTS_SCHEMA]
              }).compileComponents();
          })
      );
  
      beforeEach(() =&gt; {
          fixture = TestBed.createComponent(TeaserWrapperContainerComponent);
          component = fixture.componentInstance;
          component.teaserGroupSliderRef = mockedSwiperComponent;
      });
  
      it('should create', () =&gt; {
          fixture.detectChanges();
  
          expect(component).toBeTruthy();
      });
  
  });
  </code></pre>
  <p>and the error I get is this:</p>
  <pre><code>Cannot find module 'swiper_angular' from 'src/lib/shared/teaser/teaser-wrapper-container/teaser-wrapper-container.component.spec.ts'
  
        3 | import { of } from 'rxjs';
      &gt; 4 | import { SwiperComponent, SwiperModule } from 'swiper/angular';
  </code></pre>
  <p>I would appreciate any ideas/comments/suggestions.</p>