Git Product home page Git Product logo

Comments (3)

SimonSimCity avatar SimonSimCity commented on September 22, 2024

Well ... the tests should automatically restart every time Meteor restarts. If meteor doesn't restart, it's the responsibility of the utility file watching for changes in the files.

Either way, this package is only responsible of initialising all tests included in the files Meteor loads (https://guide.meteor.com/testing.html#test-modes) and runs them.

Deciding when to restart Meteor (and thereby rerun the tests) or which files to load is not the responsibility of this package, but of Meteor. It might even be the responsibility of the typescript package, which doesn't seem to tell Meteor that the file containing the implementation actually is required for the test-file as well.

Btw ... do you define a testing-module or a main-module in your package.json file?

  "meteor": {
     "mainModule": {
       "client": "client/main.js",
       "server": "server/main.js"
     },
     "testModule": "tests/main.js"
   }

from meteor-mocha.

perbergland avatar perbergland commented on September 22, 2024

Oh OK so for Javascript this works properly. Good to know.

Do you know if Meteor builds a dependency graph to only run tests that are affected for Javascript or does it always re-run all tests for Javascript?
The Meteor compiler API has no provision for adding dependencies as far as I have been able to tell.

As for main-module, no I havenโ€™t added that section. What does it change?

from meteor-mocha.

SimonSimCity avatar SimonSimCity commented on September 22, 2024

I just checked it - it works on fine on files included in one of my *.test.js files, but if they're not included, the system won't watch it. I have a mainModule but not a testModule defined in my package.json file.

The section mainModule and testModule in the package.json changes the way files are included, which might affect the way they are monitored also. All this can have its share to this problem you're facing. It could even be that the package refapp:[email protected] doens't tell Meteor which files to watch and which not.

Closing, because this is not related to this package but on meteor and yields therefore to all test-runners - not only for this one. Please open a ticket on https://github.com/meteor/meteor or https://github.com/ref-app/meteor-typescript.

from meteor-mocha.

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.