cmorten / superdeno

Super-agent driven library for testing Deno HTTP servers.
https://cmorten.github.io/superdeno/
MIT License
124 stars 6 forks source link

Make Deno 2.0 compatible #45

Open dxdye opened 4 days ago

dxdye commented 4 days ago

Issue

46

This package is not compatible with Deno 2.0, I made a couple changes, which make it work again. I do some doc on this branch in #46 - maybe have a look at this.. Initially I just wanted to replace the window Variable, with globalThis which is the new Standard in Deno 2.0. The tests did not ran through - until now, after I've commented out some tests, which involve using Opine as dependency. Also there some whitespaces, seem to appear where they shouldn't (in http headers).

May need approval for workflows to run through, again. The tests should now run through

Details

dxdye commented 3 days ago

Considering to remove Opine tests, since its deps do not work with Deno 2.0

dxdye commented 3 days ago

I've thrown out several tests, mainly because Opine, which seems to play a crucial role in testing is deprecated/ not executable in Deno 2.0 because of deprecated import assertions. Maybe I'll open a pull request, which addresses this issue in Opine' s repo..

Once the dep is fixed, I maybe able to run all tasks