Skip to content

Conversation

@crisbeto
Copy link
Member

Removes usages of the baseUrl compiler option which is deprecated and will start throwing an error in TypeScript 6.

Removes usages of the `baseUrl` compiler option which is deprecated and will start throwing an error in TypeScript 6.
});

// TODO(crisbeto): the `baseUrl` here will trigger a deprecation error in TS6. We may
// have to opt out of it for this test since Webpack seems to depend on the `baseUrl`.
Copy link
Member Author

Choose a reason for hiding this comment

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

The context here is that it should work without the baseUrl since the default has been ./ for a while, but it doesn't for some reason. I suspect something in Webpack might be depending on it. Once TS6 is out, we can opt out these tests from the deprecation error.

@crisbeto crisbeto added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Jan 21, 2026
@crisbeto crisbeto marked this pull request as ready for review January 21, 2026 11:11
Copy link
Collaborator

@alan-agius4 alan-agius4 left a comment

Choose a reason for hiding this comment

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

In general, this LGTM, though one of the test cases updates is incorrect.

harness.expectFile(coveragePath).toNotExist();
});

it(`should collect coverage from paths in 'sourceRoot'`, async () => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This changes the test. Coverage from node_modules is always ignored.
In this case, we want to ensure that coverage for local libraries is not included (IE: not included in node_module).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants