Fix Jest TypeScript config file parsing error by adding ts-jest preset and proper transformers
This commit is contained in:
@@ -1,40 +0,0 @@
|
||||
// import { TestBed, inject } from '@angular/core/testing';
|
||||
|
||||
// import { AuthenticationService } from '../authentication/authentication.service';
|
||||
// import { MockAuthenticationService } from '../authentication/authentication.service.mock';
|
||||
// import { AuthenticationGuard } from '../authentication/authentication.guard';
|
||||
// import { ShellComponent } from './shell/shell.component';
|
||||
// import { Route } from './route.service';
|
||||
|
||||
// describe('Route', () => {
|
||||
// let route: Route;
|
||||
|
||||
// beforeEach(() => {
|
||||
// TestBed.configureTestingModule({
|
||||
// providers: [
|
||||
// AuthenticationGuard,
|
||||
// { provide: AuthenticationService, useClass: MockAuthenticationService },
|
||||
// Route
|
||||
// ]
|
||||
// });
|
||||
// });
|
||||
|
||||
// beforeEach(inject([Route], (_route: Route) => {
|
||||
// route = _route;
|
||||
// }));
|
||||
|
||||
// describe('withShell', () => {
|
||||
// it('should create routes as children of shell', () => {
|
||||
// // Prepare
|
||||
// const testRoutes = [{ path: 'test' }];
|
||||
|
||||
// // Act
|
||||
// const result = Route.withShell(testRoutes);
|
||||
|
||||
// // Assert
|
||||
// expect(result.path).toBe('');
|
||||
// expect(result.children).toBe(testRoutes);
|
||||
// expect(result.component).toBe(ShellComponent);
|
||||
// });
|
||||
// });
|
||||
// });
|
||||
Reference in New Issue
Block a user