Open dandv opened 2 weeks ago
I put the link to Advanced
section, but it seems like not too obvious. Do you have any suggestions about wording to instruct to read Advanced
section.
Or maybe we should even rename Advanced
to be something else.
Other places indeed need to be updated with util functions
I saw Docusaurus at https://docusaurus.io/docs/migration/v3 has a block "HOW TO UPGRADE". I'm thinking about adding similar block, like "HOW TO MIGRATE"
Do you have any suggestions about wording to instruct to read
Advanced
section.
If I understand correctly that presets should be used by calling functions like createDefaultEsmPreset
as shown in the example at the very bottom of the page, then my suggestions would be to:
.transform
do?create...Preset()
?transform
must, or should, be used? (link to reference page)I also looked at Jest documentation, specificly API page. I think we can also create kind of like table of content at the top of the page which contains function names. Each item in table of content will link to the description as well as explanation below
Version
29.2.0
Steps to reproduce
The documentation at https://kulshekhar.github.io/ts-jest/docs/getting-started/presets#the-presets states
Expected behavior
Should that be "presets" (plural)?
What exactly does that mean?
How can the "util functions" be used?
Actual behavior
https://kulshekhar.github.io/ts-jest/docs/getting-started/presets#basic-usage then says,
If all presets in the list are deprecated, should that comment be updated?
Also, is the example at https://kulshekhar.github.io/ts-jest/docs/guides/esm-support#use-esm-presets outdated? It uses
preset: 'ts-jest/presets/default-esm', // or other ESM presets
.I'm just trying to use the latest ESM preset that supports Top-Level Await, with least hassle.