You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The more your tests resemble the way your software is used, <br/>
@@ -108,107 +108,107 @@ class Index extends React.Component {
108
108
</MarkdownBlock>
109
109
</div>
110
110
</Container>
111
-
);
111
+
)
112
112
113
113
constProblem=()=>(
114
114
<React.Fragment>
115
-
<Blockbackground={"light"}align="left">
115
+
<Blockbackground={'light'}align="left">
116
116
{[
117
117
{
118
-
title: "",
118
+
title: '',
119
119
content:
120
120
"## The Problem \n - You want tests for your web UI that avoid including implementation details and rather focus on making your tests give you the confidence for which they are intended. \n - You want your tests to be maintainable so refactors _(changes to implementation but not functionality)_ don't break your tests and slow you and your team down.",
121
121
image: `${baseUrl}img/interrobang-128x128.png`,
122
-
imageAlt: "The problem (picture of a question mark)",
123
-
imageAlign: "left"
124
-
}
122
+
imageAlt: 'The problem (picture of a question mark)',
123
+
imageAlign: 'left',
124
+
},
125
125
]}
126
126
</Block>
127
127
</React.Fragment>
128
-
);
128
+
)
129
129
130
130
constSolution=()=>[
131
131
<Blockbackground={null}align="left">
132
132
{[
133
133
{
134
-
title: "",
134
+
title: '',
135
135
image: `${baseUrl}img/star-128x128.png`,
136
-
imageAlign: "right",
137
-
imageAlt: "The solution (picture of a star)",
136
+
imageAlign: 'right',
137
+
imageAlt: 'The solution (picture of a star)',
138
138
content:
139
-
"## The Solution \n `dom-testing-library` is a very light-weight solution for testing DOM nodes (whether simulated with [JSDOM](https://github.com/jsdom/jsdom) in [Jest](https://jestjs.io) or in the browser). The main utilities it provides involve querying the DOM for nodes in a way that's similar to how the user finds elements on the page. In this way, the library helps ensure your tests give you confidence in your UI code."
140
-
}
139
+
"## The Solution \n `dom-testing-library` is a very light-weight solution for testing DOM nodes (whether simulated with [JSDOM](https://github.com/jsdom/jsdom) in [Jest](https://jestjs.io) or in the browser). The main utilities it provides involve querying the DOM for nodes in a way that's similar to how the user finds elements on the page. In this way, the library helps ensure your tests give you confidence in your UI code.",
140
+
},
141
141
]}
142
142
</Block>,
143
-
<Blockbackground={null}align="left">
143
+
<Blockbackground={'light'}align="left">
144
144
{[
145
145
{
146
-
title: "Guiding Principle",
146
+
title: 'Guiding Principle',
147
147
image: `${baseUrl}img/trophy-128x128.png`,
148
-
imageAlign: "left",
149
-
imageAlt: "The guiding principle (picture of a brick wall)",
148
+
imageAlign: 'left',
149
+
imageAlt: 'The guiding principle (picture of a brick wall)',
150
150
content:
151
-
"_The more your tests resemble the way your software is used, the more confidence they can give you._"
152
-
}
151
+
'_The more your tests resemble the way your software is used, the more confidence they can give you._',
152
+
},
153
153
]}
154
-
</Block>
155
-
];
154
+
</Block>,
155
+
]
156
156
157
157
constFeatures=()=>(
158
158
<Blocklayout="twoColumn">
159
159
{[
160
160
{
161
161
content:
162
-
"Tests only break when your app breaks, not implementation details",
162
+
'Tests only break when your app breaks, not implementation details',
163
163
image: `${baseUrl}img/wrench-128x128.png`,
164
-
imageAlign: "top",
165
-
title: "Write Maintainable Tests"
164
+
imageAlign: 'top',
165
+
title: 'Write Maintainable Tests',
166
166
},
167
167
{
168
-
content: "Interact with your app the same way as your users",
168
+
content: 'Interact with your app the same way as your users',
169
169
image: `${baseUrl}img/check-128x128.png`,
170
-
imageAlign: "top",
171
-
title: "Develop with Confidence"
170
+
imageAlign: 'top',
171
+
title: 'Develop with Confidence',
172
172
},
173
173
{
174
174
content:
175
-
"Built-in selectors use semantic HTML and ARIA roles to help you write inclusive code",
175
+
'Built-in selectors use semantic HTML and ARIA roles to help you write inclusive code',
0 commit comments