Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kherock/vitest-new-url-bug


https://github.com/kherock/vitest-new-url-bug

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

## Reproduction of `new URL(..., import.meta.url)` regression in Vitest 0.34

A test case in [basic.spec.js](./test/basic.spec.js) has been added asserting
that URLs are correctly transformed with an `http` protocol URL when the `jsdom`
environment (web transform mode) is configured.

This test will fail when Vitest is upgraded to 0.34:

```console
npm i -D [email protected]
npm test
```