Skip to content

Commit 8dc509f

Browse files
committed
fix(karma): corrected race condition with RX loading
RX was loaded twice. Once by karma and once by system.js This seemed to create a race condition and Rx.Subject was not available. Serving but not loading seems to fix the issue.
1 parent 72e0b8f commit 8dc509f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

karma-js.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = function(config) {
2121
'node_modules/es6-module-loader/dist/es6-module-loader-sans-promises.src.js',
2222
// Including systemjs because it defines `__eval`, which produces correct stack traces.
2323
'node_modules/systemjs/dist/system.src.js',
24-
'node_modules/rx/dist/rx.js',
24+
{pattern: 'node_modules/rx/dist/rx.js', included: false, watched: false, served: true},
2525
'node_modules/reflect-metadata/Reflect.js',
2626
'tools/build/file2modulename.js',
2727
'test-main.js',

0 commit comments

Comments
 (0)