Skip to content
Snippets Groups Projects
test-setup.ts 435 B
Newer Older
  • Learn to ignore specific revisions
  • OZGCloud's avatar
    OZGCloud committed
    import 'jest-preset-angular/setup-jest';
    
    import '@testing-library/jest-dom';
    
    OZGCloud's avatar
    OZGCloud committed
    
    
    import { getTestBed } from '@angular/core/testing';
    import {
    	BrowserDynamicTestingModule,
    	platformBrowserDynamicTesting,
    } from '@angular/platform-browser-dynamic/testing';
    
    getTestBed().resetTestEnvironment();
    getTestBed().initTestEnvironment(
    	BrowserDynamicTestingModule,
    	platformBrowserDynamicTesting(),
    	{ teardown: { destroyAfterEach: false } }
    );