Skip to content

@suites/doubles.vitest esm module doesn't include file extension #946

@pserrer1

Description

@pserrer1

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

Currently the @suites/doubles.vitest isn't working in esm projects as esm requries imports to have a file extension. The dist output created by tsc won't add the required .js file extension.
As the package currently builds commonjs and esm, it might be better to use a build tool like tsup.

Manually fixing the esm/index.js and adding the file extension to the mock.static imports fixes the issue.

Minimum reproduction code

https://github.com/

Steps to reproduce

No response

Expected behavior

There should be an error when using await TestBed.solitary(...).compile()

Suites version

3.0.1

Node.js version

24.8.0

In which operating systems have you tested?

  • macOS
  • Windows
  • Linux

Other

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions