I am currently working on tests for an angular project and encountering errors in these two test files:
Whenever I run npm test, I receive the following error message https://pastebin.com/ncTg4WXM
I would appreciate any insights you might have regarding this issue
Here are the steps I've already taken:
npm install --save @angular/material
npm install --save @angular/cdk
ng add @angular/material
npm install --save @angular/typings
npm install typings
npm install types
Unfortunately, none of the above solutions seem to work
Highlighted segment from the error message:
ERROR in ./src/app/app.component.spec.ts
Module not found: Error: Can't resolve '@angular/material/typings' in '/home/alpha/git/epitome/src/app'
resolve '@angular/material/typings' in '/home/alpha/git/epitome/src/app'
Parsed request is a module
using description file: /home/alpha/git/epitome/package.json (relative path: ./src/app)
Field 'browser' doesn't contain a valid alias configuration
resolve as module
looking for modules in /home/alpha/git/epitome/
using description file: /home/alpha/git/epitome/package.json (relative path: .)
Field 'browser' doesn't contain a valid alias configuration
using description file: /home/alpha/git/epitome/package.json (relative path: ./@angular/material/typings)
no extension
Field 'browser' doesn't contain a valid alias configuration
/home/alpha/git/epitome/@angular/material/typings doesn't exist
.ts