Skip to content
This repository has been archived by the owner on Aug 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2166 from bbc/remove-async-keyword
Browse files Browse the repository at this point in the history
remove async keyword from test helpers
  • Loading branch information
Jonathan Roebuck committed Sep 17, 2019
2 parents 8409371 + d8a17c1 commit 4e1b056
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/utilities/psammead-test-helpers/CHANGELOG.md
Expand Up @@ -3,6 +3,7 @@
<!-- prettier-ignore -->
| Version | Description |
|---------|-------------|
| 3.0.2 | [PR#2166](https://github.com/bbc/psammead/pull/2166) remove async keyword from test helper to fix regenerator runtime plugin error |
| 3.0.1 | [PR#2123](https://github.com/bbc/psammead/pull/2125) Removes use of async/await |
| 3.0.0 | [PR#2104](https://github.com/bbc/psammead/pull/2104) add function to detect and render helmet for use in snapshots |
| 2.0.2 | [PR#1994](https://github.com/bbc/psammead/pull/1994) Add comment to clarify new shouldMatchSnapshot logic |
Expand Down
2 changes: 1 addition & 1 deletion packages/utilities/psammead-test-helpers/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/utilities/psammead-test-helpers/package.json
@@ -1,6 +1,6 @@
{
"name": "@bbc/psammead-test-helpers",
"version": "3.0.1",
"version": "3.0.2",
"main": "dist/index.js",
"module": "esm/index.js",
"sideEffects": false,
Expand Down
@@ -1,6 +1,6 @@
import { render, waitForDomChange } from '@testing-library/react';

export default async component => {
export default component => {
/*
* Similar to this problem https://github.com/testing-library/react-testing-library/issues/402
* This helper was created to solve the problem of rendering helmet/head contents in snapshots.
Expand Down

0 comments on commit 4e1b056

Please sign in to comment.