Skip to content

chore(gatsby): Drop deprecated (and unused) async describe blocks #20532

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

Merged
merged 1 commit into from
Jan 10, 2020

Conversation

blainekasten
Copy link
Contributor

Jest has deprecated describe(() => async, so this removes the two instances we had, which weren't even really used.

@blainekasten blainekasten requested a review from a team as a code owner January 10, 2020 17:37
@@ -12,7 +12,7 @@ beforeEach(() => {
global.__PATH_PREFIX__ = ``
})

describe(`Test plugin sitemap`, async () => {
describe(`Test plugin sitemap`, () => {
it(`default settings work properly`, async () => {
Copy link
Contributor

@madalynrose madalynrose Jan 10, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you need to remove async() here too? or is it just for describe?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just for describe blocks, async is still applicable to test blocks (it)

Copy link
Contributor

@madalynrose madalynrose left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this @blainekasten! 🚀

@blainekasten blainekasten merged commit 8a90943 into master Jan 10, 2020
@delete-merged-branch delete-merged-branch bot deleted the chore/drop-async-describe-tests branch January 10, 2020 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants