Comments (3)
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.
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.
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)
- browser-shim.js prevents nice console logs HOT 1
- Puppeteer app-test yields "TypeError: Cannot read property 'call' of undefined"
- texts from `describe` and `it` blocks are not printed when using browser `nightmare` HOT 3
- UnhandledPromiseRejectionWarning: Error: Protocol error (Runtime.callFunctionOn): Promise was collected HOT 4
- Running tests do not finish after the end inside CI HOT 3
- How to setup a global hook for database prefills (fixtures) HOT 2
- XML report output is missing for client tests HOT 1
- Need upgrade to dependencies to work with Meteor 2.3 HOT 1
- Bump supported dependency versions of lmieulet:meteor-coverage to 4.0.0 HOT 2
- Error: Timeout of 2000ms exceeded
- CSS missing during client side tests due to brower-policy HOT 1
- No tests running in parallel HOT 1
- Allow running specific server tests or hooks after client tests in full app mode
- Run test for multiple specific filename
- Move tests from CI to GitHub actions HOT 3
- The meteor http package is deprecated HOT 4
- Client unit tests not working on Meteor3 with beta HOT 17
- Dependency on jquery? HOT 6
- Eager loading of tests does not work as described in the Meteor guide HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from meteor-mocha.