You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use the injectGlobals: false in a TypeScript project to avoid having to depend on the @types/jest library. I want to use this library to prevent unexpected console logging, but it's incompatible as it relies on the injected globals (looks like afterEach, beforeEach, and expect).
The text was updated successfully, but these errors were encountered:
I've noticed that some generated text causes KaTeX to log to the console as it's not valid LaTeX (primarily when it contains a `%` character, which triggers a comment, but there's no newline at the end. By default, KaTeX handles these cases but warns about them. This commit turns off those warnings.
I looked at using the 'jest-fail-on-console' library to ensure that dependencies don't output things unexpectedly, but it's currently incompatible with our Jest configuration.
Refs #1124, https://katex.org/docs/options.html, ValentinH/jest-fail-on-console#41
We use the
injectGlobals: false
in a TypeScript project to avoid having to depend on the@types/jest
library. I want to use this library to prevent unexpected console logging, but it's incompatible as it relies on the injected globals (looks likeafterEach
,beforeEach
, andexpect
).The text was updated successfully, but these errors were encountered: