Anywhere but publish functions accountsClientOrServer.userId()
meteor test-packages Test Meteor packages, either by name, or by directory. Not specifying an argument will run tests for all local packages
Anywhere new Meteor.Error(error, [reason], [details]) import
Unit Tests Set up your tests with the Package.onTest handler, which has an interface that's parallel to that of
Client Tracker.active import { Tracker } from 'meteor/tracker'
Anywhere Meteor.users import { Meteor } from 'meteor/meteor'
Server this.unblock()
Server accountsServer.validateLoginAttempt(func)
Anywhere accountsClientOrServer.onLogin(func)
Package Definition Define dependencies and expose package methods with the Package.onUse handler. This section lets
Page 8 of 28