Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix imports during runs and tests #587

Merged
merged 1 commit into from
Jun 8, 2023
Merged

fix: Fix imports during runs and tests #587

merged 1 commit into from
Jun 8, 2023

Conversation

smockle
Copy link
Owner

@smockle smockle commented Jun 8, 2023

"type": "module" in package.json necessitates including the .js file extension in file import statements. Details in TypeScript docs: type in package.json.

Then, to fix npm test, I added the moduleNameMapper from kulshekhar/ts-jest#1057 (comment) (fixing the quotes).

'"type": "module"' in 'package.json' necessitates including the '.js' file extension in 'import' statements.
@smockle smockle enabled auto-merge June 8, 2023 19:35
@smockle smockle merged commit fd8024f into main Jun 8, 2023
@smockle smockle deleted the fix-imports branch June 8, 2023 19:36
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.

1 participant