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
I noticed the behavior of parser to discover the position of test only supports a string in describe(string). It will not work if we have the real class name like this example below:
describe(Calculator,()=>{// <---- will not matchit("sum a and b",()=>{// <---- run the nearest testexpect(newCalculator().sum(1,2)).toEqual(3);});});describe("Calculator",()=>{// <---- worksit("sum a and b",()=>{// <---- run the nearest testexpect(newCalculator().sum(1,2)).toEqual(3);});});