log error from spec require in test_bundle.js
What does this MR do?
log error from spec require in test_bundle.js
Today I ran into an issue where a require was failing, but I couldnt see why, this fixes that.
Are there points in the code the reviewer needs to double check?
Why was this MR needed?
Screenshots (if relevant)
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Documentation created/updated -
API support added - Tests
-
Added for this feature/bug -
All builds are passing
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Branch has no merge conflicts with master
(if it does - rebase it please) -
Squashed related commits together
What are the relevant issue numbers?
Merge request reports
Activity
Care to take a look @mikegreiling?
assigned to @mikegreiling
21 21 testsContext(path); 22 22 } catch (err) { 23 23 console.error('[ERROR] Unable to load spec: ', path); 24 console.error(err); 24 25 describe('Test bundle', function () { 25 26 it(`includes '${path}'`, function () { 26 27 expect(err).toBeNull(); @mikegreiling If it was meant to, it didn't. :(
assigned to @lbennett
@mikegreiling It was local, I think I know how to repro it though, I was writing a test for a particularly poopy constructor.
@mikegreiling Sure :) I'll push a branch that repros it for you to see.
@mikegreiling I setup an example here: https://gitlab.com/gitlab-org/gitlab-ce/commits/testsContext-error-example-for-mike
Turns out there is actually already a spec that isn't being required successfully (my balsamiq integration spec). So looks like this isn't failing correctly either. I think we just need to
throw
instead of having thatdescribe
+it
block?Edited by Luke "Jared" Bennett