Skip to content

[vitest-pool-workers] module fallback path resolution #12022

@vicb

Description

@vicb

The module fallback of vitest-pool-work looks for required files adding js extensions

This behavior is specific to require (see doc) but should not be used for imports. Then we should only it when the resolve method is === "require".

One caveat is that TS extend the import spec and allow not to specify and specify any extension depending on the tsconfig setting - how do we want to handle that?

Note: #11917 (pending ATM) is correctly adding.json to the list.

Metadata

Metadata

Labels

vitestRelating to the Workers Vitest integration

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions