test(home): react grid layout version

Signed-off-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
Camila Belo
2023-10-25 08:46:55 +02:00
parent a123455ce3
commit 5266644a2c
+9
View File
@@ -13,10 +13,19 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import packageJson from '../package.json';
import { homePlugin } from './plugin';
describe('home', () => {
it('should export plugin', () => {
expect(homePlugin).toBeDefined();
});
// Temporarily ensure we are installing a working version of the react-grid-layout library
// For more details, see: https://github.com/react-grid-layout/react-grid-layout/issues/1959
// TODO(@backstage/discoverability-maintainers): Delete this once the sub-dependency issue has been resolved.
it('should pin react-grid-layout version to 1.3.4', async () => {
expect(packageJson.dependencies['react-grid-layout']).toBe('1.3.4');
});
});