-
Notifications
You must be signed in to change notification settings - Fork 393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: upgrade jasmine-core and karma-jasmine #3890
Conversation
❌ An unexpected error occurred while attempting to start the |
.join('\n'); | ||
const intro = | ||
ancestorDirectories.map((tag) => `describe("${tag}", function () {`).join('\n') + | ||
`\nxit("dummy test", () => { /* empty */ });\n`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not super happy with this, but there's no config option to change Jasmine's default behavior.
}; | ||
|
||
fn(elm); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apparently this done
was firing multiple times in native lifecycle mode. By using a Promise, it only fires the resolve
once and Jasmine stops complaining.
} | ||
}); | ||
}); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This, and the other fixes below, are just fixing empty describe
s.
Details
We were previously blocked from upgrading Jasmine because of lack of IE11 support, as well as a breaking change that broke our tests: jasmine/jasmine#1742
The breaking change in Jasmine is basically that Jasmine complains due to the "empty"
describe()
:Of course we do this a lot.
IE11 is no longer a problem, and we can make some small tweaks to our tests to support the breaking change in Jasmine. This allows us to upgrade.
Does this pull request introduce a breaking change?
Does this pull request introduce an observable change?