Skip to content

Commit

Permalink
fix angular test discovery (#2467)
Browse files Browse the repository at this point in the history
  • Loading branch information
PranavSenthilnathan committed May 31, 2023
1 parent 863cb9c commit 75b2736
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -19,6 +19,11 @@ module.exports = function (config) {
// Replace all reporters
config.reporters = ['vsKarmaReporter'];

if (!config.hostname && !config.listenAddress) {
// The default address is IPv4 but node 17+ uses IPv6. Update the value to 'localhost' (which works with both IPv4 and IPv6) if it was not set.
config.hostname = config.listenAddress = 'localhost';
}

setGrep(config);
};

Expand Down

0 comments on commit 75b2736

Please sign in to comment.