包.js:
onUse
api.imply('launch-screen', 'client')
onTest
api.use('jamielob:reloader', 'client')
重载器.js:
LaunchScreen.hold();
reloader-tests.js
console.log(Reloader);
LaunchScreen
由launch-screen
包导出。
当我运行测试 ( meteor test-packages ./ --driver-package practicalmeteor:mocha
) 时,我在浏览器控制台中得到了这个:
reloader.js:1
Uncaught ReferenceError: LaunchScreen is not defined
完整回购: