Skip to content

feature: configure API from DTL - #1141

Merged
mdjastrzebski merged 9 commits into
mainfrom
feature/configure-api
Sep 27, 2022
Merged

feature: configure API from DTL#1141
mdjastrzebski merged 9 commits into
mainfrom
feature/configure-api

Conversation

@mdjastrzebski

Copy link
Copy Markdown
Member

Summary

Implement configure API based on similar API in DTL.

Added initial option for asyncWaitTimeout.

Test plan

  • Added tests for config module functions
  • Added tests for waitFor consuming asyncWaitTimeout option

@mdjastrzebski
mdjastrzebski merged commit 932c547 into main Sep 27, 2022
@mdjastrzebski
mdjastrzebski deleted the feature/configure-api branch September 27, 2022 14:18

@thymikee thymikee left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We could also implement defaultHidden, right? Looks good though

Comment thread src/pure.ts

export { act };
export { cleanup };
export { configure, resetToDefaults } from './config';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is resetToDefaults exported from DTL? Couldn't find it on their docs

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

No it's not, only configure is, but I think it's good to have that for testinging convenience. Wdyt?

@mdjastrzebski

Copy link
Copy Markdown
Member Author

re defaultHidden: we first need to merge #1064, as it contains the hidden query options, and afaik defaultHidden is just the default value of that option.

@thymikee

Copy link
Copy Markdown
Member

re defaultHidden: we first need to merge #1064, as it contains the hidden query options, and afaik defaultHidden is just the default value of that option.

Huh, it's opened for so long I thought it's already in 🙈

@mdjastrzebski

Copy link
Copy Markdown
Member Author

It should be much easier done now when we have isInaccessible #1128 , which is the core logic behind hidden flag.

@thymikee

Copy link
Copy Markdown
Member

Definitely! And please don't get me wrong, I'm not expecting to rush things here :)

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.

3 participants