Skip to content

Commit e6514a2

Browse files
committed
Checking if runningTests not defined or set to false.
In embroider build runningTests is not defined where as in ember-cli build it is set to false
1 parent 88fab39 commit e6514a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/utilities/fastboot-app-module.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = function fastbootAppModule(prefix, configAppAsString, isModuleU
1212
return [
1313
"",
1414
"if (typeof FastBoot === 'undefined') {",
15-
" if (typeof runningTests === 'undefined') {",
15+
" if (typeof runningTests === 'undefined' || !runningTests) {",
1616
" require('{{MODULE_PREFIX}}/" + appSuffix + "')['default'].create({{CONFIG_APP}});",
1717
" }",
1818
"}",

0 commit comments

Comments
 (0)