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

refactor: reuse test setup for data sources #6099

Merged
merged 1 commit into from
Aug 31, 2024
Merged

refactor: reuse test setup for data sources #6099

merged 1 commit into from
Aug 31, 2024

Conversation

danstarns
Copy link
Member

This PR cleans up the common test utils added in the Data Sources PR:

Related Comment:

@danstarns danstarns requested a review from artf August 30, 2024 21:07
@danstarns danstarns mentioned this pull request Aug 30, 2024
// DocEl + Head + Wrapper
export const DEFAULT_CMPS = 3;

export function setupTestEditor() {
Copy link
Member Author

Choose a reason for hiding this comment

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

I think long term we should have the same function for each test we have, however for now as each test spawns a slightly different combination of editor and view etc, let's start with this and expand out.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah agree, in long term we can introduce more options to this helper

Copy link
Member

@artf artf left a comment

Choose a reason for hiding this comment

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

🔝

// DocEl + Head + Wrapper
export const DEFAULT_CMPS = 3;

export function setupTestEditor() {
Copy link
Member

Choose a reason for hiding this comment

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

Yeah agree, in long term we can introduce more options to this helper

@artf artf merged commit 0cd6374 into dev Aug 31, 2024
2 checks passed
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