CentreForDigitalHumanities / cookiecutter-webapp-deluxe

BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

DeprecationWarning: Pattern `%d{DATE}` is deprecated #28

Closed ar-jan closed 2 years ago

ar-jan commented 2 years ago

Running tests:

(node:1813) [log4js-node-DEP0004] DeprecationWarning: Pattern %d{DATE} is deprecated due to the confusion it causes when used. Please use %d{DATETIME} instead. (Use node --trace-deprecation ... to show where the warning was created)

ar-jan commented 2 years ago

How should we use --trace-deprecation within an Angular project?

jgonggrijp commented 2 years ago

Suppose that you are running ng <something>. In theory, the following should work (you can generalize this):

node --trace-deprecation `yarn bin`/ng <something>
ar-jan commented 2 years ago

Indeed, that works. node --trace-deprecation $(yarn bin)/ng test --watch=false.

Here the fix is to upgrade to karma 6.3.12+.