solr-node-client icon indicating copy to clipboard operation
solr-node-client copied to clipboard

Undici library causes tests to fail in the browser (Karma).

Open AndreWillomitzer opened this issue 3 years ago • 0 comments

Hello! I have been working on this issue for a few weeks with one of the maintainers @kibertoad and figured I should make a formal issue so that even if we don't get it done, whoever does can link to the issue in their PR and close it.

The Issue

The tests that exist in the test directory use Undici requests which are not browser compatible. If you attempt to run the tests using Karma it will give many errors.

Here is the link to the in progress PR:

#306

I have set up Karma config, typescript pre-processing for it, and changed a few import statements to try and get Undici working. @kibertoad I think was suggesting to just leave the Undici stuff for now and merge the Karma config and the changes that won't break anything.

AndreWillomitzer avatar Dec 10 '21 15:12 AndreWillomitzer