Dne 27. 02. 23 v 18:43 Ladislav Slezák napsal(a):

...

The ESlint step is called *before* these string replacements so it sees the 
original
code. And that means it would complain about undefined variables. The workaround is to define it as a known global in the .eslintrc.json configuration file [5].
And similarly you need to update the jest.config.js so the value is defined when
running unit tests.


--
Ladislav Slezák
YaST Developer

SUSE LINUX, s.r.o.
Corso IIa
Křižíkova 148/34
18600 Praha 8

Reply via email to