Skip to content
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

First drop of react unit tests #111

Closed
wants to merge 6 commits into from

Conversation

neehar18
Copy link
Contributor

@neehar18 neehar18 commented Oct 24, 2024

In reference to: #49

@neehar18
Copy link
Contributor Author

@fbricon the CI build failure is because there are conflicting type definitions between the installed versions of @types/mocha and @types/jest.

Since I am using Jest for testing, can I remove @types/mocha from devDependencies?

@neehar18 neehar18 requested a review from fbricon October 25, 2024 00:10
@neehar18 neehar18 mentioned this pull request Oct 25, 2024
Copy link
Collaborator

@fbricon fbricon left a comment

Choose a reason for hiding this comment

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

You should not have a conflict between mocha and jest since the main package doesn't and shouldn't be concerned about react and jest

package.json Outdated
],
"moduleNameMapper": {
"\\.(css|less|scss|sass)$": "identity-obj-proxy"
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

those changes seem unnecessary, since the tests only affect the webviews/ package

package.json Outdated
Comment on lines 65 to 66
"test:jest": "jest",
"test:ci": "jest --ci --reporters=default --reporters=jest-junit"
Copy link
Collaborator

Choose a reason for hiding this comment

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

this should delegate the jest tests from the webviews package

@@ -1,5 +1,5 @@
import { VscArrowCircleDown, VscCircleLarge, VscCircleLargeFilled, VscPass, VscPassFilled } from "react-icons/vsc";

import React from 'react';
Copy link
Collaborator

Choose a reason for hiding this comment

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

seems unnecessary

@@ -6,6 +6,7 @@ import { ProgressData } from "../../src/commons/progressData";
import { getStandardName } from "../../src/commons/naming";
import { ModelStatus, ServerStatus } from "../../src/commons/statuses";
import { StatusCheck, StatusValue } from "./StatusCheck";
import React from 'react';
Copy link
Collaborator

Choose a reason for hiding this comment

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

seems unnecessary

package.json Outdated
"test": "vscode-test"
"test": "vscode-test",
"test:jest": "cd webviews && npm run test",
"test:ci": "cd webviews && jest --ci --reporters=default --reporters=jest-junit"
Copy link
Collaborator

Choose a reason for hiding this comment

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

test:ci seems unused

@@ -2,7 +2,7 @@ import { render, screen } from '@testing-library/react';
import ProgressBar from './ProgressBar';
import { ProgressData } from '../../src/commons/progressData';
import '@testing-library/jest-dom';
import React from 'react';
//import React from 'react';
Copy link
Collaborator

Choose a reason for hiding this comment

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

don't comment, delete

@fbricon
Copy link
Collaborator

fbricon commented Oct 29, 2024

the build fails and there are conflicts to fix

Venkata Neehar Kurukunda and others added 2 commits October 31, 2024 13:53
@neehar18
Copy link
Contributor Author

Closing the PR as this is addressed in #123

@neehar18 neehar18 closed this Oct 31, 2024
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