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

chore(gatsby-core-utils): migrate to TypeScript #22040

Closed
wants to merge 1 commit into from

Conversation

danielkov
Copy link
Contributor

@danielkov danielkov commented Mar 7, 2020

Description

Migrate gatsby-core-utils to TypeScript

This PR does not yet address all tests, due to some mocking being done with Jest in a way that's not favored by TypeScript. A good workaround would be to revisit the tests in another PR, separating each case where mocking is needed and providing a mock implementation inline.

Related Issues

Umbrella ticket: #21995
Overlapping changes: #22031

@danielkov danielkov requested a review from a team as a code owner March 7, 2020 23:24
@@ -0,0 +1,22 @@
import Module from "module"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

"allowSyntheticDefaultImports": true is needed for this to work with import * as Module from "module"

@MichaelDeBoey
Copy link
Contributor

Could you please create separate PRs for each file you change, like requested by @blainekasten in #21995 (comment)?

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.

2 participants