Skip to content

Conversation

jablko
Copy link
Contributor

@jablko jablko commented Nov 7, 2020

Allows e.g. listing ../mock-tests.ts in types/mock/ts1.0/tsconfig.json, so you can run the same tests on newer and older typesVersions.

throw new Error(`In ${tsconfigPath}: Unnecessary "./" at the start of ${file}`);
}
if (!isRelativePath(file)) {
if (!isRelativePath(file.replace(/^(?:\.\.\/)+/, ""))) {
Copy link
Member

Choose a reason for hiding this comment

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

Doesn’t this allow tests from anywhere? Or is there something else that would prevent types/react-dom/tsconfig.json from listing ../react/react-tests.d.ts?

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