-
Notifications
You must be signed in to change notification settings - Fork 460
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
Chore: Fix prettier issues in test files #1710
Conversation
I confirm 54612e6 fixes the issue. Thanks @zoltanbedi! |
Thanks @Antiz96. Is this blocking you right now? |
@zoltanbedi Well, I'm at least waiting for this PR to be reviewed/merged (just by conscience) to package the new version on Arch Linux repo. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
everything looks good, but there's that regex-escape thing i describe below, we may want to look at it first.
src/datasource/specs/utils.spec.ts
Outdated
// Backward compatibility | ||
it('should properly split query in old format', (done) => { | ||
let test_cases = [ | ||
{ | ||
query: `/alu/./tw-(nyc|que|brx|dwt|brk)-sta_(\w|\d)*-alu-[0-9{2}/`, | ||
expected: ['/alu/', '/tw-(nyc|que|brx|dwt|brk)-sta_(\w|\d)*-alu-[0-9{2}/'] | ||
expected: ['/alu/', '/tw-(nyc|que|brx|dwt|brk)-sta_(w|d)*-alu-[0-9{2}/'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\w\d
got turned into wd
. i think this is a correct prettier-transform, but the original text looks very regex-ish... maybe the "before" situation was already wrong?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you are right the query to escape w properly needs double backslash.
@Antiz96 if you are not blocked then we won't cut a release for code formatting. We will do that once we have other things to release as well. |
@zoltanbedi Sure, sounds good to me. I'll just backport the fixing commit once this PR is merged :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Fixes #1709