Giter Site home page Giter Site logo

Comments (6)

amavisca avatar amavisca commented on July 18, 2024

You can filter individual tests with the jasmine --filter="some string"or specify a file name with jasmine path/to/spec/file.js.

There are some docs here:
http://jasmine.github.io/edge/node.html#section-Running_tests

You can also use fit and fdescribe to focus within your code:
http://jasmine.github.io/edge/focused_specs.html

Feel free to close this if these solved your issue!

from jasmine-npm.

indigo0086 avatar indigo0086 commented on July 18, 2024

I think there is a misunderstanding. The problem is that the command requires a variable set to point to a jasmine.json file which I feel for most cases is redundant. I'd prefer a solution as simple as jasmine path/to/spec/**/*.spec.js

from jasmine-npm.

amavisca avatar amavisca commented on July 18, 2024

@indigo0086
Yep, you're right. We started by adding these features in one by one and originally depended on having that json file around. As we've added more CLI options it seems like we're at the point where that file can be optional. I'd be happy to look at a PR that does that.

from jasmine-npm.

jasonkarns avatar jasonkarns commented on July 18, 2024

Probably as a separate issue, but I would have much preferred to see a jasmine property in package.json that contained all the jasmine-specific config, rather than Yet Another Config Fileβ„’

from jasmine-npm.

slackersoft avatar slackersoft commented on July 18, 2024

@jasonkarns That sounds reasonable as well. As @amavisca mentioned some of this grew a bit organically based on how we had configured some of the other Jasmine repositories. We would be happy to review a pull request that allows Jasmine to read its config from the including project's package.json file. For now it should leave the jasmine.json file parsing as a fallback if there is no jasmine config in package.json

from jasmine-npm.

slackersoft avatar slackersoft commented on July 18, 2024

Closed with #74

from jasmine-npm.

Related Issues (20)

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.