Giter VIP home page Giter VIP logo

jasmine-slow-reporter's People

Contributors

agirorn avatar

Watchers

 avatar  avatar  avatar

jasmine-slow-reporter's Issues

Cannot read property 'filename' of undefined

About halfway through the tests, I got this error 3 times and then the tests ended:

An error was thrown in afterAll
TypeError: Cannot read property 'filename' of undefined
    at <Jasmine>
    at Object.specDone (http://localhost:9876/_karma_webpack_/webpack:/node_modules/jasmine-slow-reporter/lib/jasmine-slow-reporter.js:29:1)
    at <Jasmine>
    at ZoneQueueRunner.webpackJsonp../node_modules/zone.js/dist/jasmine-patch.js.jasmine.QueueRunner.ZoneQueueRunner.execute (http://localhost:9876/_karma_webpack_/webpack:/node_modules/zone.js/dist/jasmine-patch.js:157:1)
    at <Jasmine>

This is using latest Jasmine (3.1).

Broken in node 8

I keep getting an error when running this in node 8. Other versions seam to be working fine for me.

/path/to/repo/node_modules/jasmine-slow-reporter/lib/find-spec-file.js:13
  return line.filename.match('.spec.js');
                      ^

TypeError: Cannot read property 'match' of null
    at isSpec (/path/to/repo/node_modules/jasmine-slow-reporter/lib/find-spec-file.js:13:23)
    at /path/to/repo/node_modules/underscore/underscore.js:227:11
    at Function._.each._.forEach (/path/to/repo/node_modules/underscore/underscore.js:153:9)
    at _.filter._.select (/path/to/repo/node_modules/underscore/underscore.js:226:7)
    at findSpecFile (/path/to/repo/node_modules/jasmine-slow-reporter/lib/find-spec-file.js:9:16)
    at Env.jasmineSlowReporterIt [as it] (/path/to/repo/node_modules/jasmine-slow-reporter/lib/it-factory.js:10:40)
    at addSpecsToSuite (/path/to/repo/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:1113:14)
    at Env.describe (/path/to/repo/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:1074:7)
    at describe (/path/to/repo/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:4399:18)
    at Object.<anonymous> (/path/to/repo/spec/unit/barcode.spec.js:15:1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.