Skip to content

Commit

Permalink
update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Nov 9, 2019
1 parent 5410640 commit b6fb133
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 54 deletions.
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Upgrade help logs a warning when \`scriptPreprocessor\` and/or \`preprocessorIgnorePatterns\` are used 1`] = `
"<yellow><bold><bold>●<bold> Deprecation Warning</>:</>
"<yellow><bold><bold>●</><bold> Deprecation Warning</>:</>
<yellow></>
<yellow> Option <bold>\\"preprocessorIgnorePatterns\\"</> was replaced by <bold>\\"transformIgnorePatterns\\"</>, which support multiple preprocessors.</>
<yellow></>
Expand All @@ -28,7 +28,7 @@ exports[`displayName generates a default color for the runner jest-runner-tslint
exports[`displayName generates a default color for the runner undefined 1`] = `"white"`;
exports[`displayName should throw an error when displayName is is an empty object 1`] = `
"<red><bold><bold>● <bold>Validation Error</>:</>
"<red><bold><bold>● </><bold>Validation Error</>:</>
<red></>
<red> Option \\"<bold>displayName</>\\" must be of type:</>
<red></>
Expand All @@ -44,7 +44,7 @@ exports[`displayName should throw an error when displayName is is an empty objec
`;
exports[`displayName should throw an error when displayName is missing color 1`] = `
"<red><bold><bold>● <bold>Validation Error</>:</>
"<red><bold><bold>● </><bold>Validation Error</>:</>
<red></>
<red> Option \\"<bold>displayName</>\\" must be of type:</>
<red></>
Expand All @@ -60,7 +60,7 @@ exports[`displayName should throw an error when displayName is missing color 1`]
`;
exports[`displayName should throw an error when displayName is missing name 1`] = `
"<red><bold><bold>● <bold>Validation Error</>:</>
"<red><bold><bold>● </><bold>Validation Error</>:</>
<red></>
<red> Option \\"<bold>displayName</>\\" must be of type:</>
<red></>
Expand All @@ -76,7 +76,7 @@ exports[`displayName should throw an error when displayName is missing name 1`]
`;
exports[`displayName should throw an error when displayName is using invalid values 1`] = `
"<red><bold><bold>● <bold>Validation Error</>:</>
"<red><bold><bold>● </><bold>Validation Error</>:</>
<red></>
<red> Option \\"<bold>displayName</>\\" must be of type:</>
<red></>
Expand All @@ -92,7 +92,7 @@ exports[`displayName should throw an error when displayName is using invalid val
`;
exports[`preset throws when module was found but no "jest-preset.js" or "jest-preset.json" files 1`] = `
"<red><bold><bold>● <bold>Validation Error</>:</>
"<red><bold><bold>● </><bold>Validation Error</>:</>
<red></>
<red> Module <bold>exist-but-no-jest-preset</> should have \\"jest-preset.js\\" or \\"jest-preset.json\\" file at the root.</>
<red></>
Expand All @@ -102,7 +102,7 @@ exports[`preset throws when module was found but no "jest-preset.js" or "jest-pr
`;
exports[`preset throws when preset not found 1`] = `
"<red><bold><bold>● <bold>Validation Error</>:</>
"<red><bold><bold>● </><bold>Validation Error</>:</>
<red></>
<red> Preset <bold>doesnt-exist</> not found.</>
<red></>
Expand All @@ -112,7 +112,7 @@ exports[`preset throws when preset not found 1`] = `
`;
exports[`rootDir throws if the options is missing a rootDir property 1`] = `
"<red><bold><bold>● <bold>Validation Error</>:</>
"<red><bold><bold>● </><bold>Validation Error</>:</>
<red></>
<red> Configuration option <bold>rootDir</> must be specified.</>
<red></>
Expand All @@ -122,7 +122,7 @@ exports[`rootDir throws if the options is missing a rootDir property 1`] = `
`;
exports[`runner throw error when a runner is not found 1`] = `
"<red><bold><bold>● <bold>Validation Error</>:</>
"<red><bold><bold>● </><bold>Validation Error</>:</>
<red></>
<red> Jest Runner <bold>missing-runner</> cannot be found. Make sure the <bold>runner</> configuration option points to an existing node module.</>
<red></>
Expand All @@ -132,7 +132,7 @@ exports[`runner throw error when a runner is not found 1`] = `
`;
exports[`setupTestFrameworkScriptFile logs a deprecation warning when \`setupTestFrameworkScriptFile\` is used 1`] = `
"<yellow><bold><bold>●<bold> Deprecation Warning</>:</>
"<yellow><bold><bold>●</><bold> Deprecation Warning</>:</>
<yellow></>
<yellow> Option <bold>\\"setupTestFrameworkScriptFile\\"</> was replaced by configuration <bold>\\"setupFilesAfterEnv\\"</>, which supports multiple paths.</>
<yellow></>
Expand All @@ -144,7 +144,7 @@ exports[`setupTestFrameworkScriptFile logs a deprecation warning when \`setupTes
`;
exports[`setupTestFrameworkScriptFile logs an error when \`setupTestFrameworkScriptFile\` and \`setupFilesAfterEnv\` are used 1`] = `
"<red><bold><bold>● <bold>Validation Error</>:</>
"<red><bold><bold>● </><bold>Validation Error</>:</>
<red></>
<red> Options: <bold>setupTestFrameworkScriptFile</> and <bold>setupFilesAfterEnv</> cannot be used together.</>
<red> Please change your configuration to only use <bold>setupFilesAfterEnv</>.</>
Expand All @@ -155,7 +155,7 @@ exports[`setupTestFrameworkScriptFile logs an error when \`setupTestFrameworkScr
`;
exports[`testEnvironment throws on invalid environment names 1`] = `
"<red><bold><bold>● <bold>Validation Error</>:</>
"<red><bold><bold>● </><bold>Validation Error</>:</>
<red></>
<red> Test environment <bold>phantom</> cannot be found. Make sure the <bold>testEnvironment</> configuration option points to an existing node module.</>
<red></>
Expand All @@ -165,7 +165,7 @@ exports[`testEnvironment throws on invalid environment names 1`] = `
`;
exports[`testMatch throws if testRegex and testMatch are both specified 1`] = `
"<red><bold><bold>● <bold>Validation Error</>:</>
"<red><bold><bold>● </><bold>Validation Error</>:</>
<red></>
<red> Configuration options <bold>testMatch</> and <bold>testRegex</> cannot be used together.</>
<red></>
Expand All @@ -179,7 +179,7 @@ exports[`testPathPattern <regexForTestFiles> ignores invalid regular expressions
exports[`testPathPattern --testPathPattern ignores invalid regular expressions and logs a warning 1`] = `"<red> Invalid testPattern a( supplied. Running all tests instead.</>"`;
exports[`testTimeout should throw an error if timeout is a negative number 1`] = `
"<red><bold><bold>● <bold>Validation Error</>:</>
"<red><bold><bold>● </><bold>Validation Error</>:</>
<red></>
<red> Option \\"<bold>testTimeout</>\\" must be a natural number.</>
<red></>
Expand All @@ -189,7 +189,7 @@ exports[`testTimeout should throw an error if timeout is a negative number 1`] =
`;
exports[`watchPlugins throw error when a watch plugin is not found 1`] = `
"<red><bold><bold>● <bold>Validation Error</>:</>
"<red><bold><bold>● </><bold>Validation Error</>:</>
<red></>
<red> Watch plugin <bold>missing-plugin</> cannot be found. Make sure the <bold>watchPlugins</> configuration option points to an existing node module.</>
<red></>
Expand Down
Expand Up @@ -8,7 +8,7 @@ exports[`.formatExecError() 1`] = `
`;
exports[`formatStackTrace should strip node internals 1`] = `
"<bold><red> <bold>● <bold>Unix test</></>
"<bold><red> <bold>● </><bold>Unix test</></>
Expected value to be of type:
Expand All @@ -18,39 +18,39 @@ exports[`formatStackTrace should strip node internals 1`] = `
type:
\\"string\\"
<dim></>
<dim> <dim>at Object.it (<dim>__tests__/test.js<dim>:8:14)<dim></>
<dim> <dim>at <dim>internal/process/next_tick.js<dim>:188:7<dim></>
<dim> <dim>at Object.it (</><dim>__tests__/test.js<dim>:8:14)</><dim></>
<dim> <dim>at </><dim>internal/process/next_tick.js<dim>:188:7</><dim></>
"
`;
exports[`retains message in babel code frame error 1`] = `
"<bold><red> <bold>● <bold>Babel test</></>
"<bold><red> <bold>● </><bold>Babel test</></>
packages/react/src/forwardRef.js: Unexpected token, expected , (20:10)
<dim></>
<dim> </> <gray> 18 | </> <cyan>false</><yellow>,</></>
<dim> <gray> 19 | </> <green>'forwardRef requires a render function but received a \`memo\` '</> </>
<dim> <red><bold>><dim></><gray> 20 | </> <green>'component. Instead of forwardRef(memo(...)), use '</> <yellow>+</></>
<dim> <gray> | </> <red><bold>^<dim></></>
<dim> <red><bold>></><dim></><gray> 20 | </> <green>'component. Instead of forwardRef(memo(...)), use '</> <yellow>+</></>
<dim> <gray> | </> <red><bold>^</><dim></></>
<dim> <gray> 21 | </> <green>'memo(forwardRef(...)).'</><yellow>,</></>
<dim> <gray> 22 | </> )<yellow>;</></>
<dim> <gray> 23 | </> } <cyan>else</> <cyan>if</> (<cyan>typeof</> render <yellow>!==</> <green>'function'</>) {</></>
"
`;
exports[`should exclude jasmine from stack trace for Unix paths. 1`] = `
"<bold><red> <bold>● <bold>Unix test</></>
"<bold><red> <bold>● </><bold>Unix test</></>
at stack (../jest-jasmine2/build/jasmine-2.4.1.js:1580:17)
<dim></>
<dim> <dim>at Object.addResult (<dim>../jest-jasmine2/build/jasmine-2.4.1.js<dim>:1550:14)<dim></>
<dim> <dim>at Object.it (<dim>build/__tests__/messages-test.js<dim>:45:41)<dim></>
<dim> <dim>at Object.addResult (</><dim>../jest-jasmine2/build/jasmine-2.4.1.js<dim>:1550:14)</><dim></>
<dim> <dim>at Object.it (</><dim>build/__tests__/messages-test.js<dim>:45:41)</><dim></>
"
`;
exports[`should not exclude vendor from stack trace 1`] = `
"<bold><red> <bold>● <bold>Vendor test</></>
"<bold><red> <bold>● </><bold>Vendor test</></>
Expected value to be of type:
Expand All @@ -60,7 +60,7 @@ exports[`should not exclude vendor from stack trace 1`] = `
type:
\\"string\\"
<dim></>
<dim> <dim>at Object.it (<dim>__tests__/vendor/cool_test.js<dim>:6:666)<dim></>
<dim> <dim>at Object.asyncFn (<dim>__tests__/vendor/sulu/node_modules/sulu-content-bundle/best_component.js<dim>:1:5)<dim></>
<dim> <dim>at Object.it (</><dim>__tests__/vendor/cool_test.js<dim>:6:666)</><dim></>
<dim> <dim>at Object.asyncFn (</><dim>__tests__/vendor/sulu/node_modules/sulu-content-bundle/best_component.js<dim>:1:5)</><dim></>
"
`;
@@ -1,12 +1,12 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Repeated types within multiple valid examples are coalesced in error report 1`] = `
"<red><bold><bold>●<bold> Validation Error</>:</>
"<red><bold><bold>●</><bold> Validation Error</>:</>
<red></>
<red> Option <bold>\\"foo\\"</> must be of type:</>
<red> <bold><green>string<red></> or <bold><green>number<red></></>
<red> <bold><green>string</><red></> or <bold><green>number</><red></></>
<red> but instead received:</>
<red> <bold><red>boolean<red></></>
<red> <bold><red>boolean</><red></></>
<red></>
<red> Example:</>
<red> {</>
Expand All @@ -28,7 +28,7 @@ exports[`Repeated types within multiple valid examples are coalesced in error re
`;

exports[`displays warning for deprecated config options 1`] = `
"<yellow><bold><bold>●<bold> Deprecation Warning</>:</>
"<yellow><bold><bold>●</><bold> Deprecation Warning</>:</>
<yellow></>
<yellow> Option <bold>scriptPreprocessor</> was replaced by <bold>transform</>, which support multiple preprocessors.</>
<yellow></>
Expand All @@ -42,20 +42,20 @@ exports[`displays warning for deprecated config options 1`] = `
`;

exports[`displays warning for unknown config options 1`] = `
"<yellow><bold><bold>●<bold> Validation Warning</>:</>
"<yellow><bold><bold>●</><bold> Validation Warning</>:</>
<yellow></>
<yellow> Unknown option <bold>\\"unkwon\\"</> with value <bold>{}</> was found. Did you mean <bold>\\"unknown\\"</>?</>
<yellow> This is probably a typing mistake. Fixing it will remove this message.</>
<yellow></>"
`;

exports[`pretty prints valid config for Array 1`] = `
"<red><bold><bold>●<bold> Validation Error</>:</>
"<red><bold><bold>●</><bold> Validation Error</>:</>
<red></>
<red> Option <bold>\\"coverageReporters\\"</> must be of type:</>
<red> <bold><green>array<red></></>
<red> <bold><green>array</><red></></>
<red> but instead received:</>
<red> <bold><red>object<red></></>
<red> <bold><red>object</><red></></>
<red></>
<red> Example:</>
<red> {</>
Expand All @@ -70,12 +70,12 @@ exports[`pretty prints valid config for Array 1`] = `
`;

exports[`pretty prints valid config for Boolean 1`] = `
"<red><bold><bold>●<bold> Validation Error</>:</>
"<red><bold><bold>●</><bold> Validation Error</>:</>
<red></>
<red> Option <bold>\\"automock\\"</> must be of type:</>
<red> <bold><green>boolean<red></></>
<red> <bold><green>boolean</><red></></>
<red> but instead received:</>
<red> <bold><red>array<red></></>
<red> <bold><red>array</><red></></>
<red></>
<red> Example:</>
<red> {</>
Expand All @@ -85,12 +85,12 @@ exports[`pretty prints valid config for Boolean 1`] = `
`;

exports[`pretty prints valid config for Function 1`] = `
"<red><bold><bold>●<bold> Validation Error</>:</>
"<red><bold><bold>●</><bold> Validation Error</>:</>
<red></>
<red> Option <bold>\\"fn\\"</> must be of type:</>
<red> <bold><green>function<red></></>
<red> <bold><green>function</><red></></>
<red> but instead received:</>
<red> <bold><red>string<red></></>
<red> <bold><red>string</><red></></>
<red></>
<red> Example:</>
<red> {</>
Expand All @@ -100,12 +100,12 @@ exports[`pretty prints valid config for Function 1`] = `
`;

exports[`pretty prints valid config for Object 1`] = `
"<red><bold><bold>●<bold> Validation Error</>:</>
"<red><bold><bold>●</><bold> Validation Error</>:</>
<red></>
<red> Option <bold>\\"haste\\"</> must be of type:</>
<red> <bold><green>object<red></></>
<red> <bold><green>object</><red></></>
<red> but instead received:</>
<red> <bold><red>number<red></></>
<red> <bold><red>number</><red></></>
<red></>
<red> Example:</>
<red> {</>
Expand All @@ -120,12 +120,12 @@ exports[`pretty prints valid config for Object 1`] = `
`;

exports[`pretty prints valid config for String 1`] = `
"<red><bold><bold>●<bold> Validation Error</>:</>
"<red><bold><bold>●</><bold> Validation Error</>:</>
<red></>
<red> Option <bold>\\"preset\\"</> must be of type:</>
<red> <bold><green>string<red></></>
<red> <bold><green>string</><red></></>
<red> but instead received:</>
<red> <bold><red>number<red></></>
<red> <bold><red>number</><red></></>
<red></>
<red> Example:</>
<red> {</>
Expand All @@ -135,12 +135,12 @@ exports[`pretty prints valid config for String 1`] = `
`;

exports[`reports errors nicely when failing with multiple valid options 1`] = `
"<red><bold><bold>●<bold> Validation Error</>:</>
"<red><bold><bold>●</><bold> Validation Error</>:</>
<red></>
<red> Option <bold>\\"foo\\"</> must be of type:</>
<red> <bold><green>string<red></> or <bold><green>array<red></></>
<red> <bold><green>string</><red></> or <bold><green>array</><red></></>
<red> but instead received:</>
<red> <bold><red>number<red></></>
<red> <bold><red>number</><red></></>
<red></>
<red> Example:</>
<red> {</>
Expand Down Expand Up @@ -176,9 +176,9 @@ exports[`works with custom errors 1`] = `
"<red><bold>My Custom Error</>:</>
<red></>
<red> Option <bold>\\"test\\"</> must be of type:</>
<red> <bold><green>array<red></></>
<red> <bold><green>array</><red></></>
<red> but instead received:</>
<red> <bold><red>string<red></></>
<red> <bold><red>string</><red></></>
<red></>
<red> Example:</>
<red> {</>
Expand Down
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`fails for multiple unknown options 1`] = `
"<red><bold><bold>●<bold> Unrecognized CLI Parameters</>:</>
"<red><bold><bold>●</><bold> Unrecognized CLI Parameters</>:</>
<red></>
<red> Following options were not recognized:</>
<red> <bold>[\\"jest\\", \\"test\\"]</></>
Expand All @@ -12,7 +12,7 @@ exports[`fails for multiple unknown options 1`] = `
`;
exports[`fails for unknown option 1`] = `
"<red><bold><bold>●<bold> Unrecognized CLI Parameter</>:</>
"<red><bold><bold>●</><bold> Unrecognized CLI Parameter</>:</>
<red></>
<red> Unrecognized option <bold>\\"unknown\\"</>.</>
<red></>
Expand Down

0 comments on commit b6fb133

Please sign in to comment.