Comments (3)
The function is only intended to run on the server. You would define a Meteor method that calls the resetDatabase function. Then you can call the Meteor method from the client side.
We could define a Meteor method for this in this package.
from cleaner.
I haven't read the README thoroughly enough:
You can do this inside a Meteor method and call it from your client tests.
I think defining a method in the package sounds like a good idea. Will submit a PR.
from cleaner.
Fixed by #10
from cleaner.
Related Issues (16)
- Have a way to disable log output HOT 1
- Use testOnly flag
- Change NODE_ENV check to be against 'production' HOT 2
- ReferenceError: MongoInternals is not defined HOT 2
- [Meteor 1.3] MongoError: cannot remove from a capped collection HOT 4
- Method arguments are not checked HOT 2
- MongoInternals is not defined HOT 1
- `resetDatabase` fails to run client-side for projects with `audit-argument-checks` package added HOT 1
- Feature Request: Whitelist Collections HOT 2
- resetDatabase cause error on meteor 1.6.1 HOT 13
- Meteor 2.6.1 Issue: [MONGODB DRIVER] Warning: collection.remove is deprecated. Use deleteOne, deleteMany, or bulkWrite instead. HOT 3
- Migrate to async (Meteor 2.8 and onwards) HOT 1
- Add tests HOT 1
- New release? HOT 1
- Doesn't work with capped collections 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 cleaner.