Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows unit test failures jest tests #24284

Closed
liza-mae opened this issue Oct 19, 2018 · 1 comment
Closed

Windows unit test failures jest tests #24284

liza-mae opened this issue Oct 19, 2018 · 1 comment
Labels
Feature:Unit Testing impact:needs-assessment Product and/or Engineering needs to evaluate the impact of the change. Platform:Windows Team:Operations Team label for Operations Team test_infra test

Comments

@liza-mae
Copy link
Contributor

(node:3876) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
Running "test:jest" task
PASS src\core_plugins\console\public\tests\src\integration.test.js
● Console

console.log src\core_plugins\console\public\src\kb.js:163
  failed to load API 'es_6_0': undefined
console.log src\core_plugins\console\public\src\autocomplete.js:961
  error while getting completion terms Error: failed to resolve link [GLOBAL.broken]: Error: failed to resolve global components for  ['broken']
      at ScopeResolver.resolveLinkToComponents (C:\Users\vagrant\kibana\src\core_plugins\console\public\src\autocomplete\body_completer.js:99:13)
      at ScopeResolver.match (C:\Users\vagrant\kibana\src\core_plugins\console\public\src\autocomplete\body_completer.js:117:29)
      at C:\Users\vagrant\kibana\src\core_plugins\console\public\src\autocomplete\engine.js:89:32
      at arrayEach (C:\Users\vagrant\kibana\node_modules\lodash\index.js:1289:13)
      at Function.<anonymous> (C:\Users\vagrant\kibana\node_modules\lodash\index.js:3345:13)
      at C:\Users\vagrant\kibana\src\core_plugins\console\public\src\autocomplete\engine.js:87:7
      at arrayEach (C:\Users\vagrant\kibana\node_modules\lodash\index.js:1289:13)
      at Function.<anonymous> (C:\Users\vagrant\kibana\node_modules\lodash\index.js:3345:13)
      at walkTokenPath (C:\Users\vagrant\kibana\src\core_plugins\console\public\src\autocomplete\engine.js:85:5)
      at walkTokenPath (C:\Users\vagrant\kibana\src\core_plugins\console\public\src\autocomplete\engine.js:128:10)
      at walkTokenPath (C:\Users\vagrant\kibana\src\core_plugins\console\public\src\autocomplete\engine.js:128:10)
      at walkTokenPath (C:\Users\vagrant\kibana\src\core_plugins\console\public\src\autocomplete\engine.js:128:10)
      at walkTokenPath (C:\Users\vagrant\kibana\src\core_plugins\console\public\src\autocomplete\engine.js:128:10)
      at populateContext (C:\Users\vagrant\kibana\src\core_plugins\console\public\src\autocomplete\engine.js:133:20)
      at addBodyAutoCompleteSetToContext (C:\Users\vagrant\kibana\src\core_plugins\console\public\src\autocomplete.js:532:33)
      at getAutoCompleteContext (C:\Users\vagrant\kibana\src\core_plugins\console\public\src\autocomplete.js:173:9)
      at Object.getCompletions (C:\Users\vagrant\kibana\src\core_plugins\console\public\src\autocomplete.js:608:23)
      at C:\Users\vagrant\kibana\src\core_plugins\console\public\tests\src\integration.test.js:100:34
      at C:\Users\vagrant\kibana\src\core_plugins\console\public\src\sense_editor\editor.js:189:9
      at Timeout.callback [as _onTimeout] (C:\Users\vagrant\kibana\node_modules\jest-environment-jsdom\node_modules\jsdom\lib\jsdom\browser\Window.js:633:19)
      at ontimeout (timers.js:498:11)
      at tryOnTimeout (timers.js:323:5)
      at Timer.listOnTimeout (timers.js:290:5)
console.log src\core_plugins\console\public\src\autocomplete.js:801
  Can't extract a valid url token path.

PASS src\server\saved_objects\service\lib\repository.test.js
PASS src\core\server\http_tests_\http_server.test.ts
FAIL src\cli_plugin\install\download.test.js
● kibana cli › plugin downloader › proxy support › should use http_proxy env variable

ENOTEMPTY: directory not empty, rmdir 'C:\Users\vagrant\kibana\src\cli_plugin\install\.test.data.download'

  71 |       logger.log.restore();
  72 |       logger.error.restore();
> 73 |       rimraf.sync(testWorkingPath);
  74 |     });
  75 | 
  76 |     describe('_downloadSingle', function () {
  
  at rmkidsSync (node_modules/rimraf/rimraf.js:332:11)
  at rmdirSync (node_modules/rimraf/rimraf.js:322:7)
  at Function.rimrafSync [as sync] (node_modules/rimraf/rimraf.js:293:9)
  at Object.<anonymous> (src/cli_plugin/install/download.test.js:73:14)

● kibana cli › plugin downloader › proxy support › should use https_proxy for secure URLs

assert.equal(received, expected) or assert(received) 

Expected value to be (operator: ==):
  true
Received:
  false

  64 |       sinon.stub(logger, 'log');
  65 |       sinon.stub(logger, 'error');
> 66 |       rimraf.sync(testWorkingPath);
  67 |       mkdirp.sync(testWorkingPath);
  68 |     });
  69 | 
  
  at fixWinEPERMSync (node_modules/rimraf/rimraf.js:181:5)
  at rimrafSync (node_modules/rimraf/rimraf.js:300:28)
  at node_modules/rimraf/rimraf.js:330:5
      at Array.forEach (<anonymous>)
  at rmkidsSync (node_modules/rimraf/rimraf.js:329:26)
  at rmdirSync (node_modules/rimraf/rimraf.js:322:7)
  at Function.rimrafSync [as sync] (node_modules/rimraf/rimraf.js:293:9)
  at Object.<anonymous> (src/cli_plugin/install/download.test.js:66:14)

● kibana cli › plugin downloader › proxy support › should support domains in no_proxy

ENOTEMPTY: directory not empty, rmdir 'C:\Users\vagrant\kibana\src\cli_plugin\install\.test.data.download'

  71 |       logger.log.restore();
  72 |       logger.error.restore();
> 73 |       rimraf.sync(testWorkingPath);
  74 |     });
  75 | 
  76 |     describe('_downloadSingle', function () {
  
  at rmkidsSync (node_modules/rimraf/rimraf.js:332:11)
  at rmdirSync (node_modules/rimraf/rimraf.js:322:7)
  at Function.rimrafSync [as sync] (node_modules/rimraf/rimraf.js:293:9)
  at Object.<anonymous> (src/cli_plugin/install/download.test.js:73:14)

● kibana cli › plugin downloader › proxy support › should support subdomains in no_proxy

assert.equal(received, expected) or assert(received) 

Expected value to be (operator: ==):
  true
Received:
  false

  64 |       sinon.stub(logger, 'log');
  65 |       sinon.stub(logger, 'error');
> 66 |       rimraf.sync(testWorkingPath);
  67 |       mkdirp.sync(testWorkingPath);
  68 |     });
  69 | 
  
  at fixWinEPERMSync (node_modules/rimraf/rimraf.js:181:5)
  at rimrafSync (node_modules/rimraf/rimraf.js:300:28)
  at node_modules/rimraf/rimraf.js:330:5
      at Array.forEach (<anonymous>)
  at rmkidsSync (node_modules/rimraf/rimraf.js:329:26)
  at rmdirSync (node_modules/rimraf/rimraf.js:322:7)
  at Function.rimrafSync [as sync] (node_modules/rimraf/rimraf.js:293:9)
  at Object.<anonymous> (src/cli_plugin/install/download.test.js:66:14)

PASS src\server\saved_objects\service\lib\errors.test.js
PASS src\core_plugins\console\public\tests\src\url_autocomplete.test.js
PASS src\core_plugins\kibana\public\management\sections\objects\components\objects_table_tests_\objects_table.test.js
PASS packages\kbn-ui-framework\src\components\context_menu\context_menu_panel.test.js
PASS src\core\server\logging_tests_\logger.test.ts
PASS src\server\config\config.test.js
PASS src\core_plugins\console\public\tests\src\editor.test.js
● Console

console.log src\core_plugins\console\public\src\kb.js:163
  failed to load API 'es_6_0': undefined

PASS src\core_plugins\kibana\public\management\sections\settings\components\field\field.test.js
PASS packages\kbn-system-loader\src\system_loader.test.ts
PASS src\ui\public\saved_objects_tests_\saved_objects_client.test.js
PASS src\core_plugins\console\public\tests\src\input_tokenization.test.js
● Console

console.log src\core_plugins\console\public\src\kb.js:163
  failed to load API 'es_6_0': undefined

PASS src\core\lib\kbn_observable_tests_\subject.test.ts
PASS src\core_plugins\kibana\public\management\sections\indices\edit_index_pattern\source_filters_table\components\table_tests_\table.test.js
PASS src\core_plugins\input_control_vis\public\components\editor\list_control_editor.test.js
PASS src\server\config\schema.test.js
PASS src\ui\ui_settings\public\ui_settings_client.test.js
PASS src\core_plugins\kibana\public\management\sections\objects\components\objects_table\components\flyout_tests_\flyout.test.js
PASS src\core\server\config_tests_\config_service.test.ts
PASS src\ui\public\timefilter\timefilter.test.js
PASS packages\kbn-pm\src\utils\projects.test.ts
PASS src\core_plugins\kibana\public\management\sections\objects\lib_tests_\resolve_saved_objects.test.js
PASS src\server\saved_objects\service\lib\search_dsl\query_params.test.js
PASS src\ui\public\utils_tests_\brush_event.test.js
PASS src\core\server\config\schema\types_tests_\conditional_type.test.ts
PASS src\cli_plugin\install\settings.test.js
PASS src\core_plugins\console\public\tests\src\mapping.test.js
PASS src\cli_plugin\install\pack.test.js
PASS src\cli\cluster\worker.test.js
FAIL src\server\status\lib\metrics.test.js
● Console

console.warn node_modules\bluebird\js\main\captured_trace.js:479
  Unhandled rejection Error: Stub File System Stub Error: \sys\fs\cgroup\cpuacct\q4b8l\cpuacct.usage
console.warn node_modules\bluebird\js\main\captured_trace.js:479
  Unhandled rejection Error: Stub File System Stub Error: \sys\fs\cgroup\cpu\q4b8l\cpu.cfs_period_us
console.warn node_modules\bluebird\js\main\captured_trace.js:479
  Unhandled rejection Error: Stub File System Stub Error: \sys\fs\cgroup\cpu\q4b8l\cpu.cfs_quota_us
console.warn node_modules\bluebird\js\main\captured_trace.js:479
  Unhandled rejection Error: Stub File System Stub Error: \sys\fs\cgroup\cpuacct\nmq5x\cpuacct.usage
console.warn node_modules\bluebird\js\main\captured_trace.js:479
  Unhandled rejection Error: Stub File System Stub Error: \sys\fs\cgroup\cpu\nmq5x\cpu.cfs_period_us
console.warn node_modules\bluebird\js\main\captured_trace.js:479
  Unhandled rejection Error: Stub File System Stub Error: \sys\fs\cgroup\cpu\nmq5x\cpu.cfs_quota_us

● Metrics › captureCGroups › returns cgroups

expect(object)[.not].toMatchObject(expected)

received value must be an object.
Received: undefined

  181 |       const capturedMetrics = await metrics.captureCGroups();
  182 | 
