Node.js 12 only support TLSv1.2 and TLSv1.3 by default.
MariaDB server can be build with different SSL library.
Depending on those libraries, different TLS is supported.
The default build for windows for MariaDB 10.3 and before did use Yassl, that support up to TLSv1.1.
Those versions won't permit SSL connection with node.js 12 by default.
(MariaDB 10.4 support TLSv1.2 on windows, and TLSv1.3 on unix by default)
Tests must be changed according to server type, environment and version