Closed Aprillion closed 2 years ago
Actually, VS Code pretends that the .js
file can be imported and click-through works, but Jest itself does not have any black magic to resolve .js
file extension when only a .ts
file exists => the files should be either called .ts
in the next
branch or we could use another import black magic and don't use any file extension (in which case the same .md
files can be used in both main
and next
branches).
Thanks! I'd prefer to just use .ts
in the next
branch. Updated 👍
Working with instructions in the
next
TS branch, I notice a few places in 05.md, 06.md, and 07.md which mention JS file extensions:The
test/server-handlers.js
mentioned in 05.md extra credit 1 is an instruction for importing - to my surprise the import works even with.js
extension even though only.ts
file exists in that directory 🤷♂️ so maybe no action needed, up to you.