Meteor Test: window is not defined

Test Script

meteor test --port 3100 --driver-package practicalmeteor:mocha

This results in this:

Unable to resolve some modules:

  "react/addons" in /C/Users/dev/Projects/Project/node_modules/enzyme/build/react-compat.js (web.browser)
  "react/lib/ReactContext" in /C/Users/dev/Projects/Project/node_modules/enzyme/build/react-compat.js (web.browser)
  "react/lib/ExecutionEnvironment" in /C/Users/dev/Projects/Project/node_modules/enzyme/build/react-compat.js (web.browser)
  "react/lib/ReactTestUtils" in /C/Users/dev/Projects/Project/node_modules/react-addons-test-utils/index.js (web.browser)

If you notice problems related to these missing modules, consider running:

  meteor npm install --save react

W20170518-17:08:07.770(-4)? (STDERR) C:\Users\dev\AppData\Local\.meteor\packages\meteor-tool\1.4.4_2\mt-os.windows.x86_32\dev_bundle\server-lib\node_modules\fibers\future.js:280
W20170518-17:08:07.825(-4)? (STDERR)                                            throw(ex);
W20170518-17:08:07.826(-4)? (STDERR)                                            ^
W20170518-17:08:07.827(-4)? (STDERR) 
W20170518-17:08:07.827(-4)? (STDERR) ReferenceError: window is not defined
W20170518-17:08:07.828(-4)? (STDERR)     at Object.logStr (C:\Users\dev\Projects\Project\node_modules\sweetalert\lib\modules\utils.js:37:7)
W20170518-17:08:07.828(-4)? (STDERR)     at Object.<anonymous> (C:\Users\dev\Projects\Project\node_modules\sweetalert\lib\sweetalert.js:301:48)
W20170518-17:08:07.829(-4)? (STDERR)     at Module._compile (module.js:409:26)
W20170518-17:08:07.829(-4)? (STDERR)     at Object.Module._extensions..js (module.js:416:10)
W20170518-17:08:07.829(-4)? (STDERR)     at Module.load (module.js:343:32)
W20170518-17:08:07.830(-4)? (STDERR)     at Function.Module._load (module.js:300:12)
W20170518-17:08:07.831(-4)? (STDERR)     at Module.require (module.js:353:17)
W20170518-17:08:07.831(-4)? (STDERR)     at require (internal/module.js:12:17)
W20170518-17:08:07.832(-4)? (STDERR)     at npmRequire (C:\Users\dev\AppData\Local\Temp\meteor-test-run17fjdo3\.meteor\local\build\programs\server\npm-require.js:133:10)
W20170518-17:08:07.832(-4)? (STDERR)     at Module.Mp.useNode (packages\modules-runtime.js:527:20)

Not familiar with how meteor runs these tests, but why is the package sweetalerts triggering this?

Why is it giving me unresolved modules when they’re installed?