Skip to content

Conversation

@radeva
Copy link
Contributor

@radeva radeva commented Aug 9, 2024

Make the test fail

Make the test fail
@flyci-prod
Copy link

flyci-prod bot commented Aug 9, 2024

FlyCI Wingman Report

FlyCI Wingman prepared a .patch file for you:

Changes
diff --git a/__tests__/App.test.tsx b/__tests__/App.test.tsx
index 1ab769c..875e329 100644
--- a/__tests__/App.test.tsx
+++ b/__tests__/App.test.tsx
@@ -1,7 +1,3 @@
-/**
- * @format
- */
-
 import 'react-native';
 import React from 'react';
 import { render, screen } from '@testing-library/react-native';
@@ -26,5 +22,5 @@ it('should render Step One', async () => {
 
   const stepOne = await screen.findByText('Step One');
 
-  expect(stepOne).toHaveTextContent('Step Two');
+  expect(stepOne).toHaveTextContent('Step One');
 });
Apply Changes

Execute the following command in your shell at the root of your repo to apply the patch:

echo "diff --git a/__tests__/App.test.tsx b/__tests__/App.test.tsx
index 1ab769c..875e329 100644
--- a/__tests__/App.test.tsx
+++ b/__tests__/App.test.tsx
@@ -1,7 +1,3 @@
-/**
- * @format
- */
-
 import 'react-native';
 import React from 'react';
 import { render, screen } from '@testing-library/react-native';
@@ -26,5 +22,5 @@ it('should render Step One', async () => {
 
   const stepOne = await screen.findByText('Step One');
 
-  expect(stepOne).toHaveTextContent('Step Two');
+  expect(stepOne).toHaveTextContent('Step One');
 });
" | git apply -

Alternatively, save the patch to a file (e.g. changes.patch) and apply it with:

git apply changes.patch

Send Feedback

Join our Discord Community to get help, request features, and share feedback. Alternatively, send us an email at support@flyci.net.

Fix test

Co-authored-by: flyci-prod[bot] <146104993+flyci-prod[bot]@users.noreply.github.com>
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