Created
September 1, 2017 04:46
-
-
Save stelcheck/75fbc8ecd36de7b43ad92791f8c1a4e0 to your computer and use it in GitHub Desktop.
MAGE 1.3: Dynamic configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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