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

Robot loadFile and parseHelp tests and method improvements #1378

Closed
wants to merge 6 commits into from

Conversation

timkinnane
Copy link

This PR will address several issues in hubot v3 script loading.

  1. Can't parse documentation in js files loadFile unit tests passing when real usage fails #1375
  2. Can't load coffee script files (to support legacy scripts) robot.loadFile can't require coffeescript #1376
  3. Warnings are misleading and some errors silent robot.loadFile warnings are misleading and some errors silent #1377
  4. Can't process es6 exports Support es6 exports without warning #1374

Currently just adds failing tests for #1375

timkinnane added 6 commits July 29, 2017 15:46
replace mock test script function with a real script file and pass it through `loadFile` without mocking `parseHelp` to show script loading fails on comment parsing - re issue hubotio#1375
trying to parseHelp for a coffeescript file causes unexpexted syntax errors becuase coffe-script is not registered - causes hubotio#1376
fixes hubotio#1376 - also passing new tests for coffescript documentation with parseHelp
fixes hubotio#1375 - also tweaked the existing support to accept indented comments
Unsupported extensions were silently omitted from loadFile, this made it hard to debug. The accepted extensions were also incorrect due to use of require.extensions which is depreciated and contained types that are incompatible with hubot to load as scripts - fixes hubotio#1377 related hubotio#1355
@stale
Copy link

stale bot commented Oct 27, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant