Embarking on my maiden voyage with Angular 5...
Currently in the process of setting up a Jasmine test tutorial found at this link: https://angular.io/guide/testing. However, upon initiation, an error throws me off course:
ERROR in src/app/pizzaplace.service.spec.ts(3,10): error TS2305: Module '"/home/thomas/git/pizza-cloud-site/pizza-cloud-admin/src/app/pizzaplace.service"' has no exported member 'PizzaplaceService'.
This error doesn't surface during a typical compile. Below lies the snippet from pizzaplace.service.ts that's causing turbulence:
@Injectable()
export class PizzaPlaceService {
//class content
}
The attempts to connect the tests to Chrome result in failure messages such as:
27 02 2018 04:40:38.935:WARN [karma]: No captured browser, open http://localhost:9876/
27 02 2018 04:41:39.693:ERROR [launcher]: Chrome failed 2 times (timeout). Giving up.
The Chrome browser fires up and tries to navigate to: http://localhost:9876/?id=98768812, but is unable to resolve it.
This issue seems linked to the earlier error. Googling the error message yields unrelated results.
This snippet shows my initial unit test:
describe('1st tests', () => {
it('true is true', () => expect(true).toBe(true));
});