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

test: test built types export #945

Merged
merged 1 commit into from
Nov 22, 2023
Merged

test: test built types export #945

merged 1 commit into from
Nov 22, 2023

Conversation

straker
Copy link
Contributor

@straker straker commented Nov 21, 2023

Add typescript export tests to all our packages. In so doing discovered #944.

@straker straker requested a review from a team as a code owner November 21, 2023 23:35
// with "ts(2322): Type 'false' is not assignable to type 'true'."
(x: IsAny<typeof DefaultImportReporter>): false => x;

// TODO: this doesn't work as our types are broken
Copy link
Contributor Author

Choose a reason for hiding this comment

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

See #944

@straker straker changed the title chore: test built types export tests: test built types export Nov 21, 2023
@straker straker changed the title tests: test built types export test: test built types export Nov 21, 2023
Copy link
Contributor

@WilcoFiers WilcoFiers left a comment

Choose a reason for hiding this comment

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

Small suggestion. Could go without it too if you prefer not.

Comment on lines +7 to +8
import { AxeBuilder as NamedImportAxeBuilder } from '../dist/index.js';
import DefaultImportAxeBuilder from '../dist/index.js';
Copy link
Contributor

Choose a reason for hiding this comment

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

Could probably do it like this too. Two imports on the same file is a little odd.

Suggested change
import { AxeBuilder as NamedImportAxeBuilder } from '../dist/index.js';
import DefaultImportAxeBuilder from '../dist/index.js';
import {
default as DefaultImportAxeBuilder,
AxeBuilder as NamedImportAxeBuilder
} from '../dist/index.js';

@straker straker merged commit aab6d3c into develop Nov 22, 2023
31 of 32 checks passed
@straker straker deleted the ts-export-test branch November 22, 2023 15:27
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