-
Notifications
You must be signed in to change notification settings - Fork 530
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
Fix/removed snapshot tests in operation details table #2674
base: main
Are you sure you want to change the base?
Fix/removed snapshot tests in operation details table #2674
Conversation
Signed-off-by: Mubashirshariq <[email protected]>
Signed-off-by: Mubashirshariq <[email protected]>
Signed-off-by: Mubashirshariq <[email protected]>
packages/jaeger-ui/src/setupTests.js
Outdated
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
import '@testing-library/jest-dom'; |
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.
why do we need this?
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.
Tobeindocument doesn't work unless we add setupTests.js.
refer this
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.
we already have tests that use this function without any new dependencies or setup step
packages/jaeger-ui/src/components/common/ErrorMessage.test.js
51: expect(screen.getByTestId('ErrorMessage--details--wrapper')).toBeInTheDocument();
package.json
Outdated
"dependencies": { | ||
"@testing-library/jest-dom": "^6.6.3", | ||
"@testing-library/react": "^16.2.0", | ||
"@testing-library/user-event": "^14.6.1" |
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.
these are not runtime dependencies
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.
Earlier i added them as dev dependencies but the n npm run lint
started to complain to add it to dependencies rather than dev dependency
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.
will run lint again,will try to add them to devdependencies
Signed-off-by: Mubashirshariq <[email protected]>
@yurishkuro i have moved RTL to dev dependencies but the issue i am getting running while |
@Mubashirshariq You are trying to install the dependencies in project's root. They need to be in the respective workspace, i.e., |
@hari45678 yeah i also figured it out now only |
Which problem is this PR solving?
Resolves #2659
Description of the changes
How was this change tested?
Checklist
jaeger
:make lint test
jaeger-ui
:npm run lint
andnpm run test