Skip to content

Commit 30851b2

Browse files
devversionjelbourn
authored andcommitted
build: do not include material prebuilt theme twice in legacy tests (#16966)
Apparently we include the Angular Material prebuilt theme twice in the legacy Karma tests. This is because we also generate a second folder called `esm5` in the package output (for later use in the release composing step). This folder also contains the prebuilt themes as a side-effect of copying the assets for esm5 inlining/bundling. In any case, we should not import the theme using a glob, but rather use an explicit path (similar to how we do it for the mdc theme).
1 parent 2817c9e commit 30851b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/karma.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ module.exports = config => {
5858
// Include a Material theme in the test suite. Also include the MDC theme as
5959
// karma runs tests for the MDC prototype components as well.
6060
{
61-
pattern: 'dist/packages/**/core/theming/prebuilt/indigo-pink.css',
61+
pattern: 'dist/packages/material/core/theming/prebuilt/indigo-pink.css',
6262
included: true,
6363
watched: true
6464
},

0 commit comments

Comments
 (0)