* fix: correctly interop nested default for external and inlined modules, if environment is not node
* chore: cleanup
* chore: cleanup
* test: update default interop test
* chore: update module interop tests
* fix: add environment to enzym example
* chore: update tests
* test: don't run module tests without threads, because we don't clear ESM cache
* chore: correctly reset current test environment
* feat!: rewrite how vite-node resolves id
* chore: try to fix global setup test
* fix: remove /@fs/ from filepath
* chore: cleanup
* fix: normalize id for callstack
* fix: don't append "/" before disk drive on windows
* chore: cleanup
* chore: add test that windows drive is not repeated
* fix: dirname uses \\, update windows paths tests
* refactor: rename variables
* fix: don't provide importer only for /@id/
* chore: remove null byte placeholder as part of unwrapRef
* chore: cleanup
* chore: variables renaming
* fix: don't hang on circular mock
* test: update c8 snapshot
* chore: add compatibility layer for users who don't provide resolveId
* test: fix url handling in web worker
* test: fix file tests on windows
* chore: remove unnecessary normalizations in mocker
* chore: use /@fs/ when fetching module, if possible
Sometimes while automocking we will encounter a property that, for some
unknown reason, throws an error when you try to define it. Unfortunately
I can't figure out _why_ it errors, so instead I have opted to quietly
skip these unsettable properties. If that becomes a problem in the
future this can be revisited, but I don't forsee it being an issue since
these keys are mostly deeply internal prototype stuff that 99.999% of
people don't even know exists, let alone want to mock. Plus, if you
_really_ need to have this behavior you can always use `__mocks__` or
just shim it inline yourself.
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
Co-authored-by: SaulMirone <mirone@SaulMirones-MacBook-Pro.local>
Co-authored-by: Christian Hamburger Grøngaard <christianhg@gmail.com>
Co-authored-by: Narcis B <leonardssh22@gmail.com>
Co-authored-by: patak <matias.capeletto@gmail.com>
Co-authored-by: Sachin Raja <sachinraja2349@gmail.com>
Co-authored-by: Jake Ginnivan <jake@ginnivan.net>
Co-authored-by: Mirone <Saul-Mirone@outlook.com>