Skip to content

Commit

Permalink
exclude snapshots from pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
karolina-siemieniuk-morawska committed Dec 6, 2023
1 parent 3d4a69b commit 4d88aac
Show file tree
Hide file tree
Showing 9 changed files with 114 additions and 114 deletions.
1 change: 0 additions & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@ jobs:

- name: Run pre-commit
uses: pre-commit/[email protected]
exclude: ^__snapshots__/
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ repos:
rev: v4.4.0
hooks:
- id: trailing-whitespace
exclude: ^__snapshots__/
- id: end-of-file-fixer
- id: check-yaml

Expand Down
2 changes: 1 addition & 1 deletion ui/src/__tests__/__snapshots__/500.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ exports[`ServerErrorPage renders error page 1`] = `
</h1>
<p>
Please try again later or
<a
data-testid="go-back"
type="button"
Expand Down
2 changes: 1 addition & 1 deletion ui/src/__tests__/__snapshots__/index.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ exports[`HomePage renders homepage with correct articles count 1`] = `
<p
class="text-center mb-4"
>
Search
Search
<b>
4321
Open Access
Expand Down
8 changes: 4 additions & 4 deletions ui/src/__tests__/__snapshots__/record.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ exports[`RecordPage renders article details correctly 1`] = `
Luis Apolo
</a>
</i>
(
<a
href="/search?page=1&page_size=20&search=Department of Physics & The Oskar Klein Centre, Stockholm University, AlbaNova University Centre, SE-106 91, Stockholm, Sweden"
Expand All @@ -41,15 +41,15 @@ exports[`RecordPage renders article details correctly 1`] = `
)
</span>
<span>
;
;
<i>
<a
href="/search?page=1&page_size=20&search=Bo Sundborg"
>
Bo Sundborg
</a>
</i>
(
<a
href="/search?page=1&page_size=20&search=Department of Physics & The Oskar Klein Centre, Stockholm University, AlbaNova University Centre, SE-106 91, Stockholm, Sweden"
Expand Down Expand Up @@ -165,7 +165,7 @@ exports[`RecordPage renders article details correctly 1`] = `
</p>
</dd>
<dd>
Article ID:
Article ID:
123456
</dd>
<div>
Expand Down
Loading

0 comments on commit 4d88aac

Please sign in to comment.