Skip to content

Instantly share code, notes, and snippets.

@stelcheck
Created September 1, 2017 04:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stelcheck/75fbc8ecd36de7b43ad92791f8c1a4e0 to your computer and use it in GitHub Desktop.
Save stelcheck/75fbc8ecd36de7b43ad92791f8c1a4e0 to your computer and use it in GitHub Desktop.
MAGE 1.3: Dynamic configuration
// Pre-load your MAGE app's configuration
const config = require('mage/lib/config');
// Disable MMRP and service discovery during tests
config.set('server.serviceDiscovery', false)
config.set('server.mmrp', false)
// Load your MAGE app
const game = require('../lib');
describe('game', function () {
// continue with your test code
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment