Skip to content

Commit b6a7c70

Browse files
committed
Bump kcd-scripts to 10.x
1 parent b9cd1e6 commit b6a7c70

File tree

7 files changed

+33
-32
lines changed

7 files changed

+33
-32
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"@testing-library/jest-dom": "^5.11.6",
5151
"@types/react-dom": "^17.0.0",
5252
"dotenv-cli": "^4.0.0",
53-
"kcd-scripts": "^9.1.0",
53+
"kcd-scripts": "^10.1.1",
5454
"npm-run-all": "^4.1.5",
5555
"react": "^17.0.1",
5656
"react-dom": "^17.0.1",

src/__tests__/cleanup.js

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ describe('fake timers and missing act warnings', () => {
6363
let cancelled = false
6464
setImmediate(() => {
6565
microTaskSpy()
66+
// eslint-disable-next-line jest/no-if -- false positive
6667
if (!cancelled) {
6768
setDeferredCounter(counter)
6869
}

src/__tests__/debug.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ test('allows same arguments as prettyDOM', () => {
4343
expect(console.log).toHaveBeenCalledTimes(1)
4444
expect(console.log.mock.calls[0]).toMatchInlineSnapshot(`
4545
Array [
46-
"<div>
47-
...",
46+
<div>
47+
...,
4848
]
4949
`)
5050
})

src/__tests__/new-act.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ test('async act recovers from errors', async () => {
4949
expect(console.error.mock.calls).toMatchInlineSnapshot(`
5050
Array [
5151
Array [
52-
"call console.error",
52+
call console.error,
5353
],
5454
]
5555
`)
@@ -67,7 +67,7 @@ test('async act recovers from sync errors', async () => {
6767
expect(console.error.mock.calls).toMatchInlineSnapshot(`
6868
Array [
6969
Array [
70-
"call console.error",
70+
call console.error,
7171
],
7272
]
7373
`)

src/__tests__/no-act.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ test('async act recovers from errors', async () => {
5353
expect(console.error.mock.calls).toMatchInlineSnapshot(`
5454
Array [
5555
Array [
56-
"call console.error",
56+
call console.error,
5757
],
5858
]
5959
`)
@@ -71,7 +71,7 @@ test('async act recovers from sync errors', async () => {
7171
expect(console.error.mock.calls).toMatchInlineSnapshot(`
7272
Array [
7373
Array [
74-
"call console.error",
74+
call console.error,
7575
],
7676
]
7777
`)

src/__tests__/old-act.js

+17-17
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,18 @@ test('async act works even when the act is an old one', async () => {
3232
console.error('sigil')
3333
})
3434
expect(console.error.mock.calls).toMatchInlineSnapshot(`
35-
Array [
36-
Array [
37-
"sigil",
38-
],
39-
Array [
40-
"It looks like you're using a version of react-dom that supports the \\"act\\" function, but not an awaitable version of \\"act\\" which you will need. Please upgrade to at least [email protected] to remove this warning.",
41-
],
42-
Array [
43-
"sigil",
44-
],
45-
]
46-
`)
35+
Array [
36+
Array [
37+
sigil,
38+
],
39+
Array [
40+
It looks like you're using a version of react-dom that supports the "act" function, but not an awaitable version of "act" which you will need. Please upgrade to at least [email protected] to remove this warning.,
41+
],
42+
Array [
43+
sigil,
44+
],
45+
]
46+
`)
4747
expect(callback).toHaveBeenCalledTimes(1)
4848

4949
// and it doesn't warn you twice
@@ -71,10 +71,10 @@ test('async act recovers from async errors', async () => {
7171
expect(console.error.mock.calls).toMatchInlineSnapshot(`
7272
Array [
7373
Array [
74-
"It looks like you're using a version of react-dom that supports the \\"act\\" function, but not an awaitable version of \\"act\\" which you will need. Please upgrade to at least [email protected] to remove this warning.",
74+
It looks like you're using a version of react-dom that supports the "act" function, but not an awaitable version of "act" which you will need. Please upgrade to at least [email protected] to remove this warning.,
7575
],
7676
Array [
77-
"call console.error",
77+
call console.error,
7878
],
7979
]
8080
`)
@@ -92,7 +92,7 @@ test('async act recovers from sync errors', async () => {
9292
expect(console.error.mock.calls).toMatchInlineSnapshot(`
9393
Array [
9494
Array [
95-
"call console.error",
95+
call console.error,
9696
],
9797
]
9898
`)
@@ -109,11 +109,11 @@ test('async act can handle any sort of console.error', async () => {
109109
Array [
110110
Array [
111111
Object {
112-
"error": "some error",
112+
error: some error,
113113
},
114114
],
115115
Array [
116-
"It looks like you're using a version of react-dom that supports the \\"act\\" function, but not an awaitable version of \\"act\\" which you will need. Please upgrade to at least [email protected] to remove this warning.",
116+
It looks like you're using a version of react-dom that supports the "act" function, but not an awaitable version of "act" which you will need. Please upgrade to at least [email protected] to remove this warning.,
117117
],
118118
]
119119
`)

src/__tests__/render.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,14 @@ test('renders options.wrapper around node', () => {
7878

7979
expect(screen.getByTestId('wrapper')).toBeInTheDocument()
8080
expect(container.firstChild).toMatchInlineSnapshot(`
81-
<div
82-
data-testid="wrapper"
83-
>
84-
<div
85-
data-testid="inner"
86-
/>
87-
</div>
88-
`)
81+
<div
82+
data-testid=wrapper
83+
>
84+
<div
85+
data-testid=inner
86+
/>
87+
</div>
88+
`)
8989
})
9090

9191
test('flushes useEffect cleanup functions sync on unmount()', () => {

0 commit comments

Comments
 (0)