Skip to content

Conversation

anbraten
Copy link

@anbraten anbraten commented Jul 5, 2024

The samples provided for the match patterns mainly used \d. where . is treated as the regex wildcard instead of the expected dot char. In addition semver versions with a version part >9 were not correctly extracted by those examples.

['{{ raw}}', true],
['{{raw}}', true],
])('given %p pattern', async (pattern: string, expected: boolean) => {
])('given %s pattern', async (pattern: string, expected: boolean) => {
Copy link

Choose a reason for hiding this comment

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

%p is a jest positional formatting placeholder that uses pretty-format to stringify the parameter. IOW, unless there's a compelling reason to change it to %s, I don't see why that needs to be messed with.

undefined
],
])('given %p with %p event', tagsLabelsTest);
])('given %s with %s event', tagsLabelsTest);
Copy link

Choose a reason for hiding this comment

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

Same.

undefined
]
])('given %p with %p event', tagsLabelsTest);
])('given %s with %s event', tagsLabelsTest);
Copy link

Choose a reason for hiding this comment

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

Same.

undefined
]
])('given %p with %p event', tagsLabelsTest);
])('given %s with %s event', tagsLabelsTest);
Copy link

Choose a reason for hiding this comment

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

Same.

undefined
]
])('given %p with %p event', tagsLabelsTest);
])('given %s with %s event', tagsLabelsTest);
Copy link

Choose a reason for hiding this comment

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

Same.

undefined
],
])('given %p wth %p event', tagsLabelsTest);
])('given %s wth %s event', tagsLabelsTest);
Copy link

Choose a reason for hiding this comment

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

Same.

}
]
])('given %p with %p event', async (name: string, envFile: string, inputs: Inputs, exJSON: unknown) => {
])('given %s with %s event', async (name: string, envFile: string, inputs: Inputs, exJSON: unknown) => {
Copy link

Choose a reason for hiding this comment

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

Same.

}
]
])('given %p with %p event', async (name: string, envFile: string, inputs: Inputs, exBakeTags: unknown, exBakeLabels: unknown, exBakeAnnotations: unknown) => {
])('given %s with %s event', async (name: string, envFile: string, inputs: Inputs, exBakeTags: unknown, exBakeLabels: unknown, exBakeAnnotations: unknown) => {
Copy link

Choose a reason for hiding this comment

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

Same.

}
]
])('given %p with %p event', async (name: string, envFile: string, inputs: Inputs, exBakeDefinition: unknown) => {
])('given %s with %s event', async (name: string, envFile: string, inputs: Inputs, exBakeDefinition: unknown) => {
Copy link

Choose a reason for hiding this comment

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

Same.

"user/app:dev,user/app:my,user/app:custom,user/app:tags"
]
])('given %p with %p event', async (name: string, envFile: string, inputs: Inputs, expTags: string) => {
])('given %s with %s event', async (name: string, envFile: string, inputs: Inputs, expTags: string) => {
Copy link

Choose a reason for hiding this comment

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

Same.

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