/* eslint-env mocha */ /* eslint-disable import/no-absolute-path */ // `meteor test` does NOT load server/main.js, so the app's // server/00-collection2-init.js never runs and Mongo.Collection.prototype // .attachSchema stays unpatched — every collection with a schema then throws at // import time. This file mirrors that init. The `00-` prefix makes Meteor load // it before the other test/server/*.test.js files (same-directory files load // alphabetically), so attachSchema exists before any collection is imported. // It intentionally defines no tests. import 'meteor/aldeed:collection2/static.js'; // Force accounts-base to initialize so Meteor.users exists for method tests // (server/main.js, which normally pulls in the accounts setup, is not loaded). import 'meteor/accounts-base';