Description
I'm not yet able to provide much analysis for this issue, but I'll describe the setup and the behaviour as well as I can.
Setup
Using webpack to process the files before running the tests. These are Vue tests using single-file-components, so unfortunately Webpack is a requirement at the moment. I suspect that the output format of the webpack'd test files is a possible cause of this issue.
The output from webpack is then executed using node and the tests run fine. Using the sourcemaps plugin source locations work as well for most errors. However when there is a missing t.end()
I get a repeating error for all of the remaining tests.
Results
The output is below. Basically after it hits the test that fails to end it continues and reports the same error for all the following tests.
Bundle compiled, executing...
loaded
TAP version 13
# renders root element
ok 1 should have exactly one root element
# lib/avoriaz/componentStub creates component stubs by name
ok 2 Adds a named stub.
ok 3 Can add more than one stub.
ok 4 Will retain real components.
ok 5 Can override real components.
ok 6 ComponentStub.rendered is false before render() is called
ok 7 ComponentStub.rendered is true after render() is called
# parsePathTempalte
ok 8 parses './index.vue' as '/'
ok 9 parses './clients.vue' as '/clients'
ok 10 parses './clients/_id.vue' as '/clients/:id?'
ok 11 parses './clients/_name.vue' as '/clients/:name?'
ok 12 parses './clients/_id/index.vue' as '/clients/:id'
ok 13 parses './clients/_name/index.vue' as '/clients/:name'
ok 14 parses './clients/_id/accounts.vue' as '/clients/:id/accounts'
ok 15 parses './my_account.vue' as '/my_account'
ok 16 parses './my-account.vue' as '/my-account'
# parseName
ok 17 parses './index.vue' as 'root'
ok 18 parses './clients.vue' as 'clients'
ok 19 parses './clients/_id.vue' as 'clients/:id'
ok 20 parses './clients/_name.vue' as 'clients/:name'
ok 21 parses './clients/_id/index.vue' as 'clients/:id'
ok 22 parses './clients/_name/index.vue' as 'clients/:name'
ok 23 parses './clients/_id/accounts.vue' as 'clients/:id/accounts'
ok 24 parses './my_account.vue' as 'my_account'
ok 25 parses './my-account.vue' as 'my-account'
# generateRoute
ok 26 Generates a path for the route if there is no route.path.
ok 27 Generates a name for the route if there is no route.name.
ok 28 Sets the component for the route.
ok 29 Uses component route.path if there is one
ok 30 Uses component route.name if there is one.
# buildRoutes
ok 31 creates 2 routes for two non-child keys in the context
ok 32 creates a nested child route
not ok 33 test exited without ending
---
operator: fail
at: process.emit (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/source-map-support/source-map-support.js:431:21)
stack: |-
Error: test exited without ending
at Test.assert [as _assert] (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/tape/lib/test.js:212:54)
at Test.bound [as _assert] (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/tape/lib/test.js:64:32)
at Test.fail (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/tape/lib/test.js:277:10)
at Test.bound [as fail] (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/tape/lib/test.js:64:32)
at Test._exit (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/tape/lib/test.js:178:14)
at Test.bound (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/tape/lib/test.js:64:32)
at process.<anonymous> (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/tape/index.js:86:19)
at emitOne (events.js:115:13)
at process.emit (events.js:210:7)
at process.emit (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/source-map-support/source-map-support.js:431:21)
...
not ok 34 test exited without ending
---
operator: fail
at: process.emit (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/source-map-support/source-map-support.js:431:21)
stack: |-
Error: test exited without ending
at Test.assert [as _assert] (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/tape/lib/test.js:212:54)
at Test.bound [as _assert] (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/tape/lib/test.js:64:32)
at Test.fail (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/tape/lib/test.js:277:10)
at Test.bound [as fail] (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/tape/lib/test.js:64:32)
at Test._exit (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/tape/lib/test.js:178:14)
at Test.bound (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/tape/lib/test.js:64:32)
at process.<anonymous> (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/tape/index.js:86:19)
at emitOne (events.js:115:13)
at process.emit (events.js:210:7)
at process.emit (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/source-map-support/source-map-support.js:431:21)
...
not ok 35 test exited without ending
---
operator: fail
at: process.emit (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/source-map-support/source-map-support.js:431:21)
stack: |-
Error: test exited without ending
at Test.assert [as _assert] (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/tape/lib/test.js:212:54)
at Test.bound [as _assert] (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/tape/lib/test.js:64:32)
at Test.fail (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/tape/lib/test.js:277:10)
at Test.bound [as fail] (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/tape/lib/test.js:64:32)
at Test._exit (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/tape/lib/test.js:178:14)
at Test.bound (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/tape/lib/test.js:64:32)
at process.<anonymous> (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/tape/index.js:86:19)
at emitOne (events.js:115:13)
at process.emit (events.js:210:7)
at process.emit (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/source-map-support/source-map-support.js:431:21)
...
not ok 36 test exited without ending
---
operator: fail
at: process.emit (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/source-map-support/source-map-support.js:431:21)
stack: |-
Error: test exited without ending
at Test.assert [as _assert] (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/tape/lib/test.js:212:54)
at Test.bound [as _assert] (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/tape/lib/test.js:64:32)
at Test.fail (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/tape/lib/test.js:277:10)
at Test.bound [as fail] (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/tape/lib/test.js:64:32)
at Test._exit (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/tape/lib/test.js:178:14)
at Test.bound (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/tape/lib/test.js:64:32)
at process.<anonymous> (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/tape/index.js:86:19)
at emitOne (events.js:115:13)
at process.emit (events.js:210:7)
at process.emit (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/source-map-support/source-map-support.js:431:21)
...
### <removed several more repeated tests for length>
not ok 62 test exited without ending
---
operator: fail
at: process.emit (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/source-map-support/source-map-support.js:431:21)
stack: |-
Error: test exited without ending
at Test.assert [as _assert] (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/tape/lib/test.js:212:54)
at Test.bound [as _assert] (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/tape/lib/test.js:64:32)
at Test.fail (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/tape/lib/test.js:277:10)
at Test.bound [as fail] (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/tape/lib/test.js:64:32)
at Test._exit (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/tape/lib/test.js:178:14)
at Test.bound (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/tape/lib/test.js:64:32)
at process.<anonymous> (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/tape/index.js:86:19)
at emitOne (events.js:115:13)
at process.emit (events.js:210:7)
at process.emit (/Users/chrisnicola/src/wealthbar-koa-starter/node_modules/source-map-support/source-map-support.js:431:21)
...
1..62
# tests 62
# pass 32
# fail 30
✨ Done in 4.50s.
The stack trace is also a bit odd, in that it doesn't show the location of the test that failed to end.