Closed marcoturi closed 6 years ago
Hi, what is broken? What is the complete error message? Does the app work and it's just the tests that fail?
@adamkleingit This afternoon i'll send you the error message. The app does not work also.
here are the stack traces:
✖ Should return 1 after first answer
HeadlessChrome 0.0.0 (Mac OS X 10.12.6) Exercise Model: .lastQuestionAnswered Should return 1 after first answer FAILED
Expected false to be truthy.
at UserContext.<anonymous> (webpack:///src/core/services/exercises/models/exercise.model.spec.ts:32:0 <- config/karma-shim.js:174327:58)
at ZoneDelegate.invoke (webpack:///node_modules/zone.js/dist/zone.js:392:0 <- config/karma-shim.js:132240:26)
at ProxyZoneSpec.onInvoke (webpack:///node_modules/zone.js/dist/proxy.js:79:0 <- config/karma-shim.js:135141:39)
at ZoneDelegate.invoke (webpack:///node_modules/zone.js/dist/zone.js:391:0 <- config/karma-shim.js:132239:32)
at Zone.run (webpack:///node_modules/zone.js/dist/zone.js:142:0 <- config/karma-shim.js:131990:43)
at UserContext.<anonymous> (webpack:///node_modules/zone.js/dist/jasmine-patch.js:104:0 <- config/karma-shim.js:135349:34)
at ZoneQueueRunner.jasmine.QueueRunner.ZoneQueueRunner.execute (webpack:///node_modules/zone.js/dist/jasmine-patch.js:132:0 <- config/karma-shim.js:135377:42)
at ZoneDelegate.invokeTask (webpack:///node_modules/zone.js/dist/zone.js:425:0 <- config/karma-shim.js:132273:31)
at Zone.runTask (webpack:///node_modules/zone.js/dist/zone.js:192:0 <- config/karma-shim.js:132040:47)
at drainMicroTaskQueue (webpack:///node_modules/zone.js/dist/zone.js:602:0 <- config/karma-shim.js:132450:35)
at <anonymous>
Expected 0 to be 1.
at UserContext.<anonymous> (webpack:///src/core/services/exercises/models/exercise.model.spec.ts:33:0 <- config/karma-shim.js:174328:56)
at ZoneDelegate.invoke (webpack:///node_modules/zone.js/dist/zone.js:392:0 <- config/karma-shim.js:132240:26)
at ProxyZoneSpec.onInvoke (webpack:///node_modules/zone.js/dist/proxy.js:79:0 <- config/karma-shim.js:135141:39)
at ZoneDelegate.invoke (webpack:///node_modules/zone.js/dist/zone.js:391:0 <- config/karma-shim.js:132239:32)
at Zone.run (webpack:///node_modules/zone.js/dist/zone.js:142:0 <- config/karma-shim.js:131990:43)
at UserContext.<anonymous> (webpack:///node_modules/zone.js/dist/jasmine-patch.js:104:0 <- config/karma-shim.js:135349:34)
at ZoneQueueRunner.jasmine.QueueRunner.ZoneQueueRunner.execute (webpack:///node_modules/zone.js/dist/jasmine-patch.js:132:0 <- config/karma-shim.js:135377:42)
at ZoneDelegate.invokeTask (webpack:///node_modules/zone.js/dist/zone.js:425:0 <- config/karma-shim.js:132273:31)
at Zone.runTask (webpack:///node_modules/zone.js/dist/zone.js:192:0 <- config/karma-shim.js:132040:47)
at drainMicroTaskQueue (webpack:///node_modules/zone.js/dist/zone.js:602:0 <- config/karma-shim.js:132450:35)
at <anonymous>
I made a repo to reproduce the error: https://github.com/marcoturi/ionic-boilerplate-mobx-error
git clone https://github.com/marcoturi/ionic-boilerplate-mobx-error.git
npm i/yarn + yarn/npm test -> this will show the error Go to package.json and change mobx version to 3.2.2, then npm i/yarn + yarn/npm test -> no errors
Hope it helps to debug.
Hi, I just realized this issue has nothing to do with mobx-angular. Can you please open it in mobx repo?
I'm using mobx in an ionic project. My Deps:
After upgrading mobx 3.2.2 to 3.3.1, 7 tests of the 203 unit tests in my app are broken. An example of broken test after the upgrade: