Skip to content

Commit 20f40c9

Browse files
committed
Update test snapshots and ignored paths
1 parent ccb1566 commit 20f40c9

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

__tests__/components/__snapshots__/Header.test.js.snap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ exports[`<Header /> component renders with DARK theme 1`] = `
168168
>
169169
<button
170170
className="c5"
171+
data-cy="js"
171172
onClick={[Function]}
172173
>
173174
<svg
@@ -194,6 +195,7 @@ exports[`<Header /> component renders with DARK theme 1`] = `
194195
</button>
195196
<button
196197
className="c5"
198+
data-cy="mode"
197199
onClick={[Function]}
198200
>
199201
<svg
@@ -399,6 +401,7 @@ exports[`<Header /> component renders with LIGHT theme 1`] = `
399401
>
400402
<button
401403
className="c5"
404+
data-cy="js"
402405
onClick={[Function]}
403406
>
404407
<svg
@@ -425,6 +428,7 @@ exports[`<Header /> component renders with LIGHT theme 1`] = `
425428
</button>
426429
<button
427430
className="c5"
431+
data-cy="mode"
428432
onClick={[Function]}
429433
>
430434
<svg

__tests__/components/__snapshots__/Toggle.test.js.snap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ exports[`<Toggle /> renders JS toggle in DARK more 1`] = `
3939
<div>
4040
<button
4141
className="c0"
42+
data-cy="js"
4243
onClick={[Function]}
4344
>
4445
<svg
@@ -105,6 +106,7 @@ exports[`<Toggle /> renders JS toggle in LIGHT more 1`] = `
105106
<div>
106107
<button
107108
className="c0"
109+
data-cy="js"
108110
onClick={[Function]}
109111
>
110112
<svg
@@ -171,6 +173,7 @@ exports[`<Toggle /> renders the MODE toggle in DARK mode 1`] = `
171173
<div>
172174
<button
173175
className="c0"
176+
data-cy="mode"
174177
onClick={[Function]}
175178
>
176179
<svg
@@ -231,6 +234,7 @@ exports[`<Toggle /> renders the MODE toggle in LIGHT mode 1`] = `
231234
<div>
232235
<button
233236
className="c0"
237+
data-cy="mode"
234238
onClick={[Function]}
235239
>
236240
<svg

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
],
3636
"testPathIgnorePatterns": [
3737
"<rootDir>/__tests__/config/",
38-
"<rootDir>/__tests__/helpers/"
38+
"<rootDir>/__tests__/helpers/",
39+
"<rootDir>/cypress/"
3940
]
4041
},
4142
"devDependencies": {

0 commit comments

Comments
 (0)