> 183 |       expect(capturedMetrics).toMatchObject({
  184 |         os: {
  185 |           cgroup: {
  186 |             cpuacct: {
  
  at Object.it (src/server/status/lib/metrics.test.js:183:31)

● Metrics › captureCGroupsIfAvailable › allows subsequent calls if cgroups are available

expect(received).toBe(expected) // Object.is equality

Expected value to be:
  true
Received:
  false

  230 | 
  231 |       await metrics.captureCGroupsIfAvailable();
> 232 |       expect(metrics.checkCGroupStats).toBe(true);
  233 | 
  234 |       await metrics.captureCGroupsIfAvailable();
  235 |       sinon.assert.calledTwice(metrics.captureCGroups);
  
  at Object.it (src/server/status/lib/metrics.test.js:232:40)

PASS src\core\lib\kbn_observable\operators_tests_\switch_map.test.ts
PASS src\core\server\legacy_compat_tests_\legacy_platform_config.test.ts
PASS src\server\logging\log_format_json.test.js
FAIL src\server\status\lib\cgroup.test.js
● Console

console.warn node_modules\bluebird\js\main\captured_trace.js:479
  Unhandled rejection Error: Stub File System Stub Error: \sys\fs\cgroup\cpuacct\btwjkq\cpuacct.usage
console.warn node_modules\bluebird\js\main\captured_trace.js:479
  Unhandled rejection Error: Stub File System Stub Error: \sys\fs\cgroup\cpu\docker\cpu.cfs_period_us
console.warn node_modules\bluebird\js\main\captured_trace.js:479
  Unhandled rejection Error: Stub File System Stub Error: \sys\fs\cgroup\cpu\docker\cpu.cfs_quota_us
console.warn node_modules\bluebird\js\main\captured_trace.js:479
  Unhandled rejection Error: Stub File System Stub Error: \sys\fs\cgroup\cpuacct\docker\cpuacct.usage
console.warn node_modules\bluebird\js\main\captured_trace.js:479
  Unhandled rejection Error: Stub File System Stub Error: \sys\fs\cgroup\cpu\btwjkq\cpu.cfs_period_us
console.warn node_modules\bluebird\js\main\captured_trace.js:479
  Unhandled rejection Error: Stub File System Stub Error: \sys\fs\cgroup\cpu\btwjkq\cpu.cfs_quota_us
console.warn node_modules\bluebird\js\main\captured_trace.js:479
  Unhandled rejection Error: Stub File System Stub Error: \sys\fs\cgroup\cpuacct\btwjkq\cpuacct.usage
console.warn node_modules\bluebird\js\main\captured_trace.js:479
  Unhandled rejection Error: Stub File System Stub Error: \sys\fs\cgroup\cpu\btwjkq\cpu.cfs_period_us
console.warn node_modules\bluebird\js\main\captured_trace.js:479
  Unhandled rejection Error: Stub File System Stub Error: \sys\fs\cgroup\cpu\btwjkq\cpu.cfs_quota_us
console.warn node_modules\bluebird\js\main\captured_trace.js:479
  Unhandled rejection Error: Stub File System Stub Error: \sys\fs\cgroup\cpuacct\btwjkq\cpuacct.usage
console.warn node_modules\bluebird\js\main\captured_trace.js:479
  Unhandled rejection Error: Stub File System Stub Error: \sys\fs\cgroup\cpu\btwjkq\cpu.cfs_period_us
console.warn node_modules\bluebird\js\main\captured_trace.js:479
  Unhandled rejection Error: Stub File System Stub Error: \sys\fs\cgroup\cpu\btwjkq\cpu.cfs_quota_us
console.warn node_modules\bluebird\js\main\captured_trace.js:479
  Unhandled rejection Error: Stub File System Stub Error: \sys\fs\cgroup\cpuacct\btwjkq\cpuacct.usage
console.warn node_modules\bluebird\js\main\captured_trace.js:479
  Unhandled rejection Error: Stub File System Stub Error: \sys\fs\cgroup\cpu\btwjkq\cpu.cfs_period_us
console.warn node_modules\bluebird\js\main\captured_trace.js:479
  Unhandled rejection Error: Stub File System Stub Error: \sys\fs\cgroup\cpu\btwjkq\cpu.cfs_quota_us

● Control Group › readCPUStat › parses the file

expect(received).toEqual(expected)

Expected value to equal:
  {"number_of_elapsed_periods": 0, "number_of_times_throttled": 10, "time_throttled_nanos": 20}
Received:
  {"number_of_elapsed_periods": -1, "number_of_times_throttled": -1, "time_throttled_nanos": -1}

Difference:

- Expected
+ Received

  Object {
-   "number_of_elapsed_periods": 0,
-   "number_of_times_throttled": 10,
-   "time_throttled_nanos": 20,
+   "number_of_elapsed_periods": -1,
+   "number_of_times_throttled": -1,
+   "time_throttled_nanos": -1,
  }

  65 |       const cpuStat = await readCPUStat('fakeGroup');
  66 | 
> 67 |       expect(cpuStat).toEqual({
  68 |         number_of_elapsed_periods: 0,
  69 |         number_of_times_throttled: 10,
  70 |         time_throttled_nanos: 20
  
  at Object.it (src/server/status/lib/cgroup.test.js:67:23)

● Control Group › getAllStats › can override the cpu group path

expect(received).toEqual(expected)

Expected value to equal:
  {"cpu": {"cfs_period_micros": 100000, "cfs_quota_micros": 5000, "control_group": "/docker", "stat": {"number_of_elapsed_periods": 0, "number_of_times_throttled": 10, "time_throttled_nanos": 20}}, "cpuacct": {"control_group": "/btwjkq", "usage_nanos": 357753491408}}
Received:
  null

Difference:

  Comparing two different types of values. Expected object but received null.

   96 |       const stats = await getAllStats({ cpuPath: '/docker' });
   97 | 
>  98 |       expect(stats).toEqual({
   99 |         cpuacct: {
  100 |           control_group: `/${fsStub.hierarchy}`,
  101 |           usage_nanos: 357753491408,
  
  at Object.it (src/server/status/lib/cgroup.test.js:98:21)

● Control Group › getAllStats › can override the cpuacct group path

expect(received).toEqual(expected)

Expected value to equal:
  {"cpu": {"cfs_period_micros": 100000, "cfs_quota_micros": 5000, "control_group": "/btwjkq", "stat": {"number_of_elapsed_periods": 0, "number_of_times_throttled": 10, "time_throttled_nanos": 20}}, "cpuacct": {"control_group": "/docker", "usage_nanos": 357753491408}}
Received:
  null

Difference:

  Comparing two different types of values. Expected object but received null.

  139 |       const stats = await getAllStats({ cpuAcctPath: '/docker' });
  140 | 
> 141 |       expect(stats).toEqual({
  142 |         cpuacct: {
  143 |           control_group: '/docker',
  144 |           usage_nanos: 357753491408,
  
  at Object.it (src/server/status/lib/cgroup.test.js:141:21)

● Control Group › getAllStats › extracts control group stats

expect(received).toEqual(expected)

Expected value to equal:
  {"cpu": {"cfs_period_micros": 100000, "cfs_quota_micros": 5000, "control_group": "/btwjkq", "stat": {"number_of_elapsed_periods": 0, "number_of_times_throttled": 10, "time_throttled_nanos": 20}}, "cpuacct": {"control_group": "/btwjkq", "usage_nanos": 357753491408}}
Received:
  null

Difference:

  Comparing two different types of values. Expected object but received null.

  161 |       const stats = await getAllStats();
  162 | 
> 163 |       expect(stats).toEqual({
  164 |         cpuacct: {
  165 |           control_group: `/${fsStub.hierarchy}`,
  166 |           usage_nanos: 357753491408,
  
  at Object.it (src/server/status/lib/cgroup.test.js:163:21)

● Control Group › getAllStats › returns -1 stat values if cpuStat file is missing

expect(received).toEqual(expected)

Expected value to equal:
  {"cpu": {"cfs_period_micros": 100000, "cfs_quota_micros": 5000, "control_group": "/btwjkq", "stat": {"number_of_elapsed_periods": -1, "number_of_times_throttled": -1, "time_throttled_nanos": -1}}, "cpuacct": {"control_group": "/btwjkq", "usage_nanos": 357753491408}}
Received:
  null

Difference:

  Comparing two different types of values. Expected object but received null.

  204 |       const stats = await getAllStats();
  205 | 
> 206 |       expect(stats).toEqual({
  207 |         cpu: {
  208 |           cfs_period_micros: 100000,
  209 |           cfs_quota_micros: 5000,
  
  at Object.it (src/server/status/lib/cgroup.test.js:206:21)

PASS src\server\saved_objects\service\lib\search_dsl\sorting_params.test.js
PASS packages\kbn-plugin-generator\sao_template\sao.test.js
PASS packages\kbn-ui-framework\src\components\accessibility\keyboard_accessible.test.js
PASS src\core_plugins\kibana\public\management\sections\indices\create_index_pattern_wizard\components\step_time_field_tests_\step_time_field.test.js
PASS src\server\keystore\keystore.test.js
PASS src\server\config\complete.test.js
PASS src\core\server\legacy_compat_tests_\legacy_platform_proxifier.test.ts
PASS src\core\server\http_tests_\http_config.test.ts
PASS src\server\index_patterns\service\lib\field_capabilities\field_capabilities.test.js
PASS src\core_plugins\console\public\tests\src\kb.test.js
PASS src\server\logging\log_interceptor.test.js
PASS src\core_plugins\input_control_vis\public\components\editor\controls_tab.test.js
PASS src\server\sample_data\routes\lib\translate_timestamp.test.js
(node:2952) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
PASS src\cli\cluster\configure_base_path_proxy.test.js
PASS src\core_plugins\input_control_vis\public\components\vis\input_control_vis.test.js
FAIL packages\kbn-test\src\functional_tests\cli\run_tests\cli.test.js
● run tests CLI › options › rejects boolean config value

expect(value).toMatchSnapshot()

Received value does not match stored snapshot 1.

- Snapshot
+ Received

  "
- �[31mfunctional_tests: invalid argument [true] to option [config]�[39m
+ functional_tests: invalid argument [true] to option [config]
      ...stack trace...
  "

  27 |     .replace(/(^    at.+[>)\d]$\n?)+/m, '    ...stack trace...');
  28 | 
> 29 |   expect(output).toMatchSnapshot();
  30 | }
  31 | 
  
  at checkMockConsoleLogSnapshot (packages/kbn-test/src/functional_tests/test_helpers.js:29:18)
  at Object.it (packages/kbn-test/src/functional_tests/cli/run_tests/cli.test.js:66:7)

● run tests CLI › options › rejects empty config value if no default passed

expect(value).toMatchSnapshot()

Received value does not match stored snapshot 1.

- Snapshot
+ Received

  "
- �[31mfunctional_tests: config is required�[39m
+ functional_tests: config is required
      ...stack trace...
  "

  27 |     .replace(/(^    at.+[>)\d]$\n?)+/m, '    ...stack trace...');
  28 | 
> 29 |   expect(output).toMatchSnapshot();
  30 | }
  31 | 
  
  at checkMockConsoleLogSnapshot (packages/kbn-test/src/functional_tests/test_helpers.js:29:18)
  at Object.it (packages/kbn-test/src/functional_tests/cli/run_tests/cli.test.js:75:7)

● run tests CLI › options › rejects non-boolean value for bail

expect(value).toMatchSnapshot()

Received value does not match stored snapshot 1.

- Snapshot
+ Received

  "
- �[31mfunctional_tests: invalid argument [peanut] to option [bail]�[39m
+ functional_tests: invalid argument [peanut] to option [bail]
      ...stack trace...
  "

  27 |     .replace(/(^    at.+[>)\d]$\n?)+/m, '    ...stack trace...');
  28 | 
> 29 |   expect(output).toMatchSnapshot();
  30 | }
  31 | 
  
  at checkMockConsoleLogSnapshot (packages/kbn-test/src/functional_tests/test_helpers.js:29:18)
  at Object.it (packages/kbn-test/src/functional_tests/cli/run_tests/cli.test.js:92:7)

● run tests CLI › options › rejects boolean value for kibana-install-dir

expect(value).toMatchSnapshot()

Received value does not match stored snapshot 1.

- Snapshot
+ Received

  "
- �[31mfunctional_tests: invalid argument [true] to option [kibana-install-dir]�[39m
+ functional_tests: invalid argument [true] to option [kibana-install-dir]
      ...stack trace...
  "

  27 |     .replace(/(^    at.+[>)\d]$\n?)+/m, '    ...stack trace...');
  28 | 
> 29 |   expect(output).toMatchSnapshot();
  30 | }
  31 | 
  
  at checkMockConsoleLogSnapshot (packages/kbn-test/src/functional_tests/test_helpers.js:29:18)
  at Object.it (packages/kbn-test/src/functional_tests/cli/run_tests/cli.test.js:109:7)

● run tests CLI › options › rejects non-enum value for esFrom

expect(value).toMatchSnapshot()

Received value does not match stored snapshot 1.

- Snapshot
+ Received

  "
- �[31mfunctional_tests: invalid argument [butter] to option [esFrom]�[39m
+ functional_tests: invalid argument [butter] to option [esFrom]
      ...stack trace...
  "

  27 |     .replace(/(^    at.+[>)\d]$\n?)+/m, '    ...stack trace...');
  28 | 
> 29 |   expect(output).toMatchSnapshot();
  30 | }
  31 | 
  
  at checkMockConsoleLogSnapshot (packages/kbn-test/src/functional_tests/test_helpers.js:29:18)
  at Object.it (packages/kbn-test/src/functional_tests/cli/run_tests/cli.test.js:134:7)

● run tests CLI › options › rejects invalid options even if valid options exist

expect(value).toMatchSnapshot()

Received value does not match stored snapshot 1.

- Snapshot
+ Received

  "
- �[31mfunctional_tests: invalid option [aintnothang]�[39m
+ functional_tests: invalid option [aintnothang]
      ...stack trace...
  "

  27 |     .replace(/(^    at.+[>)\d]$\n?)+/m, '    ...stack trace...');
  28 | 
> 29 |   expect(output).toMatchSnapshot();
  30 | }
  31 | 
  
  at checkMockConsoleLogSnapshot (packages/kbn-test/src/functional_tests/test_helpers.js:29:18)
  at Object.it (packages/kbn-test/src/functional_tests/cli/run_tests/cli.test.js:200:7)

› 6 snapshot tests failed.
PASS src\server\server_extensions\add_memoized_factory_to_request.test.js
PASS src\ui\public\notify\banners\banners.test.js
PASS src\core_plugins\kibana\public\management\sections\objects\components\objects_table\components\relationships_tests_\relationships.test.js
PASS src\core_plugins\kibana\public\management\sections\indices\edit_index_pattern\scripted_fields_table_tests_\scripted_field_table.test.js
PASS src\core_plugins\kibana\public\home\components\home.test.js
(node:2952) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 warning listeners added. Use emitter.setMaxListeners() to increase limit
PASS src\server\http\xsrf.test.js (8.631s)
PASS src\core_plugins\input_control_vis\public\control\filter_manager\phrase_filter_manager.test.js
FAIL packages\kbn-test\src\functional_tests\cli\start_servers\cli.test.js
● start servers CLI › options › rejects boolean config value

expect(value).toMatchSnapshot()

Received value does not match stored snapshot 1.

- Snapshot
+ Received

  "
- �[31mfunctional_tests_server: invalid argument [true] to option [config]�[39m
+ functional_tests_server: invalid argument [true] to option [config]
      ...stack trace...
  "

  27 |     .replace(/(^    at.+[>)\d]$\n?)+/m, '    ...stack trace...');
  28 | 
> 29 |   expect(output).toMatchSnapshot();
  30 | }
  31 | 
  
  at checkMockConsoleLogSnapshot (packages/kbn-test/src/functional_tests/test_helpers.js:29:18)
  at Object.it (packages/kbn-test/src/functional_tests/cli/start_servers/cli.test.js:66:7)

● start servers CLI › options › rejects empty config value if no default passed

expect(value).toMatchSnapshot()

Received value does not match stored snapshot 1.

- Snapshot
+ Received

  "
- �[31mfunctional_tests_server: config is required�[39m
+ functional_tests_server: config is required
      ...stack trace...
  "

  27 |     .replace(/(^    at.+[>)\d]$\n?)+/m, '    ...stack trace...');
  28 | 
> 29 |   expect(output).toMatchSnapshot();
  30 | }
  31 | 
  
  at checkMockConsoleLogSnapshot (packages/kbn-test/src/functional_tests/test_helpers.js:29:18)
  at Object.it (packages/kbn-test/src/functional_tests/cli/start_servers/cli.test.js:75:7)

● start servers CLI › options › rejects bail

expect(value).toMatchSnapshot()

Received value does not match stored snapshot 1.

- Snapshot
+ Received

  "
- �[31mfunctional_tests_server: invalid option [bail]�[39m
+ functional_tests_server: invalid option [bail]
      ...stack trace...
  "

  27 |     .replace(/(^    at.+[>)\d]$\n?)+/m, '    ...stack trace...');
  28 | 
> 29 |   expect(output).toMatchSnapshot();
  30 | }
  31 | 
  
  at checkMockConsoleLogSnapshot (packages/kbn-test/src/functional_tests/test_helpers.js:29:18)
  at Object.it (packages/kbn-test/src/functional_tests/cli/start_servers/cli.test.js:92:7)

● start servers CLI › options › rejects boolean value for kibana-install-dir

expect(value).toMatchSnapshot()

Received value does not match stored snapshot 1.

- Snapshot
+ Received

  "
- �[31mfunctional_tests_server: invalid argument [true] to option [kibana-install-dir]�[39m
+ functional_tests_server: invalid argument [true] to option [kibana-install-dir]
      ...stack trace...
  "

  27 |     .replace(/(^    at.+[>)\d]$\n?)+/m, '    ...stack trace...');
  28 | 
> 29 |   expect(output).toMatchSnapshot();
  30 | }
  31 | 
  
  at checkMockConsoleLogSnapshot (packages/kbn-test/src/functional_tests/test_helpers.js:29:18)
  at Object.it (packages/kbn-test/src/functional_tests/cli/start_servers/cli.test.js:109:7)

● start servers CLI › options › accepts boolean value for updateBaselines

expect(value).toMatchSnapshot()

Received value does not match stored snapshot 1.

- Snapshot
+ Received

  "
- �[31mfunctional_tests_server: invalid option [updateBaselines]�[39m
+ functional_tests_server: invalid option [updateBaselines]
      ...stack trace...
  "

  27 |     .replace(/(^    at.+[>)\d]$\n?)+/m, '    ...stack trace...');
  28 | 
> 29 |   expect(output).toMatchSnapshot();
  30 | }
  31 | 
  
  at checkMockConsoleLogSnapshot (packages/kbn-test/src/functional_tests/test_helpers.js:29:18)
  at Object.it (packages/kbn-test/src/functional_tests/cli/start_servers/cli.test.js:118:7)

● start servers CLI › options › rejects non-enum value for esFrom

expect(value).toMatchSnapshot()

Received value does not match stored snapshot 1.

- Snapshot
+ Received

  "
- �[31mfunctional_tests_server: invalid argument [butter] to option [esFrom]�[39m
+ functional_tests_server: invalid argument [butter] to option [esFrom]
      ...stack trace...
  "

  27 |     .replace(/(^    at.+[>)\d]$\n?)+/m, '    ...stack trace...');
  28 | 
> 29 |   expect(output).toMatchSnapshot();
  30 | }
  31 | 
  
  at checkMockConsoleLogSnapshot (packages/kbn-test/src/functional_tests/test_helpers.js:29:18)
  at Object.it (packages/kbn-test/src/functional_tests/cli/start_servers/cli.test.js:135:7)

● start servers CLI › options › rejects invalid options even if valid options exist

expect(value).toMatchSnapshot()

Received value does not match stored snapshot 1.

- Snapshot
+ Received

  "
- �[31mfunctional_tests_server: invalid option [grep]�[39m
+ functional_tests_server: invalid option [grep]
      ...stack trace...
  "

  27 |     .replace(/(^    at.+[>)\d]$\n?)+/m, '    ...stack trace...');
  28 | 
> 29 |   expect(output).toMatchSnapshot();
  30 | }
  31 | 
  
  at checkMockConsoleLogSnapshot (packages/kbn-test/src/functional_tests/test_helpers.js:29:18)
  at Object.it (packages/kbn-test/src/functional_tests/cli/start_servers/cli.test.js:192:7)

› 7 snapshot tests failed.
PASS src\server\index_patterns\service\lib\es_api.test.js
PASS src\core\server\logging_tests_\logger_factory.test.ts
PASS src\core\server\logging\appenders_tests_\file_appender.test.ts
PASS src\core_plugins\kibana\public\dashboard\grid\dashboard_grid_container.test.js
PASS src\server\saved_objects\routes\find.test.js
PASS src\server\mappings\index_mappings.test.js
PASS packages\kbn-pm\src\commands\bootstrap.test.ts
PASS packages\kbn-ui-framework\src\components\popover\popover.test.js
PASS src\core_plugins\kibana\public\dashboard\dashboard_state.test.js
● Console

console.warn node_modules\moment\moment.js:293
  Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
  Arguments: 
  [0] _isAMomentObject: true, _isUTC: false, _useUTC: false, _l: undefined, _i: now/w, _f: undefined, _strict: undefined, _locale: [object Object]
  Error
      at Function.createFromInputFallback (C:\Users\vagrant\kibana\node_modules\moment\moment.js:320:94)
      at configFromString (C:\Users\vagrant\kibana\node_modules\moment\moment.js:2368:11)
      at configFromInput (C:\Users\vagrant\kibana\node_modules\moment\moment.js:2594:9)
      at prepareConfig (C:\Users\vagrant\kibana\node_modules\moment\moment.js:2577:9)
      at createFromConfig (C:\Users\vagrant\kibana\node_modules\moment\moment.js:2544:40)
      at createLocalOrUTC (C:\Users\vagrant\kibana\node_modules\moment\moment.js:2631:12)
      at createLocal (C:\Users\vagrant\kibana\node_modules\moment\moment.js:2635:12)
      at hooks (C:\Users\vagrant\kibana\node_modules\moment\moment.js:12:25)
      at DashboardStateManager.syncTimefilterWithDashboard (C:\Users\vagrant\kibana\src\core_plugins\kibana\public\dashboard\dashboard_state_manager.js:519:43)
      at Object.<anonymous> (C:\Users\vagrant\kibana\src\core_plugins\kibana\public\dashboard\dashboard_state.test.js:63:22)
      at Object.asyncFn (C:\Users\vagrant\kibana\node_modules\jest-jasmine2\build\jasmine_async.js:82:37)
      at resolve (C:\Users\vagrant\kibana\node_modules\jest-jasmine2\build\queue_runner.js:52:12)
      at new Promise (<anonymous>)
      at mapper (C:\Users\vagrant\kibana\node_modules\jest-jasmine2\build\queue_runner.js:39:19)
      at promise.then (C:\Users\vagrant\kibana\node_modules\jest-jasmine2\build\queue_runner.js:73:82)
      at <anonymous>

PASS src\core_plugins\input_control_vis\public\control\control.test.js
PASS src\core\server\logging_tests_\logging_config.test.ts
PASS src\server\index_patterns\service\lib\field_capabilities\field_caps_response.test.js
PASS src\ui\public\field_editor\field_editor.test.js
PASS src\core_plugins\kibana\public\management\sections\indices\create_index_pattern_wizard\components\step_index_pattern_tests_\step_index_pattern.test.js
PASS src\core\server\config\schema\types_tests_\object_type.test.ts
PASS src\cli_plugin\lib\logger.test.js
PASS src\core\server\config\schema\types_tests_\string_type.test.ts
PASS packages\kbn-pm\src\utils\project.test.ts
PASS src\core_plugins\kibana\public\management\sections\indices\create_index_pattern_wizard_tests_\create_index_pattern_wizard.test.js
PASS src\core_plugins\kibana\public\management\sections\indices\edit_index_pattern\source_filters_table_tests_\source_filters_table.test.js
PASS src\core\lib\kbn_observable_tests_\behavior_subject.test.ts
PASS src\core\lib\kbn_observable\operators_tests_\skip_repeats.test.ts
PASS packages\kbn-ui-framework\src\services\sort\sortable_properties.test.js
PASS src\ui\public\courier\fetch\request\serialize_fetch_params\serialize_fetch_params.test.js
PASS src\ui\ui_settings\public\ui_settings_api.test.js
PASS src\server\status\server_status.test.js
PASS src\server\status\status.test.js
PASS src\cli_plugin\install\kibana.test.js
PASS src\cli_keystore\add.test.js
PASS src\core\public\legacy_platform\legacy_platform_service.test.ts
PASS src\core\server\config\schema\byte_size_value_tests_\index.test.ts
PASS src\ui\ui_render\bootstrap\app_bootstrap.test.js
PASS src\core_plugins\kibana\public\discover\directives\no_results.test.js
PASS src\core\server\http_tests_\http_service.test.ts
PASS src\cli_plugin\install\cleanup.test.js
PASS src\core_plugins\console\public\tests\src\utils.test.js
PASS packages\kbn-ui-framework\src\components\button\button.test.js
PASS src\core_plugins\kibana\public\home\components\tutorial\tutorial.test.js
PASS src\ui\public\vis\update_status.test.js
PASS src\core\server\config\schema\types_tests_\array_type.test.ts
PASS src\server\saved_objects\service\lib\scoped_client_provider.test.js
PASS src\server\index_patterns\service\lib\resolve_time_pattern.test.js
PASS packages\kbn-ui-framework\src\components\form\text_input\text_input.test.js
PASS packages\kbn-ui-framework\src\components\modal\confirm_modal.test.js
PASS src\core\server\config_tests_\raw_config_service.test.ts
PASS src\core_plugins\input_control_vis\public\components\vis\range_control.test.js
PASS src\ui\public\persisted_log\persisted_log.test.js
PASS src\server\saved_objects\service\lib\decorate_es_error.test.js
(node:2952) [DEP0013] DeprecationWarning: Calling an asynchronous function without callback is deprecated.
PASS packages\kbn-plugin-helpers\tasks\build\create_build.test.js
PASS src\core_plugins\kibana\public\dashboard\listing\dashboard_listing.test.js
FAIL packages\kbn-test\src\functional_tests\lib\run_cli.test.js
● logs the stack then exits when run function throws an error

expect(value).toMatchSnapshot()

Received value does not match stored snapshot 1.

- Snapshot
+ Received

  "
- �[31mfoo error�[39m
+ foo error
    stack 1
    stack 2
    stack 3
  
  "

  27 |     .replace(/(^    at.+[>)\d]$\n?)+/m, '    ...stack trace...');
  28 | 
> 29 |   expect(output).toMatchSnapshot();
  30 | }
  31 | 
  
  at checkMockConsoleLogSnapshot (packages/kbn-test/src/functional_tests/test_helpers.js:29:18)
  at Object.<anonymous>.it (packages/kbn-test/src/functional_tests/lib/run_cli.test.js:106:3)

● logs no stack trace then exits when stack missing

expect(value).toMatchSnapshot()

Received value does not match stored snapshot 1.

- Snapshot
+ Received

  "
- �[31mfoo error�[39m
+ foo error
    (no stack trace)
  
  "

  27 |     .replace(/(^    at.+[>)\d]$\n?)+/m, '    ...stack trace...');
  28 | 
> 29 |   expect(output).toMatchSnapshot();
  30 | }
  31 | 
  
  at checkMockConsoleLogSnapshot (packages/kbn-test/src/functional_tests/test_helpers.js:29:18)
  at Object.<anonymous>.it (packages/kbn-test/src/functional_tests/lib/run_cli.test.js:120:3)

● does right thing when non-error is thrown

expect(value).toMatchSnapshot()

Received value does not match stored snapshot 1.

- Snapshot
+ Received

  "
- �[31m'foo bar' thrown!�[39m
+ 'foo bar' thrown!
      ...stack trace...
  "

  27 |     .replace(/(^    at.+[>)\d]$\n?)+/m, '    ...stack trace...');
  28 | 
> 29 |   expect(output).toMatchSnapshot();
  30 | }
  31 | 
  
  at checkMockConsoleLogSnapshot (packages/kbn-test/src/functional_tests/test_helpers.js:29:18)
  at Object.<anonymous>.it (packages/kbn-test/src/functional_tests/lib/run_cli.test.js:132:3)

› 3 snapshot tests failed.
PASS src\core_plugins\kibana\public\home\components\tutorial\instruction_set.test.js
PASS src\core\server\root_tests_\index.test.ts
PASS src\cli_plugin\list\list.test.js
PASS packages\kbn-pm\src\run.test.ts
PASS src\server\http\short_url_lookup.test.js
PASS packages\kbn-ui-framework\src\components\form\text_area\text_area.test.js
PASS src\ui\public\index_patterns_tests__index_pattern.test.js
PASS src\cli_plugin\install\progress.test.js
PASS src\ui\ui_apps\ui_apps_mixin.test.js
PASS src\core_plugins\input_control_vis\public\components\editor\range_control_editor.test.js
PASS src\core\public\core_system.test.ts
PASS src\core\server\config_tests_\env.test.ts
PASS packages\kbn-test\src\functional_tests\cli\run_tests\args.test.js
PASS src\core\lib\kbn_observable\operators_tests_\merge_map.test.ts
PASS src\server\saved_objects\service\saved_objects_client.test.js
PASS src\core\server\config\schema\types_tests_\one_of_type.test.ts
PASS src\core_plugins\kibana\public\management\sections\settings\advanced_settings.test.js
PASS packages\kbn-ui-framework\src\components\pager\pager_button_group.test.js
PASS packages\kbn-plugin-helpers\tasks\build\build_action.test.js
PASS src\core_plugins\kibana\public\management\sections\indices\edit_index_pattern\indexed_fields_table\components\table_tests_\table.test.js
PASS packages\kbn-ui-framework\src\components\button\link_button.test.js
PASS src\core\server\logging_tests_\log_level.test.ts
PASS packages\kbn-ui-framework\src\components\color_picker\color_picker.test.js
PASS src\server\mappings\lib\get_root_properties_objects.test.js
PASS src\ui\public\notify\toasts\toast_notifications.test.js
PASS packages\kbn-pm\src\utils\parallelize.test.ts
PASS src\server\saved_objects\routes\create.test.js
PASS src\core\lib\kbn_observable_tests_\observable.test.ts
PASS packages\kbn-test\src\functional_tests\cli\start_servers\args.test.js
PASS src\ui\public\inspector\view_registry.test.ts
PASS packages\kbn-ui-framework\src\components\form\select\select.test.js
PASS src\cli_plugin\remove\settings.test.js
PASS src\core\server\logging\appenders_tests_\appenders.test.ts
PASS src\core_plugins\input_control_vis\public\control\filter_manager\range_filter_manager.test.js
PASS src\core\server\logging\layouts_tests_\pattern_layout.test.ts
PASS src\server\config\transform_deprecations.test.js
PASS src\ui\public\inspector\inspector.test.js
PASS src\core_plugins\markdown_vis\public\markdown_vis_controller.test.js
PASS src\core_plugins\kibana\public\management\sections\settings\lib_tests_\to_editable_config.test.js
PASS src\cli_plugin\remove\remove.test.js
PASS src\core_plugins\kibana\public\home\components\recently_accessed.test.js
PASS packages\kbn-ui-framework\src\components\code_editor\code_editor.test.js
PASS src\core_plugins\console\public\tests\src\url_params.test.js
PASS src\ui\public\field_editor\components\field_format_editor\editors\default\default.test.js
PASS src\core\server\legacy_compat\logging\appenders_tests_\legacy_appender.test.ts
PASS src\ui\public\vis\vis_update_state.test.js
PASS src\server\utils\prompt.test.js
PASS packages\kbn-ui-framework\src\components\pager\pager.test.js
PASS src\core\server\logging_tests_\logger_adapter.test.ts
PASS src\core_plugins\kibana\public\management\sections\indices\create_index_pattern_wizard\lib_tests_\get_matched_indices.test.js
PASS src\core_plugins\kibana\public\management\sections\settings\lib_tests_\is_default_value.test.js
PASS src\ui\public\markdown\markdown.test.js
PASS src\ui\public\kfetch\kfetch.test.ts
PASS src\cli_plugin\install\zip.test.js
PASS src\core_plugins\kibana\public\management\sections\indices\create_index_pattern_wizard\lib_tests_\get_indices.test.js
PASS src\core\server\config\schema\types_tests_\map_of_type.test.ts
PASS packages\kbn-es\src\utils\parse_es_log.test.js
PASS src\ui\public\visualize\components\visualization_chart.test.js
PASS src\core\public\injected_metadata\deep_freeze.test.ts
PASS src\core_plugins\kibana\public\dashboard\grid\dashboard_grid.test.js
PASS src\cli_keystore\create.test.js
PASS src\ui\public\timefilter\lib\diff_time_picker_vals.test.js
PASS src\core_plugins\input_control_vis\public\components\editor\options_tab.test.js
PASS src\server\saved_objects\service\lib\search_dsl\search_dsl.test.js
PASS src\core\server\config\schema\types_tests_\byte_size_type.test.ts
PASS src\core\server\http_tests_\https_redirect_server.test.ts
PASS packages\kbn-pm\src\utils\link_project_executables.test.ts
PASS src\ui\public\error_auto_create_index\error_auto_create_index.test.js
PASS packages\kbn-ui-framework\src\components\context_menu\context_menu_item.test.js
PASS packages\kbn-ui-framework\src\components\form\check_box\check_box_label.test.js
PASS src\core_plugins\kibana\public\management\sections\indices\edit_index_pattern\indexed_fields_table_tests_\indexed_fields_table.test.js
PASS src\cli\serve\read_yaml_config.test.js
PASS src\core\server\config_tests_\ensure_deep_object.test.ts
PASS src\core_plugins\console\public\tests\src\output_tokenization.test.js
● Console

console.log src\core_plugins\console\public\src\kb.js:163
  failed to load API 'es_6_0': undefined

PASS src\core_plugins\kibana\public\management\sections\objects\lib_tests_\retrieve_and_export_docs.test.js
PASS src\core_plugins\kibana\public\dashboard\panel\panel_header\panel_header_container.test.js
PASS src\server\plugins\lib\call_plugin_hook.test.js
PASS packages\kbn-plugin-helpers\lib\commander_action.test.js
PASS src\core_plugins\input_control_vis\public\control\range_control_factory.test.js
FAIL src\dev\notice\generate_build_notice_text.test.js
● src/dev/build/tasks/notice_file/generate_notice › generateBuildNoticeText() › returns a string

ENOENT: no such file or directory, open 'C:\Program Files\LICENSE'

  23 | export function generateNodeNoticeText(nodeDir, nodeVersion) {
  24 |   const licensePath = resolve(nodeDir, 'LICENSE');
> 25 |   const license = readFileSync(licensePath, 'utf8');
  26 |   return `This product bundles Node.js v${nodeVersion}.\n\n${license}`;
  27 | }
  28 | 
  
  at generateNodeNoticeText (src/dev/notice/generate_node_notice_text.js:25:19)
  at generateBuildNoticeText (src/dev/notice/generate_build_notice_text.js:45:5)

● src/dev/build/tasks/notice_file/generate_notice › generateBuildNoticeText() › returns a string

expect(received).toBe(expected) // Object.is equality

Expected value to be:
  "string"
Received:
  "undefined"

  57 | 
  58 |     it('returns a string', () => {
> 59 |       expect(typeof notice).toBe('string');
  60 |     });
  61 | 
  62 |     it('includes *NOTICE* files from packages', () => {
  
  at Object.it (src/dev/notice/generate_build_notice_text.test.js:59:29)

● src/dev/build/tasks/notice_file/generate_notice › generateBuildNoticeText() › includes NOTICE files from packages

ENOENT: no such file or directory, open 'C:\Program Files\LICENSE'

  23 | export function generateNodeNoticeText(nodeDir, nodeVersion) {
  24 |   const licensePath = resolve(nodeDir, 'LICENSE');
> 25 |   const license = readFileSync(licensePath, 'utf8');
  26 |   return `This product bundles Node.js v${nodeVersion}.\n\n${license}`;
  27 | }
  28 | 
  
  at generateNodeNoticeText (src/dev/notice/generate_node_notice_text.js:25:19)
  at generateBuildNoticeText (src/dev/notice/generate_build_notice_text.js:45:5)

● src/dev/build/tasks/notice_file/generate_notice › generateBuildNoticeText() › includes NOTICE files from packages

expect(received).toEqual(expected)

Expected value to equal:
  StringContaining "Notice me!
"
Received:
  undefined

Difference:

  Comparing two different types of values. Expected string but received undefined.

  61 | 
  62 |     it('includes *NOTICE* files from packages', () => {
> 63 |       expect(notice).toEqual(expect.stringContaining(
  64 |         readFileSync(resolve(NODE_MODULES, 'foo/NOTICE.txt'), 'utf8')
  65 |       ));
  66 |     });
  
  at Object.it (src/dev/notice/generate_build_notice_text.test.js:63:22)

● src/dev/build/tasks/notice_file/generate_notice › generateBuildNoticeText() › includes LICENSE files from packages

ENOENT: no such file or directory, open 'C:\Program Files\LICENSE'

  23 | export function generateNodeNoticeText(nodeDir, nodeVersion) {
  24 |   const licensePath = resolve(nodeDir, 'LICENSE');
> 25 |   const license = readFileSync(licensePath, 'utf8');
  26 |   return `This product bundles Node.js v${nodeVersion}.\n\n${license}`;
  27 | }
  28 | 
  
  at generateNodeNoticeText (src/dev/notice/generate_node_notice_text.js:25:19)
  at generateBuildNoticeText (src/dev/notice/generate_build_notice_text.js:45:5)

● src/dev/build/tasks/notice_file/generate_notice › generateBuildNoticeText() › includes LICENSE files from packages

expect(received).toEqual(expected)

Expected value to equal:
  StringContaining "MIT
"
Received:
  undefined

Difference:

  Comparing two different types of values. Expected string but received undefined.

  67 | 
  68 |     it('includes *LICENSE* files from packages', () => {
> 69 |       expect(notice).toEqual(expect.stringContaining(
  70 |         readFileSync(
  71 |           resolve(NODE_MODULES, 'bar/LICENSE.md'),
  72 |           'utf8'
  
  at Object.it (src/dev/notice/generate_build_notice_text.test.js:69:22)

● src/dev/build/tasks/notice_file/generate_notice › generateBuildNoticeText() › includes the LICENSE file from node

ENOENT: no such file or directory, open 'C:\Program Files\LICENSE'

  23 | export function generateNodeNoticeText(nodeDir, nodeVersion) {
  24 |   const licensePath = resolve(nodeDir, 'LICENSE');
> 25 |   const license = readFileSync(licensePath, 'utf8');
  26 |   return `This product bundles Node.js v${nodeVersion}.\n\n${license}`;
  27 | }
  28 | 
  
  at generateNodeNoticeText (src/dev/notice/generate_node_notice_text.js:25:19)
  at generateBuildNoticeText (src/dev/notice/generate_build_notice_text.js:45:5)

● src/dev/build/tasks/notice_file/generate_notice › generateBuildNoticeText() › includes the LICENSE file from node

ENOENT: no such file or directory, open 'C:\Program Files\LICENSE'

  77 |     it('includes the LICENSE file from node', () => {
  78 |       expect(notice).toEqual(expect.stringContaining(
> 79 |         readFileSync(resolve(NODE_DIR, 'LICENSE'), 'utf8')
  80 |       ));
  81 |     });
  82 | 
  
  at Object.it (src/dev/notice/generate_build_notice_text.test.js:79:9)

● src/dev/build/tasks/notice_file/generate_notice › generateBuildNoticeText() › includes node version

ENOENT: no such file or directory, open 'C:\Program Files\LICENSE'

  23 | export function generateNodeNoticeText(nodeDir, nodeVersion) {
  24 |   const licensePath = resolve(nodeDir, 'LICENSE');
> 25 |   const license = readFileSync(licensePath, 'utf8');
  26 |   return `This product bundles Node.js v${nodeVersion}.\n\n${license}`;
  27 | }
  28 | 
  
  at generateNodeNoticeText (src/dev/notice/generate_node_notice_text.js:25:19)
  at generateBuildNoticeText (src/dev/notice/generate_build_notice_text.js:45:5)

● src/dev/build/tasks/notice_file/generate_notice › generateBuildNoticeText() › includes node version

expect(received).toEqual(expected)

Expected value to equal:
  StringContaining "This product bundles Node.js v8.11.3"
Received:
  undefined

Difference:

  Comparing two different types of values. Expected string but received undefined.

  82 | 
  83 |     it('includes node version', () => {
> 84 |       expect(notice).toEqual(expect.stringContaining(
  85 |         'This product bundles Node.js v8.11.3'
  86 |       ));
  87 |     });
  
  at Object.it (src/dev/notice/generate_build_notice_text.test.js:84:22)

● src/dev/build/tasks/notice_file/generate_notice › generateBuildNoticeText() › includes the noticeFromSource

ENOENT: no such file or directory, open 'C:\Program Files\LICENSE'

  23 | export function generateNodeNoticeText(nodeDir, nodeVersion) {
  24 |   const licensePath = resolve(nodeDir, 'LICENSE');
> 25 |   const license = readFileSync(licensePath, 'utf8');
  26 |   return `This product bundles Node.js v${nodeVersion}.\n\n${license}`;
  27 | }
  28 | 
  
  at generateNodeNoticeText (src/dev/notice/generate_node_notice_text.js:25:19)
  at generateBuildNoticeText (src/dev/notice/generate_build_notice_text.js:45:5)

● src/dev/build/tasks/notice_file/generate_notice › generateBuildNoticeText() › includes the noticeFromSource

expect(received).toEqual(expected)

Expected value to equal:
  StringContaining "NOTICE_FROM_SOURCE"
Received:
  undefined

Difference:

  Comparing two different types of values. Expected string but received undefined.

  88 | 
  89 |     it('includes the noticeFromSource', () => {
> 90 |       expect(notice).toEqual(expect.stringContaining(
  91 |         'NOTICE_FROM_SOURCE'
  92 |       ));
  93 |     });
  
  at Object.it (src/dev/notice/generate_build_notice_text.test.js:90:22)

PASS src\core_plugins\kibana\public\dashboard\panel\panel_utils.test.js
PASS src\core\server\logging_tests_\logging_service.test.ts
PASS src\core_plugins\kibana\public\management\sections\indices\create_index_pattern_wizard\components\step_index_pattern\components\status_message_tests_\status_message.test.js
PASS src\core_plugins\kibana\public\dashboard\components\exit_full_screen_button.test.js
PASS src\core\server\config\schema\types_tests_\number_type.test.ts
PASS packages\kbn-ui-framework\src\components\button\submit_button.test.js
PASS src\server\mappings\lib\get_property.test.js
PASS packages\kbn-ui-framework\src\components\table\listing_table\listing_table.test.js
PASS src\core\server\logging\appenders_tests_\console_appender.test.ts
PASS src\server\http\version_check.test.js
PASS packages\kbn-pm\src\utils\watch.test.ts
PASS src\core\lib\kbn_observable\factories_tests_\from_callback.test.ts
PASS src\ui\public\inspector\adapters\request\request_adapter.test.ts
PASS src\core_plugins\kibana\public\dashboard\panel\dashboard_panel.test.js
PASS packages\kbn-ui-framework\src\components\form\check_box\check_box.test.js
PASS src\core_plugins\kibana\public\management\sections\settings\components\form\form.test.js
PASS src\core_plugins\metrics\public\components\add_delete_buttons.test.js
PASS src\ui\public\visualize\components\visualization.test.js
PASS packages\kbn-ui-framework\src\components\context_menu\context_menu.test.js
PASS src\ui\public\field_editor\components\field_format_editor\editors\duration\duration.test.js
PASS src\ui\public\vis\editors\default\update_editor_state.test.js
PASS src\core_plugins\kibana\public\management\sections\indices\edit_index_pattern\scripted_fields_table\components\table_tests_\table.test.js
PASS src\cli_plugin\install\rename.test.js
PASS src\cli_plugin\install\index.test.js
PASS src\core_plugins\kibana\public\dashboard\reducers\panels.test.ts
PASS src\core_plugins\kibana\server\routes\api\management\saved_objects\scroll.test.js
PASS src\core_plugins\kibana\server\lib\import\import_dashboards.test.js
PASS src\ui\public\filter_bar\lib_tests_\change_time_filter.test.js
PASS packages\kbn-ui-framework\src\components\expression\expression_button.test.js
PASS src\server\saved_objects\routes\bulk_get.test.js
PASS packages\kbn-ui-framework\src\components\gallery\gallery_item\gallery_item.test.js
PASS src\core_plugins\kibana\public\home\components\tutorial\saved_objects_installer.test.js
PASS src\core_plugins\kibana\public\management\sections\indices\create_index_pattern_wizard\components\step_time_field\components\time_field_tests_\time_field.test.js
PASS src\ui\public\field_editor\components\field_format_editor\editors\url\url.test.js
PASS src\core\lib\kbn_observable\factories_tests_\bind_node_callback.test.ts
PASS src\server\saved_objects\routes\update.test.js
PASS src\core_plugins\kibana\public\management\sections\indices\create_index_pattern_wizard\components\step_index_pattern\components\indices_list_tests_\indices_list.test.js
PASS src\ui\public\inspector\adapters\data\data_adapters.test.ts
PASS src\ui\public\agg_types\param_types\filter\field_filters.test.ts
PASS src\core\lib\kbn_observable\operators_tests_\to_promise.test.ts
PASS src\ui\public\timepicker\pretty_duration.test.js
● Console

console.warn node_modules\moment\moment.js:293
  Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
  Arguments: 
  [0] _isAMomentObject: true, _isUTC: false, _useUTC: false, _l: undefined, _i: now-17m, _f: undefined, _strict: undefined, _locale: [object Object]
  Error
      at Function.createFromInputFallback (C:\Users\vagrant\kibana\node_modules\moment\moment.js:320:94)
      at configFromString (C:\Users\vagrant\kibana\node_modules\moment\moment.js:2368:11)
      at configFromInput (C:\Users\vagrant\kibana\node_modules\moment\moment.js:2594:9)
      at prepareConfig (C:\Users\vagrant\kibana\node_modules\moment\moment.js:2577:9)
      at createFromConfig (C:\Users\vagrant\kibana\node_modules\moment\moment.js:2544:40)
      at createLocalOrUTC (C:\Users\vagrant\kibana\node_modules\moment\moment.js:2631:12)
      at createLocal (C:\Users\vagrant\kibana\node_modules\moment\moment.js:2635:12)
      at hooks (C:\Users\vagrant\kibana\node_modules\moment\moment.js:12:25)
      at formatTimeString (C:\Users\vagrant\kibana\src\ui\public\timepicker\pretty_duration.js:31:7)
      at cantLookup (C:\Users\vagrant\kibana\src\ui\public\timepicker\pretty_duration.js:25:23)
      at prettyDuration (C:\Users\vagrant\kibana\src\ui\public\timepicker\pretty_duration.js:67:16)
      at Object.test (C:\Users\vagrant\kibana\src\ui\public\timepicker\pretty_duration.test.js:52:12)
      at Object.asyncFn (C:\Users\vagrant\kibana\node_modules\jest-jasmine2\build\jasmine_async.js:82:37)
      at resolve (C:\Users\vagrant\kibana\node_modules\jest-jasmine2\build\queue_runner.js:52:12)
      at new Promise (<anonymous>)
      at mapper (C:\Users\vagrant\kibana\node_modules\jest-jasmine2\build\queue_runner.js:39:19)
      at promise.then (C:\Users\vagrant\kibana\node_modules\jest-jasmine2\build\queue_runner.js:73:82)
      at <anonymous>

PASS src\cli\cluster\cluster_manager.test.js
PASS src\core_plugins\kibana\public\dashboard\reducers\view.test.ts
PASS src\ui\public\agg_types\filter\agg_type_filters.test.ts
PASS src\core\server\config\schema\types_tests_\duration_type.test.ts
PASS src\ui\public\courier\search_strategy\search_strategy_registry.test.js
PASS src\server\saved_objects\routes\get.test.js
PASS src\core\lib\kbn_observable_tests_\k.test.ts
PASS src\server\http\max_payload_size.test.js
PASS src\core\utils_tests_\url.test.ts
PASS src\ui\public\notify\lib\format_msg.test.js
PASS packages\kbn-system-loader\src\system.test.ts
PASS src\ui\public\field_editor\components\field_format_editor\editors\color\color.test.js
PASS src\core_plugins\kibana\public\management\sections\settings\lib_tests_\get_val_type.test.js
PASS src\core\server\logging\layouts_tests_\json_layout.test.ts
PASS src\server\saved_objects\routes\delete.test.js
PASS src\core_plugins\kibana\public\home\components\tutorial\introduction.test.js
PASS src\core\server\logging\layouts_tests_\layouts.test.ts
PASS src\core_plugins\kibana\public\dashboard\actions\embeddables.test.ts
PASS src\server\http\short_url_error.test.js
PASS src\core_plugins\kibana\public\dashboard\panel\dashboard_panel_container.test.js
PASS src\cli_keystore\list.test.js
PASS src\ui\public\notify\lib\format_es_msg.test.js
PASS src\core_plugins\input_control_vis\public\control\filter_manager\filter_manager.test.js
PASS src\core_plugins\input_control_vis\public\lineage\parent_candidates.test.js
PASS src\core_plugins\inspector_views\public\data\data_view.test.js
PASS src\core\server\logging\appenders_tests_\buffer_appender.test.ts
PASS src\core_plugins\kibana\public\dashboard\top_nav\clone_modal.test.js
PASS src\core_plugins\kibana\public\management\sections\settings\lib_tests_\get_category_name.test.js
PASS src\ui\public\inspector\ui\inspector_panel.test.js
PASS src\core_plugins\timelion\server\lib\offset_time.test.js
PASS src\setup_node_env\node_version_validator.test.js
PASS packages\kbn-ui-framework\src\components\collapse_button\collapse_button.test.js
PASS src\core_plugins\input_control_vis\public\control\list_control_factory.test.js
PASS src\ui\public\vis\editors\components\editor_options_group.test.js
PASS src\server\http\short_url_assert_valid.test.js
PASS packages\kbn-ui-framework\src\components\tool_bar\tool_bar_search_box.test.js
PASS src\core\server\config_tests_\apply_argv.test.ts
PASS src\server\saved_objects\service\lib\included_fields.test.js
PASS src\ui\public\field_editor\components\field_format_editor\field_format_editor.test.js
PASS packages\kbn-ui-framework\src\services\accessibility\html_id_generator.test.js
PASS src\core\lib\kbn_observable\factories_tests_\concat.test.ts
PASS src\core_plugins\input_control_vis\public\lineage\lineage_map.test.js
PASS src\core_plugins\kibana\public\home\components\synopsis.test.js
PASS src\server\status\wrap_auth_config.test.js
PASS src\core\lib\kbn_observable\operators_tests_\reduce.test.ts
PASS src\core\lib\kbn_observable\operators_tests_\scan.test.ts
PASS src\core_plugins\kibana\public\management\sections\objects\components\objects_table\components\table_tests_\table.test.js
PASS src\core_plugins\kibana\public\management\sections\objects\lib_tests_\get_relationships.test.js
FAIL packages\kbn-pm\src\utils\projects_tree.test.ts
● handles projects outside root folder

expect(value).toMatchSnapshot()

Received value does not match stored snapshot 1.

- Snapshot
+ Received

  "kibana
  ├── packages
  │   ├── bar
  │   └── foo
- └── ../plugins
+ └── ..\\plugins
      ├── baz
      └── quux"

  40 | 
  41 |   const tree = await renderProjectsTree(rootPath, projects);
> 42 |   expect(tree).toMatchSnapshot();
  43 | });
  44 | 
  45 | test('handles projects within projects outside root folder', async () => {
  
  at Object.<anonymous>.test (packages/kbn-pm/src/utils/projects_tree.test.ts:42:16)

● handles projects within projects outside root folder

expect(value).toMatchSnapshot()

Received value does not match stored snapshot 1.

- Snapshot
+ Received

  "kibana
  ├── packages
  │   ├── bar
  │   └── foo
- └── ../kibana-extra/additional_projects (with-additional-projects)
-     ├── packages/baz
-     └── plugins/quux"
+ └── ..\\kibana-extra\\additional_projects (with-additional-projects)
+     ├── packages\\baz
+     └── plugins\\quux"

  48 | 
  49 |   const tree = await renderProjectsTree(rootPath, projects);
> 50 |   expect(tree).toMatchSnapshot();
  51 | });
  52 | 
  
  at Object.<anonymous>.test (packages/kbn-pm/src/utils/projects_tree.test.ts:50:16)

› 2 snapshot tests failed.
PASS src\cli_keystore\remove.test.js
PASS src\core_plugins\kibana\public\management\sections\settings\components\search\search.test.js
PASS src\ui\public\field_editor\components\field_format_editor\editors\static_lookup\static_lookup.test.js
PASS src\core_plugins\metrics\public\components\vis_editor_visualization.test.js
PASS src\core_plugins\kibana\public\management\sections\objects\lib_tests_\get_in_app_url.test.js
PASS src\ui\public\field_editor\components\field_format_editor\editors\date\date.test.js
PASS packages\kbn-plugin-helpers\tasks\build\create_package.test.js
PASS src\server\logging\log_format_string.test.js
PASS src\core\server\config\schema\types_tests_\maybe_type.test.ts
PASS src\server\saved_objects\service\lib\repository_provider.test.js
PASS src\core_plugins\kibana\public\management\sections\objects\lib_tests_\get_saved_object_icon.test.js
PASS packages\kbn-plugin-helpers\lib\run.test.js
PASS src\core_plugins\kibana\public\management\sections\indices\edit_index_pattern\source_filters_table\components\add_filter_tests_\add_filter.test.js
PASS src\core\server\config\schema\types_tests_\boolean_type.test.ts
PASS src\core\lib\kbn_observable\factories_tests_\combine_latest.test.ts
PASS packages\kbn-ui-framework\src\components\table\table.test.js
PASS src\core_plugins\kibana\public\management\sections\indices\create_index_pattern_wizard_tests_\render.test.js
PASS packages\kbn-es\src\utils\extract_config_files.test.js
PASS packages\kbn-ui-framework\src\components\accessibility\screen_reader.test.js
PASS packages\kbn-ui-framework\src\components\button\button_icon\button_icon.test.js
PASS src\core_plugins\input_control_vis\public\components\vis\list_control.test.js
PASS src\core\lib\kbn_observable\operators_tests_\first.test.ts
PASS src\ui\public\chrome\directives\loading_indicator.test.js
PASS src\core_plugins\kibana\public\management\sections\indices\create_index_pattern_wizard\lib_tests_\ensure_minimum_time.test.js
PASS src\core\lib\kbn_observable\operators_tests_\last.test.ts
PASS src\cli_plugin\list\settings.test.js
PASS packages\kbn-ui-framework\src\components\tabs\tab.test.js
PASS packages\kbn-ui-framework\src\components\typography\typography.test.js
PASS packages\kbn-system-loader\src\topological_sort.test.ts
PASS src\core_plugins\kibana\public\management\sections\objects\lib_tests_\import_file.test.js
PASS src\core_plugins\kibana\public\management\sections\indices\create_index_pattern_wizard\components\empty_state_tests_\empty_state.test.js
PASS src\core_plugins\metrics\public\components\yes_no.test.js
PASS packages\kbn-ui-framework\src\components\button\button_group\button_group.test.js
PASS src\core\public\injected_metadata\injected_metadata_service.test.ts
PASS src\ui\public\field_editor\lib_tests_\copy_field.test.js
PASS src\cli_plugin\lib\error_if_x_pack.test.js
PASS src\ui\public\field_editor\components\field_format_editor\editors\string\string.test.js
PASS src\core_plugins\kibana\public\management\sections\settings\lib_tests_\get_aria_name.test.js
PASS src\ui\public\utils\memoize.test.ts
PASS src\core_plugins\kibana\public\dashboard\reducers\embeddables.test.ts
PASS src\core_plugins\console\public\tests\src\curl_parsing.test.js
PASS src\server\http\secure_options.test.js
FAIL src\server\sass\build.test.js
● SASS builder › generates a glob

expect(received).toEqual(expected)

Expected value to equal:
  "/foo/**/*.s{a,c}ss"
Received:
  "\\foo\\**\\*.s{a,c}ss"

  28 |   it('generates a glob', () => {
  29 |     const builder = new Build('/foo/style.sass');
> 30 |     expect(builder.getGlob()).toEqual('/foo/**/*.s{a,c}ss');
  31 |   });
  32 | 
  33 |   it('builds SASS', () => {
  
  at Object.it (src/server/sass/build.test.js:30:31)

● SASS builder › builds SASS

expect(received).toEqual(expected)

Expected value to equal:
  {"file": "/foo/style.sass", "outFile": "/foo/style.css", "sourceComments": true, "sourceMap": true, "sourceMapEmbed": true}
Received:
  {"file": "/foo/style.sass", "outFile": "\\foo\\style.css", "sourceComments": true, "sourceMap": true, "sourceMapEmbed": true}

Difference:

- Expected
+ Received

  Object {
    "file": "/foo/style.sass",
-   "outFile": "/foo/style.css",
+   "outFile": "\\foo\\style.css",
    "sourceComments": true,
    "sourceMap": true,
    "sourceMapEmbed": true,
  }

  36 |     builder.build();
  37 | 
> 38 |     expect(sass.render.mock.calls[0][0]).toEqual({
  39 |       file: '/foo/style.sass',
  40 |       outFile: '/foo/style.css',
  41 |       sourceComments: true,
  
  at Object.it (src/server/sass/build.test.js:38:42)

● SASS builder › has an output file with a different extension

expect(received).toEqual(expected)

Expected value to equal:
  "/foo/style.css"
Received:
  "\\foo\\style.css"

  47 |   it('has an output file with a different extension', () => {
  48 |     const builder = new Build('/foo/style.sass');
> 49 |     expect(builder.outputPath()).toEqual('/foo/style.css');
  50 |   });
  51 | });
  
  at Object.it (src/server/sass/build.test.js:49:34)

PASS src\ui\public\field_editor\lib_tests_\get_default_format.test.js
PASS packages\kbn-pm\src\production\prepare_project_dependencies.test.ts
PASS src\ui\public\field_editor\components\scripting_help\help_flyout.test.js
PASS src\core_plugins\kibana\public\management\sections\indices\create_index_pattern_wizard\components\step_index_pattern\components\header_tests_\header.test.js
PASS src\core\server\config\schema\types_tests_\literal_type.test.ts
PASS packages\kbn-ui-framework\src\components\flex\flex_item.test.js
PASS src\ui\public\notify\banners\global_banner_list.test.js
PASS packages\kbn-es\src\utils\decompress.test.js
PASS packages\kbn-ui-framework\src\components\local_nav\local_tab.test.js
PASS src\core_plugins\metric_vis\public\components\metric_vis_value.test.js
PASS src\cli\serve\read_keystore.test.js
PASS src\core_plugins\metrics\public\lib_tests_\create_brush_handler.test.js
PASS src\core_plugins\kibana\public\management\sections\indices\create_index_pattern_wizard\components\step_time_field\components\advanced_options_tests_\advanced_options.test.js
PASS src\ui\public\field_editor\components\field_format_editor\editors\truncate\truncate.test.js
PASS src\core\server\legacy_compat_tests_\legacy_kbn_server.test.ts
PASS src\ui\public\field_editor\components\field_format_editor\editors\percent\percent.test.js
PASS src\ui\public\field_editor\components\field_format_editor\editors\number\number.test.js
PASS src\ui\public\field_editor\components\field_format_editor\editors\bytes\bytes.test.js
PASS src\core_plugins\kibana\public\management\sections\indices\edit_index_pattern\indexed_fields_table\lib_tests_\get_field_format.test.js
PASS src\core_plugins\kibana\public\management\sections\indices\create_index_pattern_wizard\lib_tests_\extract_time_fields.test.js
PASS src\ui\public\field_editor\components\field_format_editor\samples\samples.test.js
PASS src\server\config\explode_by.test.js
PASS packages\kbn-ui-framework\src\components\empty_table_prompt\empty_table_prompt.test.js
PASS src\server\logging\apply_filters_to_keys.test.js
PASS src\core_plugins\input_control_vis\public\components\vis\form_row.test.js
PASS src\core\lib\kbn_observable\factories_tests_\from.test.ts
PASS src\core_plugins\kibana\public\home\components\add_data.test.js
PASS src\ui\public\timepicker\pretty_interval.test.js
FAIL packages\kbn-es\src\utils\find_most_recently_changed.test.js
● returns newest file

expect(received).toEqual(expected)

Expected value to equal:
  "/data/newest.yml"
Received:
  "C:\\data\\newest.yml"

  48 |   expect(file).toEqual('/data/newest.yml');
  49 | });
> 50 | 
  
  at Object.<anonymous>.test (packages/kbn-es/src/utils/find_most_recently_changed.test.js:50:16)

PASS src\core_plugins\kibana\public\management\sections\indices\create_index_pattern_wizard\lib_tests_\can_append_wildcard.test.js
PASS packages\kbn-ui-framework\src\components\expression\expression.test.js
PASS src\core_plugins\kibana\public\management\sections\indices\edit_index_pattern\scripted_fields_table\components\call_outs_tests_\call_outs.test.js
PASS packages\kbn-ui-framework\src\components\info_button\info_button.test.js
PASS src\ui\public\field_editor\components\scripting_call_outs\warning_call_out.test.js
PASS src\server\index_patterns\service\lib\time_pattern_to_wildcard.test.js
PASS src\server\base_path.test.js
PASS src\core_plugins\kibana\public\management\sections\indices\create_index_pattern_wizard\components\header_tests_\header.test.js
PASS src\core\lib\kbn_observable\operators_tests_\map.test.ts
PASS packages\kbn-ui-framework\src\components\local_nav\local_nav_row.test.js
PASS src\core\server\config_tests_\read_config.test.ts
PASS src\core_plugins\kibana\server\tutorials\apm\saved_objects\get_saved_objects.test.js
(node:2952) UnhandledPromiseRejectionWarning: Error: only absolute urls are supported
(node:2952) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 116)
(node:2952) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
PASS src\ui\public\kfetch\kfetch_abortable.test.ts
PASS src\core\utils_tests_\get.test.ts
PASS packages\kbn-ui-framework\src\components\form_layout\field_group_section.test.js
PASS src\server\config\override.test.js
PASS src\ui\public\field_editor\components\scripting_call_outs\disabled_call_out.test.js
PASS src\core\lib\kbn_observable\operators_tests_\filter.test.ts
PASS src\core_plugins\kibana\public\dashboard\top_nav\add_panel.test.js
PASS packages\kbn-ui-framework\src\components\form_layout\field_group.test.js
PASS src\ui\public\field_editor\components\field_format_editor\editors\url\label_template_flyout.test.js
PASS src\ui\public\field_editor\components\field_format_editor\editors\url\url_template_flyout.test.js
PASS packages\kbn-ui-framework\src\components\card\card_group.test.js
PASS src\core_plugins\console\public\tests\src\content_type.test.js
PASS src\ui\public\visualize\components\visualization_noresults.test.js
PASS src\core_plugins\kibana\public\management\sections\objects\lib_tests_\scan_all_types.test.js
PASS src\core_plugins\kibana\public\management\sections\objects\components\objects_table\components\header_tests_\header.test.js
PASS packages\kbn-ui-framework\src\components\menu\menu.test.js
PASS packages\kbn-ui-framework\src\components\table\table_row.test.js
PASS src\core_plugins\kibana\public\dashboard\top_nav\save_modal.test.js
PASS src\core_plugins\kibana\public\management\sections\indices\create_index_pattern_wizard\lib_tests_\contains_invalid_characters.test.js
PASS src\server\path\index.test.js
PASS src\core_plugins\kibana\public\management\sections\objects\lib_tests_\save_to_file.test.js
PASS packages\kbn-ui-framework\src\components\table\table_header_check_box_cell.test.js
PASS packages\kbn-ui-framework\src\components\outside_click_detector\outside_click_detector.test.js
PASS packages\kbn-ui-framework\src\components\empty_table_prompt\empty_table_prompt_actions.test.js
PASS packages\kbn-ui-framework\src\components\empty_table_prompt\empty_table_prompt_message.test.js
PASS src\core_plugins\kibana\public\management\sections\objects\lib_tests_\parse_query.test.js
PASS packages\kbn-ui-framework\src\components\empty_table_prompt\empty_table_prompt_panel.test.js
PASS packages\kbn-ui-framework\src\components\tool_bar\tool_bar_footer_section.test.js
PASS packages\kbn-ui-framework\src\components\card\card_description_title.test.js
PASS packages\kbn-ui-framework\src\components\card\card_description_text.test.js
PASS packages\kbn-ui-framework\src\components\form\label\label.test.js
PASS packages\kbn-ui-framework\src\components\local_nav\local_nav_row_section.test.js
PASS packages\kbn-ui-framework\src\components\popover\popover_title.test.js
PASS packages\kbn-ui-framework\src\components\event\event_body_metadata.test.js
PASS packages\kbn-ui-framework\src\components\flex\flex_grid.test.js
PASS packages\kbn-ui-framework\src\components\panel_simple\panel_simple.test.js
PASS packages\kbn-ui-framework\src\components\gallery\gallery_item\gallery_item_label.test.js
PASS packages\kbn-ui-framework\src\components\gallery\gallery_item\gallery_item_image.test.js
PASS packages\kbn-ui-framework\src\components\modal\modal.test.js
PASS packages\kbn-ui-framework\src\components\modal\modal_header_title.test.js
PASS packages\kbn-ui-framework\src\components\event\event_body_message.test.js
PASS packages\kbn-ui-framework\src\components\header_bar\header_bar_section.test.js
PASS packages\kbn-ui-framework\src\components\gallery\gallery_item\gallery_item_icon.test.js
PASS packages\kbn-ui-framework\src\components\table\controlled_table.test.js
PASS src\server\sample_data\routes\lib\load_data.test.js
PASS packages\kbn-ui-framework\src\components\flex\flex_group.test.js
PASS packages\kbn-ui-framework\src\components\table\table_header_cell.test.js
PASS packages\kbn-ui-framework\src\components\card\card_description.test.js
PASS packages\kbn-ui-framework\src\components\table\table_row_check_box_cell.test.js
PASS packages\kbn-ui-framework\src\components\tool_bar\tool_bar_section.test.js
PASS packages\kbn-ui-framework\src\components\tool_bar\tool_bar_footer.test.js
PASS src\core_plugins\kibana\public\home\components\tutorial\content.test.js
PASS packages\kbn-ui-framework\src\components\modal\modal_overlay.test.js
PASS packages\kbn-ui-framework\src\components\tool_bar\tool_bar_text.test.js
PASS packages\kbn-ui-framework\src\components\event\event_symbol.test.js
PASS packages\kbn-ui-framework\src\components\modal\modal_footer.test.js
PASS packages\kbn-ui-framework\src\components\modal\modal_header.test.js
PASS packages\kbn-ui-framework\src\components\action_item\action_item.test.js
PASS packages\kbn-ui-framework\src\components\bar\bar_section.test.js
PASS packages\kbn-ui-framework\src\components\card\card_footer.test.js
PASS packages\kbn-ui-framework\src\components\tabs\tabs.test.js
PASS packages\kbn-ui-framework\src\components\local_nav\local_title.test.js
PASS packages\kbn-ui-framework\src\components\modal\modal_body.test.js
PASS packages\kbn-ui-framework\src\components\table\table_info.test.js
PASS packages\kbn-ui-framework\src\components\event\event_body.test.js
PASS packages\kbn-ui-framework\src\components\header_bar\header_bar.test.js
PASS packages\kbn-ui-framework\src\components\local_nav\local_tabs.test.js
PASS src\core_plugins\kibana\public\management\sections\settings\lib_tests_\default_category.test.js
PASS packages\kbn-ui-framework\src\components\menu\menu_item.test.js
PASS packages\kbn-ui-framework\src\components\table\table_row_cell.test.js
PASS packages\kbn-ui-framework\src\components\local_nav\local_nav.test.js
PASS packages\kbn-ui-framework\src\components\tool_bar\tool_bar.test.js
PASS packages\kbn-ui-framework\src\components\gallery\gallery.test.js
PASS packages\kbn-ui-framework\src\components\event\event.test.js
PASS packages\kbn-ui-framework\src\components\card\card.test.js
PASS packages\kbn-ui-framework\src\components\bar\bar.test.js
PASS src\core_plugins\kibana\public\management\sections\indices\create_index_pattern_wizard\components\step_time_field\components\header_tests_\header.test.js
PASS src\core_plugins\kibana\public\management\sections\indices\create_index_pattern_wizard\components\step_index_pattern\components\loading_indices_tests_\loading_indices.test.js
PASS src\core_plugins\kibana\public\management\sections\indices\edit_index_pattern\scripted_fields_table\components\header_tests_\header.test.js
PASS src\core_plugins\kibana\public\management\sections\indices\create_index_pattern_wizard\components\loading_state_tests_\loading_state.test.js
PASS src\core_plugins\kibana\public\management\sections\settings\components\call_outs\call_outs.test.js
PASS src\core_plugins\kibana\public\management\sections\indices\edit_index_pattern\source_filters_table\components\header_tests_\header.test.js
PASS src\core_plugins\kibana\public\home\components\tutorial\copy_button.test.js
PASS src\core_plugins\kibana\public\home\components\tutorial\footer.test.js
PASS src\server\index_patterns\service\lib\errors.test.js
PASS src\cli_plugin\lib\is_oss.test.js

Summary of all failing tests
FAIL src\cli_plugin\install\download.test.js
● kibana cli › plugin downloader › proxy support › should use http_proxy env variable

ENOTEMPTY: directory not empty, rmdir 'C:\Users\vagrant\kibana\src\cli_plugin\install\.test.data.download'

  71 |       logger.log.restore();
  72 |       logger.error.restore();
> 73 |       rimraf.sync(testWorkingPath);
  74 |     });
  75 | 
  76 |     describe('_downloadSingle', function () {
  
  at rmkidsSync (node_modules/rimraf/rimraf.js:332:11)
  at rmdirSync (node_modules/rimraf/rimraf.js:322:7)
  at Function.rimrafSync [as sync] (node_modules/rimraf/rimraf.js:293:9)
  at Object.<anonymous> (src/cli_plugin/install/download.test.js:73:14)

● kibana cli › plugin downloader › proxy support › should use https_proxy for secure URLs

assert.equal(received, expected) or assert(received) 

Expected value to be (operator: ==):
  true
Received:
  false

  64 |       sinon.stub(logger, 'log');
  65 |       sinon.stub(logger, 'error');
> 66 |       rimraf.sync(testWorkingPath);
  67 |       mkdirp.sync(testWorkingPath);
  68 |     });
  69 | 
  
  at fixWinEPERMSync (node_modules/rimraf/rimraf.js:181:5)
  at rimrafSync (node_modules/rimraf/rimraf.js:300:28)
  at node_modules/rimraf/rimraf.js:330:5
      at Array.forEach (<anonymous>)
  at rmkidsSync (node_modules/rimraf/rimraf.js:329:26)
  at rmdirSync (node_modules/rimraf/rimraf.js:322:7)
  at Function.rimrafSync [as sync] (node_modules/rimraf/rimraf.js:293:9)
  at Object.<anonymous> (src/cli_plugin/install/download.test.js:66:14)

● kibana cli › plugin downloader › proxy support › should support domains in no_proxy

ENOTEMPTY: directory not empty, rmdir 'C:\Users\vagrant\kibana\src\cli_plugin\install\.test.data.download'

  71 |       logger.log.restore();
  72 |       logger.error.restore();
> 73 |       rimraf.sync(testWorkingPath);
  74 |     });
  75 | 
  76 |     describe('_downloadSingle', function () {
  
  at rmkidsSync (node_modules/rimraf/rimraf.js:332:11)
  at rmdirSync (node_modules/rimraf/rimraf.js:322:7)
  at Function.rimrafSync [as sync] (node_modules/rimraf/rimraf.js:293:9)
  at Object.<anonymous> (src/cli_plugin/install/download.test.js:73:14)

● kibana cli › plugin downloader › proxy support › should support subdomains in no_proxy

assert.equal(received, expected) or assert(received) 

Expected value to be (operator: ==):
  true
Received:
  false

  64 |       sinon.stub(logger, 'log');
  65 |       sinon.stub(logger, 'error');
> 66 |       rimraf.sync(testWorkingPath);
  67 |       mkdirp.sync(testWorkingPath);
  68 |     });
  69 | 
  
  at fixWinEPERMSync (node_modules/rimraf/rimraf.js:181:5)
  at rimrafSync (node_modules/rimraf/rimraf.js:300:28)
  at node_modules/rimraf/rimraf.js:330:5
      at Array.forEach (<anonymous>)
  at rmkidsSync (node_modules/rimraf/rimraf.js:329:26)
  at rmdirSync (node_modules/rimraf/rimraf.js:322:7)
  at Function.rimrafSync [as sync] (node_modules/rimraf/rimraf.js:293:9)
  at Object.<anonymous> (src/cli_plugin/install/download.test.js:66:14)

FAIL src\server\status\lib\metrics.test.js
● Metrics › captureCGroups › returns cgroups

expect(object)[.not].toMatchObject(expected)

received value must be an object.
Received: undefined

  181 |       const capturedMetrics = await metrics.captureCGroups();
  182 | 
> 183 |       expect(capturedMetrics).toMatchObject({
  184 |         os: {
  185 |           cgroup: {
  186 |             cpuacct: {
  
  at Object.it (src/server/status/lib/metrics.test.js:183:31)

● Metrics › captureCGroupsIfAvailable › allows subsequent calls if cgroups are available

expect(received).toBe(expected) // Object.is equality

Expected value to be:
  true
Received:
  false

  230 | 
  231 |       await metrics.captureCGroupsIfAvailable();
> 232 |       expect(metrics.checkCGroupStats).toBe(true);
  233 | 
  234 |       await metrics.captureCGroupsIfAvailable();
  235 |       sinon.assert.calledTwice(metrics.captureCGroups);
  
  at Object.it (src/server/status/lib/metrics.test.js:232:40)

FAIL src\server\status\lib\cgroup.test.js
● Control Group › readCPUStat › parses the file

expect(received).toEqual(expected)

Expected value to equal:
  {"number_of_elapsed_periods": 0, "number_of_times_throttled": 10, "time_throttled_nanos": 20}
Received:
  {"number_of_elapsed_periods": -1, "number_of_times_throttled": -1, "time_throttled_nanos": -1}

Difference:

- Expected
+ Received

  Object {
-   "number_of_elapsed_periods": 0,
-   "number_of_times_throttled": 10,
-   "time_throttled_nanos": 20,
+   "number_of_elapsed_periods": -1,
+   "number_of_times_throttled": -1,
+   "time_throttled_nanos": -1,
  }

  65 |       const cpuStat = await readCPUStat('fakeGroup');
  66 | 
> 67 |       expect(cpuStat).toEqual({
  68 |         number_of_elapsed_periods: 0,
  69 |         number_of_times_throttled: 10,
  70 |         time_throttled_nanos: 20
  
  at Object.it (src/server/status/lib/cgroup.test.js:67:23)

● Control Group › getAllStats › can override the cpu group path

expect(received).toEqual(expected)

Expected value to equal:
  {"cpu": {"cfs_period_micros": 100000, "cfs_quota_micros": 5000, "control_group": "/docker", "stat": {"number_of_elapsed_periods": 0, "number_of_times_throttled": 10, "time_throttled_nanos": 20}}, "cpuacct": {"control_group": "/btwjkq", "usage_nanos": 357753491408}}
Received:
  null

Difference:

  Comparing two different types of values. Expected object but received null.

   96 |       const stats = await getAllStats({ cpuPath: '/docker' });
   97 | 
>  98 |       expect(stats).toEqual({
   99 |         cpuacct: {
  100 |           control_group: `/${fsStub.hierarchy}`,
  101 |           usage_nanos: 357753491408,
  
  at Object.it (src/server/status/lib/cgroup.test.js:98:21)

● Control Group › getAllStats › can override the cpuacct group path

expect(received).toEqual(expected)

Expected value to equal:
  {"cpu": {"cfs_period_micros": 100000, "cfs_quota_micros": 5000, "control_group": "/btwjkq", "stat": {"number_of_elapsed_periods": 0, "number_of_times_throttled": 10, "time_throttled_nanos": 20}}, "cpuacct": {"control_group": "/docker", "usage_nanos": 357753491408}}
Received:
  null

Difference:

  Comparing two different types of values. Expected object but received null.

  139 |       const stats = await getAllStats({ cpuAcctPath: '/docker' });
  140 | 
> 141 |       expect(stats).toEqual({
  142 |         cpuacct: {
  143 |           control_group: '/docker',
  144 |           usage_nanos: 357753491408,
  
  at Object.it (src/server/status/lib/cgroup.test.js:141:21)

● Control Group › getAllStats › extracts control group stats

expect(received).toEqual(expected)

Expected value to equal:
  {"cpu": {"cfs_period_micros": 100000, "cfs_quota_micros": 5000, "control_group": "/btwjkq", "stat": {"number_of_elapsed_periods": 0, "number_of_times_throttled": 10, "time_throttled_nanos": 20}}, "cpuacct": {"control_group": "/btwjkq", "usage_nanos": 357753491408}}
Received:
  null

Difference:

  Comparing two different types of values. Expected object but received null.

  161 |       const stats = await getAllStats();
  162 | 
> 163 |       expect(stats).toEqual({
  164 |         cpuacct: {
  165 |           control_group: `/${fsStub.hierarchy}`,
  166 |           usage_nanos: 357753491408,
  
  at Object.it (src/server/status/lib/cgroup.test.js:163:21)

● Control Group › getAllStats › returns -1 stat values if cpuStat file is missing

expect(received).toEqual(expected)

Expected value to equal:
  {"cpu": {"cfs_period_micros": 100000, "cfs_quota_micros": 5000, "control_group": "/btwjkq", "stat": {"number_of_elapsed_periods": -1, "number_of_times_throttled": -1, "time_throttled_nanos": -1}}, "cpuacct": {"control_group": "/btwjkq", "usage_nanos": 357753491408}}
Received:
  null

Difference:

  Comparing two different types of values. Expected object but received null.

  204 |       const stats = await getAllStats();
  205 | 
> 206 |       expect(stats).toEqual({
  207 |         cpu: {
  208 |           cfs_period_micros: 100000,
  209 |           cfs_quota_micros: 5000,
  
  at Object.it (src/server/status/lib/cgroup.test.js:206:21)

FAIL packages\kbn-test\src\functional_tests\cli\run_tests\cli.test.js
● run tests CLI › options › rejects boolean config value

expect(value).toMatchSnapshot()

Received value does not match stored snapshot 1.

- Snapshot
+ Received

  "
- �[31mfunctional_tests: invalid argument [true] to option [config]�[39m
+ functional_tests: invalid argument [true] to option [config]
      ...stack trace...
  "

  27 |     .replace(/(^    at.+[>)\d]$\n?)+/m, '    ...stack trace...');
  28 | 
> 29 |   expect(output).toMatchSnapshot();
  30 | }
  31 | 
  
  at checkMockConsoleLogSnapshot (packages/kbn-test/src/functional_tests/test_helpers.js:29:18)
  at Object.it (packages/kbn-test/src/functional_tests/cli/run_tests/cli.test.js:66:7)

● run tests CLI › options › rejects empty config value if no default passed

expect(value).toMatchSnapshot()

Received value does not match stored snapshot 1.

- Snapshot
+ Received

  "
- �[31mfunctional_tests: config is required�[39m
+ functional_tests: config is required
      ...stack trace...
  "

  27 |     .replace(/(^    at.+[>)\d]$\n?)+/m, '    ...stack trace...');
  28 | 
> 29 |   expect(output).toMatchSnapshot();
  30 | }
  31 | 
  
  at checkMockConsoleLogSnapshot (packages/kbn-test/src/functional_tests/test_helpers.js:29:18)
  at Object.it (packages/kbn-test/src/functional_tests/cli/run_tests/cli.test.js:75:7)

● run tests CLI › options › rejects non-boolean value for bail

expect(value).toMatchSnapshot()

Received value does not match stored snapshot 1.

- Snapshot
+ Received

  "
- �[31mfunctional_tests: invalid argument [peanut] to option [bail]�[39m
+ functional_tests: invalid argument [peanut] to option [bail]
      ...stack trace...
  "

  27 |     .replace(/(^    at.+[>)\d]$\n?)+/m, '    ...stack trace...');
  28 | 
> 29 |   expect(output).toMatchSnapshot();
  30 | }
  31 | 
  
  at checkMockConsoleLogSnapshot (packages/kbn-test/src/functional_tests/test_helpers.js:29:18)
  at Object.it (packages/kbn-test/src/functional_tests/cli/run_tests/cli.test.js:92:7)

● run tests CLI › options › rejects boolean value for kibana-install-dir

expect(value).toMatchSnapshot()

Received value does not match stored snapshot 1.

- Snapshot
+ Received

  "
- �[31mfunctional_tests: invalid argument [true] to option [kibana-install-dir]�[39m
+ functional_tests: invalid argument [true] to option [kibana-install-dir]
      ...stack trace...
  "

  27 |     .replace(/(^    at.+[>)\d]$\n?)+/m, '    ...stack trace...');
  28 | 
> 29 |   expect(output).toMatchSnapshot();
  30 | }
  31 | 
  
  at checkMockConsoleLogSnapshot (packages/kbn-test/src/functional_tests/test_helpers.js:29:18)
  at Object.it (packages/kbn-test/src/functional_tests/cli/run_tests/cli.test.js:109:7)

● run tests CLI › options › rejects non-enum value for esFrom

expect(value).toMatchSnapshot()

Received value does not match stored snapshot 1.

- Snapshot
+ Received

  "
- �[31mfunctional_tests: invalid argument [butter] to option [esFrom]�[39m
+ functional_tests: invalid argument [butter] to option [esFrom]
      ...stack trace...
  "

  27 |     .replace(/(^    at.+[>)\d]$\n?)+/m, '    ...stack trace...');
  28 | 
> 29 |   expect(output).toMatchSnapshot();
  30 | }
  31 | 
  
  at checkMockConsoleLogSnapshot (packages/kbn-test/src/functional_tests/test_helpers.js:29:18)
  at Object.it (packages/kbn-test/src/functional_tests/cli/run_tests/cli.test.js:134:7)

● run tests CLI › options › rejects invalid options even if valid options exist

expect(value).toMatchSnapshot()

Received value does not match stored snapshot 1.

- Snapshot
+ Received

  "
- �[31mfunctional_tests: invalid option [aintnothang]�[39m
+ functional_tests: invalid option [aintnothang]
      ...stack trace...
  "

  27 |     .replace(/(^    at.+[>)\d]$\n?)+/m, '    ...stack trace...');
  28 | 
> 29 |   expect(output).toMatchSnapshot();
  30 | }
  31 | 
  
  at checkMockConsoleLogSnapshot (packages/kbn-test/src/functional_tests/test_helpers.js:29:18)
  at Object.it (packages/kbn-test/src/functional_tests/cli/run_tests/cli.test.js:200:7)

FAIL packages\kbn-test\src\functional_tests\cli\start_servers\cli.test.js
● start servers CLI › options › rejects boolean config value

expect(value).toMatchSnapshot()

Received value does not match stored snapshot 1.

- Snapshot
+ Received

  "
- �[31mfunctional_tests_server: invalid argument [true] to option [config]�[39m
+ functional_tests_server: invalid argument [true] to option [config]
      ...stack trace...
  "

  27 |     .replace(/(^    at.+[>)\d]$\n?)+/m, '    ...stack trace...');
  28 | 
> 29 |   expect(output).toMatchSnapshot();
  30 | }
  31 | 
  
  at checkMockConsoleLogSnapshot (packages/kbn-test/src/functional_tests/test_helpers.js:29:18)
  at Object.it (packages/kbn-test/src/functional_tests/cli/start_servers/cli.test.js:66:7)

● start servers CLI › options › rejects empty config value if no default passed

expect(value).toMatchSnapshot()

Received value does not match stored snapshot 1.

- Snapshot
+ Received

  "
- �[31mfunctional_tests_server: config is required�[39m
+ functional_tests_server: config is required
      ...stack trace...
  "

  27 |     .replace(/(^    at.+[>)\d]$\n?)+/m, '    ...stack trace...');
  28 | 
> 29 |   expect(output).toMatchSnapshot();
  30 | }
  31 | 
  
  at checkMockConsoleLogSnapshot (packages/kbn-test/src/functional_tests/test_helpers.js:29:18)
  at Object.it (packages/kbn-test/src/functional_tests/cli/start_servers/cli.test.js:75:7)

● start servers CLI › options › rejects bail

expect(value).toMatchSnapshot()

Received value does not match stored snapshot 1.

- Snapshot
+ Received

  "
- �[31mfunctional_tests_server: invalid option [bail]�[39m
+ functional_tests_server: invalid option [bail]
      ...stack trace...
  "

  27 |     .replace(/(^    at.+[>)\d]$\n?)+/m, '    ...stack trace...');
  28 | 
> 29 |   expect(output).toMatchSnapshot();
  30 | }
  31 | 
  
  at checkMockConsoleLogSnapshot (packages/kbn-test/src/functional_tests/test_helpers.js:29:18)
  at Object.it (packages/kbn-test/src/functional_tests/cli/start_servers/cli.test.js:92:7)

● start servers CLI › options › rejects boolean value for kibana-install-dir

expect(value).toMatchSnapshot()

Received value does not match stored snapshot 1.

- Snapshot
+ Received

  "
- �[31mfunctional_tests_server: invalid argument [true] to option [kibana-install-dir]�[39m
+ functional_tests_server: invalid argument [true] to option [kibana-install-dir]
      ...stack trace...
  "

  27 |     .replace(/(^    at.+[>)\d]$\n?)+/m, '    ...stack trace...');
  28 | 
> 29 |   expect(output).toMatchSnapshot();
  30 | }
  31 | 
  
  at checkMockConsoleLogSnapshot (packages/kbn-test/src/functional_tests/test_helpers.js:29:18)
  at Object.it (packages/kbn-test/src/functional_tests/cli/start_servers/cli.test.js:109:7)

● start servers CLI › options › accepts boolean value for updateBaselines

expect(value).toMatchSnapshot()

Received value does not match stored snapshot 1.

- Snapshot
+ Received

  "
- �[31mfunctional_tests_server: invalid option [updateBaselines]�[39m
+ functional_tests_server: invalid option [updateBaselines]
      ...stack trace...
  "

  27 |     .replace(/(^    at.+[>)\d]$\n?)+/m, '    ...stack trace...');
  28 | 
> 29 |   expect(output).toMatchSnapshot();
  30 | }
  31 | 
  
  at checkMockConsoleLogSnapshot (packages/kbn-test/src/functional_tests/test_helpers.js:29:18)
  at Object.it (packages/kbn-test/src/functional_tests/cli/start_servers/cli.test.js:118:7)

● start servers CLI › options › rejects non-enum value for esFrom

expect(value).toMatchSnapshot()

Received value does not match stored snapshot 1.

- Snapshot
+ Received

  "
- �[31mfunctional_tests_server: invalid argument [butter] to option [esFrom]�[39m
+ functional_tests_server: invalid argument [butter] to option [esFrom]
      ...stack trace...
  "

  27 |     .replace(/(^    at.+[>)\d]$\n?)+/m, '    ...stack trace...');
  28 | 
> 29 |   expect(output).toMatchSnapshot();
  30 | }
  31 | 
  
  at checkMockConsoleLogSnapshot (packages/kbn-test/src/functional_tests/test_helpers.js:29:18)
  at Object.it (packages/kbn-test/src/functional_tests/cli/start_servers/cli.test.js:135:7)

● start servers CLI › options › rejects invalid options even if valid options exist

expect(value).toMatchSnapshot()

Received value does not match stored snapshot 1.

- Snapshot
+ Received

  "
- �[31mfunctional_tests_server: invalid option [grep]�[39m
+ functional_tests_server: invalid option [grep]
      ...stack trace...
  "

  27 |     .replace(/(^    at.+[>)\d]$\n?)+/m, '    ...stack trace...');
  28 | 
> 29 |   expect(output).toMatchSnapshot();
  30 | }
  31 | 
  
  at checkMockConsoleLogSnapshot (packages/kbn-test/src/functional_tests/test_helpers.js:29:18)
  at Object.it (packages/kbn-test/src/functional_tests/cli/start_servers/cli.test.js:192:7)

FAIL packages\kbn-test\src\functional_tests\lib\run_cli.test.js
● logs the stack then exits when run function throws an error

expect(value).toMatchSnapshot()

Received value does not match stored snapshot 1.

- Snapshot
+ Received

  "
- �[31mfoo error�[39m
+ foo error
    stack 1
    stack 2
    stack 3
  
  "

  27 |     .replace(/(^    at.+[>)\d]$\n?)+/m, '    ...stack trace...');
  28 | 
> 29 |   expect(output).toMatchSnapshot();
  30 | }
  31 | 
  
  at checkMockConsoleLogSnapshot (packages/kbn-test/src/functional_tests/test_helpers.js:29:18)
  at Object.<anonymous>.it (packages/kbn-test/src/functional_tests/lib/run_cli.test.js:106:3)

● logs no stack trace then exits when stack missing

expect(value).toMatchSnapshot()

Received value does not match stored snapshot 1.

- Snapshot
+ Received

  "
- �[31mfoo error�[39m
+ foo error
    (no stack trace)
  
  "

  27 |     .replace(/(^    at.+[>)\d]$\n?)+/m, '    ...stack trace...');
  28 | 
> 29 |   expect(output).toMatchSnapshot();
  30 | }
  31 | 
  
  at checkMockConsoleLogSnapshot (packages/kbn-test/src/functional_tests/test_helpers.js:29:18)
  at Object.<anonymous>.it (packages/kbn-test/src/functional_tests/lib/run_cli.test.js:120:3)

● does right thing when non-error is thrown

expect(value).toMatchSnapshot()

Received value does not match stored snapshot 1.

- Snapshot
+ Received

  "
- �[31m'foo bar' thrown!�[39m
+ 'foo bar' thrown!
      ...stack trace...
  "

  27 |     .replace(/(^    at.+[>)\d]$\n?)+/m, '    ...stack trace...');
  28 | 
> 29 |   expect(output).toMatchSnapshot();
  30 | }
  31 | 
  
  at checkMockConsoleLogSnapshot (packages/kbn-test/src/functional_tests/test_helpers.js:29:18)
  at Object.<anonymous>.it (packages/kbn-test/src/functional_tests/lib/run_cli.test.js:132:3)

FAIL src\dev\notice\generate_build_notice_text.test.js
● src/dev/build/tasks/notice_file/generate_notice › generateBuildNoticeText() › returns a string

ENOENT: no such file or directory, open 'C:\Program Files\LICENSE'

  23 | export function generateNodeNoticeText(nodeDir, nodeVersion) {
  24 |   const licensePath = resolve(nodeDir, 'LICENSE');
> 25 |   const license = readFileSync(licensePath, 'utf8');
  26 |   return `This product bundles Node.js v${nodeVersion}.\n\n${license}`;
  27 | }
  28 | 
  
  at generateNodeNoticeText (src/dev/notice/generate_node_notice_text.js:25:19)
  at generateBuildNoticeText (src/dev/notice/generate_build_notice_text.js:45:5)

● src/dev/build/tasks/notice_file/generate_notice › generateBuildNoticeText() › returns a string

expect(received).toBe(expected) // Object.is equality

Expected value to be:
  "string"
Received:
  "undefined"

  57 | 
  58 |     it('returns a string', () => {
> 59 |       expect(typeof notice).toBe('string');
  60 |     });
  61 | 
  62 |     it('includes *NOTICE* files from packages', () => {
  
  at Object.it (src/dev/notice/generate_build_notice_text.test.js:59:29)

● src/dev/build/tasks/notice_file/generate_notice › generateBuildNoticeText() › includes NOTICE files from packages

ENOENT: no such file or directory, open 'C:\Program Files\LICENSE'

  23 | export function generateNodeNoticeText(nodeDir, nodeVersion) {
  24 |   const licensePath = resolve(nodeDir, 'LICENSE');
> 25 |   const license = readFileSync(licensePath, 'utf8');
  26 |   return `This product bundles Node.js v${nodeVersion}.\n\n${license}`;
  27 | }
  28 | 
  
  at generateNodeNoticeText (src/dev/notice/generate_node_notice_text.js:25:19)
  at generateBuildNoticeText (src/dev/notice/generate_build_notice_text.js:45:5)

● src/dev/build/tasks/notice_file/generate_notice › generateBuildNoticeText() › includes NOTICE files from packages

expect(received).toEqual(expected)

Expected value to equal:
  StringContaining "Notice me!
"
Received:
  undefined

Difference:

  Comparing two different types of values. Expected string but received undefined.

  61 | 
  62 |     it('includes *NOTICE* files from packages', () => {
> 63 |       expect(notice).toEqual(expect.stringContaining(
  64 |         readFileSync(resolve(NODE_MODULES, 'foo/NOTICE.txt'), 'utf8')
  65 |       ));
  66 |     });
  
  at Object.it (src/dev/notice/generate_build_notice_text.test.js:63:22)

● src/dev/build/tasks/notice_file/generate_notice › generateBuildNoticeText() › includes LICENSE files from packages

ENOENT: no such file or directory, open 'C:\Program Files\LICENSE'

  23 | export function generateNodeNoticeText(nodeDir, nodeVersion) {
  24 |   const licensePath = resolve(nodeDir, 'LICENSE');
> 25 |   const license = readFileSync(licensePath, 'utf8');
  26 |   return `This product bundles Node.js v${nodeVersion}.\n\n${license}`;
  27 | }
  28 | 
  
  at generateNodeNoticeText (src/dev/notice/generate_node_notice_text.js:25:19)
  at generateBuildNoticeText (src/dev/notice/generate_build_notice_text.js:45:5)

● src/dev/build/tasks/notice_file/generate_notice › generateBuildNoticeText() › includes LICENSE files from packages

expect(received).toEqual(expected)

Expected value to equal:
  StringContaining "MIT
"
Received:
  undefined

Difference:

  Comparing two different types of values. Expected string but received undefined.

  67 | 
  68 |     it('includes *LICENSE* files from packages', () => {
> 69 |       expect(notice).toEqual(expect.stringContaining(
  70 |         readFileSync(
  71 |           resolve(NODE_MODULES, 'bar/LICENSE.md'),
  72 |           'utf8'
  
  at Object.it (src/dev/notice/generate_build_notice_text.test.js:69:22)

● src/dev/build/tasks/notice_file/generate_notice › generateBuildNoticeText() › includes the LICENSE file from node

ENOENT: no such file or directory, open 'C:\Program Files\LICENSE'

  23 | export function generateNodeNoticeText(nodeDir, nodeVersion) {
  24 |   const licensePath = resolve(nodeDir, 'LICENSE');
> 25 |   const license = readFileSync(licensePath, 'utf8');
  26 |   return `This product bundles Node.js v${nodeVersion}.\n\n${license}`;
  27 | }
  28 | 
  
  at generateNodeNoticeText (src/dev/notice/generate_node_notice_text.js:25:19)
  at generateBuildNoticeText (src/dev/notice/generate_build_notice_text.js:45:5)

● src/dev/build/tasks/notice_file/generate_notice › generateBuildNoticeText() › includes the LICENSE file from node

ENOENT: no such file or directory, open 'C:\Program Files\LICENSE'

  77 |     it('includes the LICENSE file from node', () => {
  78 |       expect(notice).toEqual(expect.stringContaining(
> 79 |         readFileSync(resolve(NODE_DIR, 'LICENSE'), 'utf8')
  80 |       ));
  81 |     });
  82 | 
  
  at Object.it (src/dev/notice/generate_build_notice_text.test.js:79:9)

● src/dev/build/tasks/notice_file/generate_notice › generateBuildNoticeText() › includes node version

ENOENT: no such file or directory, open 'C:\Program Files\LICENSE'

  23 | export function generateNodeNoticeText(nodeDir, nodeVersion) {
  24 |   const licensePath = resolve(nodeDir, 'LICENSE');
> 25 |   const license = readFileSync(licensePath, 'utf8');
  26 |   return `This product bundles Node.js v${nodeVersion}.\n\n${license}`;
  27 | }
  28 | 
  
  at generateNodeNoticeText (src/dev/notice/generate_node_notice_text.js:25:19)
  at generateBuildNoticeText (src/dev/notice/generate_build_notice_text.js:45:5)

● src/dev/build/tasks/notice_file/generate_notice › generateBuildNoticeText() › includes node version

expect(received).toEqual(expected)

Expected value to equal:
  StringContaining "This product bundles Node.js v8.11.3"
Received:
  undefined

Difference:

  Comparing two different types of values. Expected string but received undefined.

  82 | 
  83 |     it('includes node version', () => {
> 84 |       expect(notice).toEqual(expect.stringContaining(
  85 |         'This product bundles Node.js v8.11.3'
  86 |       ));
  87 |     });
  
  at Object.it (src/dev/notice/generate_build_notice_text.test.js:84:22)

● src/dev/build/tasks/notice_file/generate_notice › generateBuildNoticeText() › includes the noticeFromSource

ENOENT: no such file or directory, open 'C:\Program Files\LICENSE'

  23 | export function generateNodeNoticeText(nodeDir, nodeVersion) {
  24 |   const licensePath = resolve(nodeDir, 'LICENSE');
> 25 |   const license = readFileSync(licensePath, 'utf8');
  26 |   return `This product bundles Node.js v${nodeVersion}.\n\n${license}`;
  27 | }
  28 | 
  
  at generateNodeNoticeText (src/dev/notice/generate_node_notice_text.js:25:19)
  at generateBuildNoticeText (src/dev/notice/generate_build_notice_text.js:45:5)

● src/dev/build/tasks/notice_file/generate_notice › generateBuildNoticeText() › includes the noticeFromSource

expect(received).toEqual(expected)

Expected value to equal:
  StringContaining "NOTICE_FROM_SOURCE"
Received:
  undefined

Difference:

  Comparing two different types of values. Expected string but received undefined.

  88 | 
  89 |     it('includes the noticeFromSource', () => {
> 90 |       expect(notice).toEqual(expect.stringContaining(
  91 |         'NOTICE_FROM_SOURCE'
  92 |       ));
  93 |     });
  
  at Object.it (src/dev/notice/generate_build_notice_text.test.js:90:22)

FAIL packages\kbn-pm\src\utils\projects_tree.test.ts
● handles projects outside root folder

expect(value).toMatchSnapshot()

Received value does not match stored snapshot 1.

- Snapshot
+ Received

  "kibana
  ├── packages
  │   ├── bar
  │   └── foo
- └── ../plugins
+ └── ..\\plugins
      ├── baz
      └── quux"

  40 | 
  41 |   const tree = await renderProjectsTree(rootPath, projects);
> 42 |   expect(tree).toMatchSnapshot();
  43 | });
  44 | 
  45 | test('handles projects within projects outside root folder', async () => {
  
  at Object.<anonymous>.test (packages/kbn-pm/src/utils/projects_tree.test.ts:42:16)

● handles projects within projects outside root folder

expect(value).toMatchSnapshot()

Received value does not match stored snapshot 1.

- Snapshot
+ Received

  "kibana
  ├── packages
  │   ├── bar
  │   └── foo
- └── ../kibana-extra/additional_projects (with-additional-projects)
-     ├── packages/baz
-     └── plugins/quux"
+ └── ..\\kibana-extra\\additional_projects (with-additional-projects)
+     ├── packages\\baz
+     └── plugins\\quux"

  48 | 
  49 |   const tree = await renderProjectsTree(rootPath, projects);
> 50 |   expect(tree).toMatchSnapshot();
  51 | });
  52 | 
  
  at Object.<anonymous>.test (packages/kbn-pm/src/utils/projects_tree.test.ts:50:16)

FAIL src\server\sass\build.test.js
● SASS builder › generates a glob

expect(received).toEqual(expected)

Expected value to equal:
  "/foo/**/*.s{a,c}ss"
Received:
  "\\foo\\**\\*.s{a,c}ss"

  28 |   it('generates a glob', () => {
  29 |     const builder = new Build('/foo/style.sass');
> 30 |     expect(builder.getGlob()).toEqual('/foo/**/*.s{a,c}ss');
  31 |   });
  32 | 
  33 |   it('builds SASS', () => {
  
  at Object.it (src/server/sass/build.test.js:30:31)

● SASS builder › builds SASS

expect(received).toEqual(expected)

Expected value to equal:
  {"file": "/foo/style.sass", "outFile": "/foo/style.css", "sourceComments": true, "sourceMap": true, "sourceMapEmbed": true}
Received:
  {"file": "/foo/style.sass", "outFile": "\\foo\\style.css", "sourceComments": true, "sourceMap": true, "sourceMapEmbed": true}

Difference:

- Expected
+ Received

  Object {
    "file": "/foo/style.sass",
-   "outFile": "/foo/style.css",
+   "outFile": "\\foo\\style.css",
    "sourceComments": true,
    "sourceMap": true,
    "sourceMapEmbed": true,
  }

  36 |     builder.build();
  37 | 
> 38 |     expect(sass.render.mock.calls[0][0]).toEqual({
  39 |       file: '/foo/style.sass',
  40 |       outFile: '/foo/style.css',
  41 |       sourceComments: true,
  
  at Object.it (src/server/sass/build.test.js:38:42)

● SASS builder › has an output file with a different extension

expect(received).toEqual(expected)

Expected value to equal:
  "/foo/style.css"
Received:
  "\\foo\\style.css"

  47 |   it('has an output file with a different extension', () => {
  48 |     const builder = new Build('/foo/style.sass');
> 49 |     expect(builder.outputPath()).toEqual('/foo/style.css');
  50 |   });
  51 | });
  
  at Object.it (src/server/sass/build.test.js:49:34)

FAIL packages\kbn-es\src\utils\find_most_recently_changed.test.js
● returns newest file

expect(received).toEqual(expected)

Expected value to equal:
  "/data/newest.yml"
Received:
  "C:\\data\\newest.yml"

  48 |   expect(file).toEqual('/data/newest.yml');
  49 | });
> 50 | 
  
  at Object.<anonymous>.test (packages/kbn-es/src/utils/find_most_recently_changed.test.js:50:16)

Snapshot Summary
› 18 snapshot tests failed in 4 test suites. Inspect your code changes or re-run jest with -u to update them.

Test Suites: 10 failed, 1 skipped, 442 passed, 452 of 453 total
Tests: 39 failed, 3 skipped, 2591 passed, 2633 total
Snapshots: 18 failed, 757 passed, 775 total
Time: 183.314s
Ran all test suites.

Part of #21315

@tylersmalley
Copy link
Contributor

Closing this out - this is a really old issue and we're really not expecting all unit tests to run on Windows. Additionally, we're working to deprecate Windows development.

@exalate-issue-sync exalate-issue-sync bot reopened this Feb 16, 2022
@exalate-issue-sync exalate-issue-sync bot added impact:needs-assessment Product and/or Engineering needs to evaluate the impact of the change. loe:small Small Level of Effort labels Feb 16, 2022
@exalate-issue-sync exalate-issue-sync bot reopened this Mar 17, 2022
@exalate-issue-sync exalate-issue-sync bot removed the loe:small Small Level of Effort label Mar 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Unit Testing impact:needs-assessment Product and/or Engineering needs to evaluate the impact of the change. Platform:Windows Team:Operations Team label for Operations Team test_infra test
Projects
None yet
Development

No branches or pull requests

2 participants