Skip to content

Switch to vitest for better ESM support#370

Merged
vladislavarsenev merged 4 commits into
trivago:v6from
RobbieTheWagner:vitest
Jul 10, 2025
Merged

Switch to vitest for better ESM support#370
vladislavarsenev merged 4 commits into
trivago:v6from
RobbieTheWagner:vitest

Conversation

@RobbieTheWagner
Copy link
Copy Markdown
Contributor

I was still hitting issues with jest and trying to get full ESM support, so I decided to switch to vitest. This seems to be working and snapshots are generated essentially the same.

I was still hitting issues with jest and trying to get full ESM support, so I decided to switch to vitest. This seems to be working and snapshots are generated essentially the same.
@RobbieTheWagner
Copy link
Copy Markdown
Contributor Author

@vladislavarsenev @byara I went ahead and converted to vitest, which I think you had mentioned you wanted to do? It works a lot better with ESM it seems.

@byara byara requested a review from vladislavarsenev July 9, 2025 15:00
`;

exports[`sort-imports-ignored.ts - typescript-verify: sort-imports-ignored.ts 1`] = `
exports[`ppsi.spec.js - typescript-verify > ppsi.spec.js 1`] = `
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like was tested a file that wasn't supposed to be tested

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes, let me fix that.

@vladislavarsenev
Copy link
Copy Markdown
Collaborator

Thanks for these changes! I left just one comment.

@RobbieTheWagner
Copy link
Copy Markdown
Contributor Author

@vladislavarsenev I fixed that issue. Thanks for calling it out! I think this is the last piece we need before I can actually work on the Ember gjs/gts support 🤞

@vladislavarsenev
Copy link
Copy Markdown
Collaborator

Thanks for quick fix. One more thing is left. I tested it with

yarn preexample
yarn example ./examples

and it didn't work with module resolution error. Take a look please what is wrong. It seems it was broken by ESM changes in v6 branch

@RobbieTheWagner
Copy link
Copy Markdown
Contributor Author

@vladislavarsenev I am trying to debug that now, but have not been able to figure it out yet. Since the bug was introduced from another PR, could we go ahead and merge this and then fix the bug in its own PR perhaps?

@RobbieTheWagner
Copy link
Copy Markdown
Contributor Author

@vladislavarsenev I have figured out most of the issues and opened a PR to fix the examples here #371

Could we please merge this one and then I can rebase and fix the remaining issues?

@vladislavarsenev
Copy link
Copy Markdown
Collaborator

Ok, let's do this like that

@vladislavarsenev vladislavarsenev merged commit 9680197 into trivago:v6 Jul 10, 2025
3 checks passed
@RobbieTheWagner RobbieTheWagner deleted the vitest branch July 10, 2025 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants