Skip to content

Check whether Babel returned a source map #1804

Closed
@isnifer

Description

@isnifer

Prerequisites

installed Source Map Support

Description

With installed Source Map Support tests in async function won't show errors correctly
Screenshot WITH installed source maps support
Screenshot WITHOUT installed source maps support

Test Source

t.falsy(1, 'List of nearby stores should not be empty')

Error Message & Stack Trace

  ✔ 02_NearbyStoreList › Nearby Store List (1.5s)
Uncaught Exception: __tests__/scenarios/07_StoreTabView.test.js
  TypeError: Cannot read property 'sections' of null
  new SourceMapConsumer (node_modules/ava/node_modules/source-map/lib/source-map-consumer.js:20:20)
mapSourcePosition (node_modules/ava/node_modules/source-map-support/source-map-support.js:191:14)
wrapCallSite (node_modules/ava/node_modules/source-map-support/source-map-support.js:359:20)
node_modules/ava/node_modules/source-map-support/source-map-support.js:394:26
Function.prepareStackTrace (node_modules/ava/node_modules/source-map-support/source-map-support.js:393:24)


  ✖ Test results were not received from __tests__/scenarios/07_StoreTabView.test.js

  1 test passed [16:49:31]
  2 uncaught exceptions

Config

Copy the relevant section from package.json:

{
  "files": [
    "__tests__/scenarios/*.test.js"
  ],
  "sources": [
    "web/index.js"
  ],
  "require": [
    "./__tests__/setup/tape.js"
  ],
  "failFast": true,
  "failWithoutAssertions": true,
  "compileEnhancements": false,
  "babel": "inherit"
}

Command-Line Arguments

Copy your npm build scripts or the ava command used:

ava --vebose --watch

Environment

Tell us which operating system you are using, as well as which versions of Node.js, npm, and AVA. Run the following to get it quickly:

Node.js v9.4.0
darwin 17.5.0
ava --version 0.25.0
npm --version 6.0.1

Metadata

Metadata

Assignees

Labels

bugcurrent functionality does not work as desired

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions