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

scripts/mocha no longer runs existing tests #18623

Closed
nyurik opened this issue Apr 26, 2018 · 3 comments
Closed

scripts/mocha no longer runs existing tests #18623

nyurik opened this issue Apr 26, 2018 · 3 comments
Labels
bug Fixes for quality problems that affect the customer experience Feature:Visualizations Generic visualization features (in case no more specific feature label is available) regression Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc test

Comments

@nyurik
Copy link
Contributor

nyurik commented Apr 26, 2018

$ node scripts/mocha src/core_plugins/vega/public/data_model/__tests__/vega_parser.js 
/home/yurik/dev/elastic/kibana/node_modules/react-ace/node_modules/brace/index.js:20265
                    if (!window.ace)
                    ^

ReferenceError: window is not defined
    at /home/yurik/dev/elastic/kibana/node_modules/react-ace/node_modules/brace/index.js:20265:21
    at _acequire (/home/yurik/dev/elastic/kibana/node_modules/react-ace/node_modules/brace/index.js:88:37)
    at Object.acequire (/home/yurik/dev/elastic/kibana/node_modules/react-ace/node_modules/brace/index.js:93:26)
    at /home/yurik/dev/elastic/kibana/node_modules/react-ace/node_modules/brace/index.js:20260:21
    at Object.<anonymous> (/home/yurik/dev/elastic/kibana/node_modules/react-ace/node_modules/brace/index.js:20270:15)
    at Module._compile (module.js:652:30)
    at Module._extensions..js (module.js:663:10)
    at Object.require.extensions.(anonymous function) [as .js] (/home/yurik/dev/elastic/kibana/node_modules/babel-register/lib/node.js:152:7)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/yurik/dev/elastic/kibana/node_modules/react-ace/lib/ace.js:11:14)
    at Module._compile (module.js:652:30)
    at Module._extensions..js (module.js:663:10)
    at Object.require.extensions.(anonymous function) [as .js] (/home/yurik/dev/elastic/kibana/node_modules/babel-register/lib/node.js:152:7)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/yurik/dev/elastic/kibana/node_modules/react-ace/lib/index.js:8:12)
    at Module._compile (module.js:652:30)
    at Module._extensions..js (module.js:663:10)
    at Object.require.extensions.(anonymous function) [as .js] (/home/yurik/dev/elastic/kibana/node_modules/babel-register/lib/node.js:152:7)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/yurik/dev/elastic/kibana/node_modules/@elastic/eui/lib/components/code_editor/code_editor.js:24:17)
    at Module._compile (module.js:652:30)
    at Module._extensions..js (module.js:663:10)
    at Object.require.extensions.(anonymous function) [as .js] (/home/yurik/dev/elastic/kibana/node_modules/babel-register/lib/node.js:152:7)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/yurik/dev/elastic/kibana/node_modules/@elastic/eui/lib/components/code_editor/index.js:7:20)
    at Module._compile (module.js:652:30)
    at Module._extensions..js (module.js:663:10)
    at Object.require.extensions.(anonymous function) [as .js] (/home/yurik/dev/elastic/kibana/node_modules/babel-register/lib/node.js:152:7)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/yurik/dev/elastic/kibana/node_modules/@elastic/eui/lib/components/index.js:118:20)
    at Module._compile (module.js:652:30)
    at Module._extensions..js (module.js:663:10)
    at Object.require.extensions.(anonymous function) [as .js] (/home/yurik/dev/elastic/kibana/node_modules/babel-register/lib/node.js:152:7)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/yurik/dev/elastic/kibana/node_modules/@elastic/eui/lib/index.js:7:19)
    at Module._compile (module.js:652:30)
    at Module._extensions..js (module.js:663:10)
    at Object.require.extensions.(anonymous function) [as .js] (/home/yurik/dev/elastic/kibana/node_modules/babel-register/lib/node.js:152:7)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/yurik/dev/elastic/kibana/src/core_plugins/vega/public/vega_view/vega_base_view.js:5:1)
    at Module._compile (module.js:652:30)
    at loader (/home/yurik/dev/elastic/kibana/node_modules/babel-register/lib/node.js:144:5)
    at Object.require.extensions.(anonymous function) [as .js] (/home/yurik/dev/elastic/kibana/node_modules/babel-register/lib/node.js:154:7)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/yurik/dev/elastic/kibana/src/core_plugins/vega/public/data_model/ems_file_parser.js:1:1)
    at Module._compile (module.js:652:30)
    at loader (/home/yurik/dev/elastic/kibana/node_modules/babel-register/lib/node.js:144:5)
    at Object.require.extensions.(anonymous function) [as .js] (/home/yurik/dev/elastic/kibana/node_modules/babel-register/lib/node.js:154:7)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/yurik/dev/elastic/kibana/src/core_plugins/vega/public/data_model/vega_parser.js:9:1)
    at Module._compile (module.js:652:30)
    at loader (/home/yurik/dev/elastic/kibana/node_modules/babel-register/lib/node.js:144:5)
    at Object.require.extensions.(anonymous function) [as .js] (/home/yurik/dev/elastic/kibana/node_modules/babel-register/lib/node.js:154:7)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/yurik/dev/elastic/kibana/src/core_plugins/vega/public/data_model/__tests__/vega_parser.js:3:1)
    at Module._compile (module.js:652:30)
    at loader (/home/yurik/dev/elastic/kibana/node_modules/babel-register/lib/node.js:144:5)
    at Object.require.extensions.(anonymous function) [as .js] (/home/yurik/dev/elastic/kibana/node_modules/babel-register/lib/node.js:154:7)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at /home/yurik/dev/elastic/kibana/node_modules/mocha/lib/mocha.js:230:27
    at Array.forEach (<anonymous>)
    at Mocha.loadFiles (/home/yurik/dev/elastic/kibana/node_modules/mocha/lib/mocha.js:227:14)
    at Mocha.run (/home/yurik/dev/elastic/kibana/node_modules/mocha/lib/mocha.js:495:10)
    at Object.<anonymous> (/home/yurik/dev/elastic/kibana/node_modules/mocha/bin/_mocha:460:18)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Function.Module.runMain (module.js:693:10)
    at startup (bootstrap_node.js:188:16)
    at bootstrap_node.js:609:3
@kobelb kobelb added Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc Feature:Visualizations Generic visualization features (in case no more specific feature label is available) labels Aug 7, 2018
@kobelb
Copy link
Contributor

kobelb commented Aug 7, 2018

@elastic/kibana-platform @elastic/kibana-visualizations not sure who is to blame for this one, so I assigned it to both of you.

@kobelb kobelb added the bug Fixes for quality problems that affect the customer experience label Aug 7, 2018
@epixa
Copy link
Contributor

epixa commented Aug 8, 2018

@nyurik Did that command ever work? It looks like you're trying to execute a browser test (accessing window) in node.js.

@nyurik
Copy link
Contributor Author

nyurik commented Aug 8, 2018

hmm, not sure TBH. This one has been a long time ago. I will close it for now. Thx!

@nyurik nyurik closed this as completed Aug 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Visualizations Generic visualization features (in case no more specific feature label is available) regression Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc test
Projects
None yet
Development

No branches or pull requests

3 participants