feat: Replace chalk
with picocolors
#14152
Annotations
10 errors and 2 warnings
run tests:
undefined#L1
expect(received).rejects.toThrowErrorMatchingSnapshot()
Snapshot name: `reporters throws an error if first value in the tuple is not a string 1`
- Snapshot - 3
+ Received + 3
@@ -4,12 +4,12 @@
<red> Expected:</color>
<red> <bold><red>string</color><red></intensity></color>
<red> Got:</color>
<red> <bold><green>number</color><red></intensity></color>
<red> Reporter configuration:</color>
- <red> <bold><green>[</color><red></intensity></color>
- <red><bold><green> 123</color><red></intensity></color>
- <red><bold><green> ]</color><red></intensity></color>
+ <red> <bold><green>[</color>
+ <red> 123</color>
+ <red> ]</color><red></intensity></color>
<red></color>
<red> <bold>Configuration Documentation:</intensity></color>
<red> https://jestjs.io/docs/configuration</color>
<red></color>"
at Object.toThrowErrorMatchingSnapshot (packages/expect/build/index.js:2101:20)
|
run tests:
undefined#L1
expect(received).rejects.toThrowErrorMatchingSnapshot()
Snapshot name: `reporters throws an error if second value is missing in the tuple 1`
- Snapshot - 3
+ Received + 3
@@ -4,12 +4,12 @@
<red> Expected:</color>
<red> <bold><red>object</color><red></intensity></color>
<red> Got:</color>
<red> <bold><green>undefined</color><red></intensity></color>
<red> Reporter configuration:</color>
- <red> <bold><green>[</color><red></intensity></color>
- <red><bold><green> "some-reporter"</color><red></intensity></color>
- <red><bold><green> ]</color><red></intensity></color>
+ <red> <bold><green>[</color>
+ <red> "some-reporter"</color>
+ <red> ]</color><red></intensity></color>
<red></color>
<red> <bold>Configuration Documentation:</intensity></color>
<red> https://jestjs.io/docs/configuration</color>
<red></color>"
at Object.toThrowErrorMatchingSnapshot (packages/expect/build/index.js:2101:20)
|
run tests:
undefined#L1
expect(received).rejects.toThrowErrorMatchingSnapshot()
Snapshot name: `reporters throws an error if second value in the tuple is not an object 1`
- Snapshot - 4
+ Received + 4
@@ -4,13 +4,13 @@
<red> Expected:</color>
<red> <bold><red>object</color><red></intensity></color>
<red> Got:</color>
<red> <bold><green>boolean</color><red></intensity></color>
<red> Reporter configuration:</color>
- <red> <bold><green>[</color><red></intensity></color>
- <red><bold><green> "some-reporter",</color><red></intensity></color>
- <red><bold><green> true</color><red></intensity></color>
- <red><bold><green> ]</color><red></intensity></color>
+ <red> <bold><green>[</color>
+ <red> "some-reporter",</color>
+ <red> true</color>
+ <red> ]</color><red></intensity></color>
<red></color>
<red> <bold>Configuration Documentation:</intensity></color>
<red> https://jestjs.io/docs/configuration</color>
<red></color>"
at Object.toThrowErrorMatchingSnapshot (packages/expect/build/index.js:2101:20)
|
run tests:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `should exclude jasmine from stack trace for Unix paths. 1`
- Snapshot - 3
+ Received + 3
"<bold><red> <bold>● </intensity><bold>Unix test</color></intensity>
at stack (../jest-jasmine2/build/jasmine-2.4.1.js:1580:17)
- <dim></intensity>
- <dim> <dim>at Object.addResult (</intensity><dim>../jest-jasmine2/build/jasmine-2.4.1.js<dim>:1550:14)</intensity><dim></intensity>
- <dim> <dim>at Object.it (</intensity><dim>build/__tests__/messages-test.js<dim>:45:41)</intensity><dim></intensity>
+ <dim>
+ <dim>at Object.addResult (</intensity><dim>../jest-jasmine2/build/jasmine-2.4.1.js<dim>:1550:14)</intensity><dim>
+ <dim>at Object.it (</intensity><dim>build/__tests__/messages-test.js<dim>:45:41)</intensity><dim></intensity>
"
at Object.toMatchSnapshot (packages/jest-message-util/src/__tests__/messages.test.ts:205:20)
|
run tests:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `formatStackTrace should strip node internals 1`
- Snapshot - 2
+ Received + 2
@@ -5,8 +5,8 @@
"number"
Received:
""
type:
"string"
- <dim></intensity>
- <dim> <dim>at Object.it (</intensity><dim>__tests__/test.js<dim>:8:14)</intensity><dim></intensity>
+ <dim>
+ <dim>at Object.it (</intensity><dim>__tests__/test.js<dim>:8:14)</intensity><dim></intensity>
"
at Object.toMatchSnapshot (packages/jest-message-util/src/__tests__/messages.test.ts:253:20)
|
run tests:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `should not exclude vendor from stack trace 1`
- Snapshot - 3
+ Received + 3
@@ -5,9 +5,9 @@
"number"
Received:
""
type:
"string"
- <dim></intensity>
- <dim> <dim>at Object.it (</intensity><dim>__tests__/vendor/cool_test.js<dim>:6:666)</intensity><dim></intensity>
- <dim> <dim>at Object.asyncFn (</intensity><dim>__tests__/vendor/sulu/node_modules/sulu-content-bundle/best_component.js<dim>:1:5)</intensity><dim></intensity>
+ <dim>
+ <dim>at Object.it (</intensity><dim>__tests__/vendor/cool_test.js<dim>:6:666)</intensity><dim>
+ <dim>at Object.asyncFn (</intensity><dim>__tests__/vendor/sulu/node_modules/sulu-content-bundle/best_component.js<dim>:1:5)</intensity><dim></intensity>
"
at Object.toMatchSnapshot (packages/jest-message-util/src/__tests__/messages.test.ts:282:20)
|
run tests:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `retains message in babel code frame error 1`
- Snapshot - 8
+ Received + 8
"<bold><red> <bold>● </intensity><bold>Babel test</color></intensity>
packages/react/src/forwardRef.js: Unexpected token, expected , (20:10)
- <dim></intensity>
- <dim> </> <gray> 18 | </color> <cyan>false</color><yellow>,</color></intensity>
- <dim> <gray> 19 | </color> <green>'forwardRef requires a render function but received a `memo` '</color></intensity>
- <dim> <red><bold>></intensity><dim></color><gray> 20 | </color> <green>'component. Instead of forwardRef(memo(...)), use '</color> <yellow>+</color></intensity>
- <dim> <gray> | </color> <red><bold>^</intensity><dim></color></intensity>
- <dim> <gray> 21 | </color> <green>'memo(forwardRef(...)).'</color><yellow>,</color></intensity>
- <dim> <gray> 22 | </color> )<yellow>;</color></intensity>
- <dim> <gray> 23 | </color> } <cyan>else</color> <cyan>if</color> (<cyan>typeof</color> render <yellow>!==</color> <green>'function'</color>) {</></intensity>
+ <dim>
+ </> <gray> 18 | </color> <cyan>false</color><yellow>,</color>
+ <gray> 19 | </color> <green>'forwardRef requires a render function but received a `memo` '</color>
+ <red><bold>></intensity><dim></color><gray> 20 | </color> <green>'component. Instead of forwardRef(memo(...)), use '</color> <yellow>+</color>
+ <gray> | </color> <red><bold>^</intensity><dim></color>
+ <gray> 21 | </color> <green>'memo(forwardRef(...)).'</color><yellow>,</color>
+ <gray> 22 | </color> )<yellow>;</color>
+ <gray> 23 | </color> } <cyan>else</color> <cyan>if</color> (<cyan>typeof</color> render <yellow>!==</color> <green>'function'</color>) {</></intensity>
"
at Object.toMatchSnapshot (packages/jest-message-util/src/__tests__/messages.test.ts:311:20)
|
run tests:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `formatStackTrace should properly handle deeply nested causes 1`
- Snapshot - 12
+ Received + 12
"<bold><red> <bold>● </intensity><bold>Error with cause test</color></intensity>
intercepted by f
- <dim></intensity>
- <dim> <dim>at f (</intensity><dim>cause.test.js<dim>:15:11)</intensity><dim></intensity>
- <dim> <dim>at Object.f (</intensity><dim>cause.test.js<dim>:20:5)</intensity><dim></intensity>
+ <dim>
+ <dim>at f (</intensity><dim>cause.test.js<dim>:15:11)</intensity><dim>
+ <dim>at Object.f (</intensity><dim>cause.test.js<dim>:20:5)</intensity><dim></intensity>
Cause:
intercepted by g
- <dim></intensity>
- <dim> <dim>at g (</intensity><dim>cause.test.js<dim>:8:11)</intensity><dim></intensity>
- <dim> <dim>at g (</intensity><dim>cause.test.js<dim>:13:5)</intensity><dim></intensity>
- <dim> <dim>at Object.f (</intensity><dim>cause.test.js<dim>:20:5)</intensity><dim></intensity>
+ <dim>
+ <dim>at g (</intensity><dim>cause.test.js<dim>:8:11)</intensity><dim>
+ <dim>at g (</intensity><dim>cause.test.js<dim>:13:5)</intensity><dim>
+ <dim>at Object.f (</intensity><dim>cause.test.js<dim>:20:5)</intensity><dim></intensity>
Cause:
boom
- <dim></intensity>
- <dim> <dim>at h (</intensity><dim>cause.test.js<dim>:2:9)</intensity><dim></intensity>
- <dim> <dim>at h (</intensity><dim>cause.test.js<dim>:6:5)</intensity><dim></intensity>
- <dim> <dim>at g (</intensity><dim>cause.test.js<dim>:13:5)</intensity><dim></intensity>
- <dim> <dim>at Object.f (</intensity><dim>cause.test.js<dim>:20:5)</intensity><dim></intensity>
+ <dim>
+ <dim>at h (</intensity><dim>cause.test.js<dim>:2:9)</intensity><dim>
+ <dim>at h (</intensity><dim>cause.test.js<dim>:6:5)</intensity><dim>
+ <dim>at g (</intensity><dim>cause.test.js<dim>:13:5)</intensity><dim>
+ <dim>at Object.f (</intensity><dim>cause.test.js<dim>:20:5)</intensity><dim></intensity>
"
at Object.toMatchSnapshot (packages/jest-message-util/src/__tests__/messages.test.ts:340:20)
|
run tests:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `formatStackTrace should properly handle string causes 1`
- Snapshot - 5
+ Received + 5
"<bold><red> <bold>● </intensity><bold>Error with string cause test</color></intensity>
boom
- <dim></intensity>
- <dim> <dim>at f (</intensity><dim>cause.test.js<dim>:15:11)</intensity><dim></intensity>
- <dim> <dim>at Object.f (</intensity><dim>cause.test.js<dim>:20:5)</intensity><dim></intensity>
+ <dim>
+ <dim>at f (</intensity><dim>cause.test.js<dim>:15:11)</intensity><dim>
+ <dim>at Object.f (</intensity><dim>cause.test.js<dim>:20:5)</intensity><dim></intensity>
Cause:
string cause
- <dim></intensity>
- <dim></intensity>
+ <dim>
+ </intensity>
"
at Object.toMatchSnapshot (packages/jest-message-util/src/__tests__/messages.test.ts:369:20)
|
run tests:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `printDiffOrStringify expected is multi line and received is empty 1`
- Snapshot - 2
+ Received + 2
- Expected: <g>"multi</>
- <g>line"</>
+ Expected: <g>"multi
+ line"</>
Received: <r>""</>
at Object.toMatchSnapshot (packages/jest-matcher-utils/src/__tests__/printDiffOrStringify.test.ts:26:53)
|
run tests
Attempt 1 failed. Reason: Child_process exited with error code 1
|
run tests
Attempt 2 failed. Reason: Child_process exited with error code 1
|
Loading