Skip to content

Cannot be used with Jest #4

@LifeIsStrange

Description

@LifeIsStrange
● Test suite failed to run

    TypeError: Cannot read property 'getAttribute' of undefined

       8 |     return name.replace(/[A-Z]/g, m => "-" + m.toLowerCase());
       9 |   };
    > 10 |   public mainBlackTextColor = new CSSGlobalVariables({ normalize: this.camelToHyphens }).mainBlackText;
         |                               ^
      11 |   public mainWhiteTextColor = new CSSGlobalVariables({ normalize: this.camelToHyphens }).mainWhiteText;
      12 | 
      13 |   public getRandId(): string {

we have added css-global-variables to transformIgnorePatterns like we do for other libraries but it fail :/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions