|
| 1 | +exports['can test test: cypress/tests/e2e/compile-error.js 1'] = ` |
| 2 | +
|
| 3 | +==================================================================================================== |
| 4 | +
|
| 5 | + (Run Starting) |
| 6 | +
|
| 7 | + ┌────────────────────────────────────────────────────────────────────────────────────────────────┐ |
| 8 | + │ Cypress: 1.2.3 │ |
| 9 | + │ Browser: FooBrowser 88 │ |
| 10 | + │ Specs: 1 found (e2e/compile-error.js) │ |
| 11 | + │ Searched: cypress/tests/e2e/compile-error.js │ |
| 12 | + └────────────────────────────────────────────────────────────────────────────────────────────────┘ |
| 13 | +
|
| 14 | +
|
| 15 | +──────────────────────────────────────────────────────────────────────────────────────────────────── |
| 16 | + |
| 17 | + Running: e2e/compile-error.js (1 of 1) |
| 18 | +
|
| 19 | +Oops...we found an error preparing this test file: |
| 20 | +
|
| 21 | + cypress/tests/e2e/compile-error.js |
| 22 | +
|
| 23 | +The error was: |
| 24 | +
|
| 25 | +./cypress/tests/e2e/compile-error.js |
| 26 | +Module build failed (from ./node_modules/babel-loader/lib/index.js): |
| 27 | +SyntaxError: /[cwd]/cypress/tests/e2e/compile-error.js: Unexpected token, expected "," (12:27) |
| 28 | +
|
| 29 | + 10 | |
| 30 | + 11 | describe('foo', ()=>{ |
| 31 | +> 12 | it('has syntax error' () => {}}) |
| 32 | + | ^ |
| 33 | + 13 | }) |
| 34 | + 14 | |
| 35 | +
|
| 36 | + @ multi ./cypress/tests/e2e/compile-error.js main[0] |
| 37 | +
|
| 38 | +This occurred while Cypress was compiling and bundling your test code. This is usually caused by: |
| 39 | +
|
| 40 | +- A missing file or dependency |
| 41 | +- A syntax error in the file or one of its dependencies |
| 42 | +
|
| 43 | +Fix the error in your code and re-run your tests. |
| 44 | +
|
| 45 | + (Results) |
| 46 | +
|
| 47 | + ┌────────────────────────────────────────────────────────────────────────────────────────────────┐ |
| 48 | + │ Tests: 0 │ |
| 49 | + │ Passing: 0 │ |
| 50 | + │ Failing: 1 │ |
| 51 | + │ Pending: 0 │ |
| 52 | + │ Skipped: 0 │ |
| 53 | + │ Screenshots: 0 │ |
| 54 | + │ Video: true │ |
| 55 | + │ Duration: X seconds │ |
| 56 | + │ Spec Ran: e2e/compile-error.js │ |
| 57 | + └────────────────────────────────────────────────────────────────────────────────────────────────┘ |
| 58 | +
|
| 59 | +
|
| 60 | + (Video) |
| 61 | +
|
| 62 | + - Started processing: Compressing to 32 CRF |
| 63 | + - Finished processing: /[cwd]/cypress/videos/e2e/compile-error.js.mp4 (X second) |
| 64 | +
|
| 65 | +
|
| 66 | +==================================================================================================== |
| 67 | +
|
| 68 | + (Run Finished) |
| 69 | +
|
| 70 | +
|
| 71 | + Spec Tests Passing Failing Pending Skipped |
| 72 | + ┌────────────────────────────────────────────────────────────────────────────────────────────────┐ |
| 73 | + │ ✖ e2e/compile-error.js XX:XX - - 1 - - │ |
| 74 | + └────────────────────────────────────────────────────────────────────────────────────────────────┘ |
| 75 | + ✖ 1 of 1 failed (100%) XX:XX - - 1 - - |
| 76 | +
|
| 77 | +
|
| 78 | +` |
0 commit comments