I wanna have material css in my specs. Before I had it like this in karma config:
files: [
// make sure material styles are served
{ pattern: './node_modules/@angular/material/prebuilt-themes/indigo-pink.css', watched: true, included: true, served: true },
{ pattern: './src/test.ts', watched: false }
]
But new projects don't have a files property anymore in karma config.
I tried adding it in angular.json but it doesnt work:
"test": {
...
"options": {
"main": "src/test.ts",
...
"karmaConfig": "src/karma.conf.js",
"styles": [
"node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
"src/styles.scss"
],
Any idea how to do it now?