Skip to content

Commit 9ef055d

Browse files
build(deps-dev): bump prettier from 2.8.7 to 3.0.3 (#825)
* build(deps-dev): bump prettier from 2.8.7 to 3.0.3 Bumps [prettier](https://github.com/prettier/prettier) from 2.8.7 to 3.0.3. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](prettier/prettier@2.8.7...3.0.3) --- updated-dependencies: - dependency-name: prettier dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * style: format files --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mario Beltrán <[email protected]>
1 parent 9c4aff3 commit 9ef055d

File tree

63 files changed

+865
-1064
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+865
-1064
lines changed

.all-contributorsrc

+435-634
Large diffs are not rendered by default.

docs/rules/await-async-utils.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ test('something incorrectly', async () => {
3636
getByLabelText(container, 'username'),
3737
getByLabelText(container, 'password'),
3838
],
39-
{ container }
39+
{ container },
4040
);
4141

4242
waitFor(() => {}, { timeout: 100 });
@@ -46,7 +46,7 @@ test('something incorrectly', async () => {
4646
// wrap an async util within a function...
4747
const makeCustomWait = () => {
4848
return waitForElementToBeRemoved(() =>
49-
document.querySelector('div.getOuttaHere')
49+
document.querySelector('div.getOuttaHere'),
5050
);
5151
};
5252
makeCustomWait(); // ...but not handling promise from it is incorrect
@@ -66,7 +66,7 @@ test('something correctly', async () => {
6666
getByLabelText(container, 'username'),
6767
getByLabelText(container, 'password'),
6868
],
69-
{ container }
69+
{ container },
7070
);
7171

7272
// `then` chained method is correct
@@ -77,7 +77,7 @@ test('something correctly', async () => {
7777
// wrap an async util within a function...
7878
const makeCustomWait = () => {
7979
return waitForElementToBeRemoved(() =>
80-
document.querySelector('div.getOuttaHere')
80+
document.querySelector('div.getOuttaHere'),
8181
);
8282
};
8383
await makeCustomWait(); // ...and handling promise from it is correct

docs/rules/prefer-find-by.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -18,28 +18,28 @@ Examples of **incorrect** code for this rule
1818
```js
1919
// arrow functions with one statement, using screen and any sync query method
2020
const submitButton = await waitFor(() =>
21-
screen.getByRole('button', { name: /submit/i })
21+
screen.getByRole('button', { name: /submit/i }),
2222
);
2323
const submitButton = await waitFor(() =>
24-
screen.getAllByTestId('button', { name: /submit/i })
24+
screen.getAllByTestId('button', { name: /submit/i }),
2525
);
2626

2727
// arrow functions with one statement, calling any sync query method
2828
const submitButton = await waitFor(() =>
29-
queryByLabel('button', { name: /submit/i })
29+
queryByLabel('button', { name: /submit/i }),
3030
);
3131

3232
const submitButton = await waitFor(() =>
33-
queryAllByText('button', { name: /submit/i })
33+
queryAllByText('button', { name: /submit/i }),
3434
);
3535

3636
// arrow functions with one statement, calling any sync query method with presence assertion
3737
const submitButton = await waitFor(() =>
38-
expect(queryByLabel('button', { name: /submit/i })).toBeInTheDocument()
38+
expect(queryByLabel('button', { name: /submit/i })).toBeInTheDocument(),
3939
);
4040

4141
const submitButton = await waitFor(() =>
42-
expect(queryByLabel('button', { name: /submit/i })).not.toBeFalsy()
42+
expect(queryByLabel('button', { name: /submit/i })).not.toBeFalsy(),
4343
);
4444
```
4545

lib/configs/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ export default SUPPORTED_TESTING_FRAMEWORKS.reduce(
2020
...allConfigs,
2121
[framework]: getConfigForFramework(framework),
2222
}),
23-
{}
23+
{},
2424
) as Record<SupportedTestingFramework, LinterConfigRules>;

0 commit comments

Comments
 (0)