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

feat: support file URLs #193

Merged
merged 2 commits into from Mar 6, 2023
Merged

feat: support file URLs #193

merged 2 commits into from Mar 6, 2023

Conversation

SimenB
Copy link
Member

@SimenB SimenB commented Mar 5, 2023

It might make more sense to just change the type here, but implement conversion in jest-worker.

EDIT: jestjs/jest#13982

@SimenB SimenB requested a review from mrazauskas March 5, 2023 20:40
@SimenB SimenB marked this pull request as draft March 5, 2023 21:01
@SimenB SimenB marked this pull request as ready for review March 6, 2023 13:41
@@ -78,7 +78,7 @@ export default function createRunner<
onFailure: OnTestFailure,
options: TestRunnerOptions,
): Promise<void> {
const runner: TestRunner = (await import(runPath)).default;
const runner: TestRunner = (await import(runPath.toString())).default;
Copy link
Member Author

Choose a reason for hiding this comment

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

TS believes this must be a string, which is wrong. But it's also fine to just stringify it (since it's transpiled to require it's probably a good idea)

@SimenB SimenB merged commit 86ef371 into main Mar 6, 2023
@SimenB SimenB deleted the support-file-url branch March 6, 2023 13:43
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.

None yet

1 participant