Skip to content

Commit

Permalink
fix: test link in html reporter (#5224)
Browse files Browse the repository at this point in the history
* build(deps): bump the github-actions group with 1 update

Bumps the github-actions group with 1 update: [joelwmale/webhook-action](https://github.com/joelwmale/webhook-action).


Updates `joelwmale/webhook-action` from 2.3.2 to 2.4.1
- [Release notes](https://github.com/joelwmale/webhook-action/releases)
- [Commits](joelwmale/webhook-action@2.3.2...2.4.1)

---
updated-dependencies:
- dependency-name: joelwmale/webhook-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix: remove bad test link params in HTML reporter

- `grep` may not work as expected if a previous `fgrep` or `invert` parameter exists.

* Update .github/workflows/nightly-site-deploy.yml

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Josh Goldberg ✨ <[email protected]>
  • Loading branch information
3 people authored Oct 29, 2024
1 parent e536ab2 commit f054acc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/reporters/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,9 @@ function HTML(runner, options) {
function makeUrl(s) {
var search = window.location.search;

// Remove previous grep query parameter if present
// Remove previous {grep, fgrep, invert} query parameters if present
if (search) {
search = search.replace(/[?&]grep=[^&\s]*/g, '').replace(/^&/, '?');
search = search.replace(/[?&](?:f?grep|invert)=[^&\s]*/g, '').replace(/^&/, '?');
}

return (
Expand Down

0 comments on commit f054acc

Please sign in to comment.