You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[x ] I have this issue with the latest release of jasmine
I can reproduce this issue with one of the examples
Current behavior
I cannot add SpecDone to jasmine.getEnv().addReporter this seemd to broke after upgrade to later jasmine.
Previously I had jasmine 3.6.3 looks like upgrade to later @types/jasmine is causing this.
(method) jasmine.CustomReporter.specDone?(result: jasmine.SpecResult, done?: (() => void) | undefined): void | Promise
Type '(result: SpecResult, specDone: (() => void) | undefined) => Promise | undefined' is not assignable to type '(result: SpecResult, done?: (() => void) | undefined) => void | Promise'.
Type 'Promise | undefined' is not assignable to type 'void | Promise'.
Type 'Promise' is not assignable to type 'void | Promise'.
Type 'Promise' is missing the following properties from type 'Promise': [Symbol.toStringTag], finallyts(2322)
index.d.ts(1042, 9): The expected type comes from property 'specDone' which is declared here on type 'CustomReporter'
Minimal reproduction of the problem with instructions
The text was updated successfully, but these errors were encountered:
sebaKwiat
changed the title
Cannot add specDone after upgrade to later jasmine-spec-reporter
Cannot add specDone after upgrade to later jasmine 3.99.0 from 3.6.3
Jan 14, 2022
problem is solved when i change types jasmin to older @types/jasmine": "3.6.2" however i keep jasmine as "jasmine": "^3.99.0"
sebaKwiat
changed the title
Cannot add specDone after upgrade to later jasmine 3.99.0 from 3.6.3
Cannot add specDone after upgrade to later @types/jasmine
Jan 14, 2022
Check with "x":
Current behavior
I cannot add SpecDone to jasmine.getEnv().addReporter this seemd to broke after upgrade to later jasmine.
Previously I had jasmine 3.6.3 looks like upgrade to later @types/jasmine is causing this.
(method) jasmine.CustomReporter.specDone?(result: jasmine.SpecResult, done?: (() => void) | undefined): void | Promise
Type '(result: SpecResult, specDone: (() => void) | undefined) => Promise | undefined' is not assignable to type '(result: SpecResult, done?: (() => void) | undefined) => void | Promise'.
Type 'Promise | undefined' is not assignable to type 'void | Promise'.
Type 'Promise' is not assignable to type 'void | Promise'.
Type 'Promise' is missing the following properties from type 'Promise': [Symbol.toStringTag], finallyts(2322)
index.d.ts(1042, 9): The expected type comes from property 'specDone' which is declared here on type 'CustomReporter'
Expected behavior
Minimal reproduction of the problem with instructions
The text was updated successfully, but these errors were encountered: