Skip to content

Commit ff6ee4e

Browse files
devversionjelbourn
authored andcommitted
build: add mdc prebuilt theme to karma legacy tests (#16965)
Adds the MDC prebuilt theme to the karma legacy tests. This is consistent with what we did for the Bazel tests. It can cause unexpected differences and confusion when debugging tests in both Bazel and the legacy job (different visual output).
1 parent d2baacc commit ff6ee4e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/karma.conf.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,18 @@ module.exports = config => {
5555
{pattern: 'test/karma-system-config.js', included: true, watched: false},
5656
{pattern: 'test/karma-test-shim.js', included: true, watched: false},
5757

58-
// Include a Material theme in the test suite.
58+
// Include a Material theme in the test suite. Also include the MDC theme as
59+
// karma runs tests for the MDC prototype components as well.
5960
{
6061
pattern: 'dist/packages/**/core/theming/prebuilt/indigo-pink.css',
6162
included: true,
6263
watched: true
6364
},
65+
{
66+
pattern: 'dist/packages/material-experimental/mdc-theming/prebuilt/indigo-pink.css',
67+
included: true,
68+
watched: true
69+
},
6470

6571
// Includes all package tests and source files into karma. Those files will be watched.
6672
// This pattern also matches all sourcemap files and TypeScript files for debugging.

0 commit comments

Comments
 (0)