1
0

Don't enforce ThemedComponent selectors in test HTML

This commit is contained in:
Yury Bondarenko
2024-03-14 12:30:20 +01:00
parent 3937be13f2
commit 13e9808df2
2 changed files with 35 additions and 0 deletions

View File

@@ -20,6 +20,11 @@ export default {
}
},
create(context: any) {
if (context.getFilename().includes('.spec.ts')) {
// skip inline templates in unit tests
return {};
}
return {
[`Element$1[name = /^${DISALLOWED_THEME_SELECTORS}/]`](node: any) {
context.report({