Skip to content

server-lib bugfix: need scopingRoot#1100

Merged
samouri merged 2 commits intomainfrom
scopingroot
Sep 28, 2021
Merged

server-lib bugfix: need scopingRoot#1100
samouri merged 2 commits intomainfrom
scopingroot

Conversation

@samouri
Copy link
Copy Markdown
Member

@samouri samouri commented Sep 28, 2021

Followup fix to a lil bug in #1096.
Note: the bug only affects server-lib.


Followup: need to come up with a good system for parameterizing tests


// TODO: create better solution for parameterizing server tests.
test.serial('server=true: test Element.querySelectorAll on id selectors', (t) => {
process.env.SERVER = 'true';
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

not sure what testing framework is in use, but maybe something like sandbox.stub(process.env, 'SERVER').value('true'); or something similar could do the trick.

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.

Will investigate this for a future PR

Comment thread src/test/htmlelement/querySelectorAll.test.ts Outdated
@samouri samouri merged commit 7c54163 into main Sep 28, 2021
@samouri samouri deleted the scopingroot branch September 28, 2021 22:09
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