The issue is apparently similar to https://github.com/nodejs/node/issues/59364
Running tests using the "--no-experimental-strip-types" flag seems to solve the problem.
node --test --no-experimental-strip-types