langflow/src/frontend
Gabriel Luiz Freitas Almeida 6bf60ece71
ci: add frontend test execution, reporting, and coverage in workflow (#8815)
* chore: add jest-junit dependency for improved test reporting

- Updated package.json and package-lock.json to include jest-junit version 16.0.0, enhancing test reporting capabilities in the project.

* chore: enhance Jest configuration for improved test coverage and CI reporting

- Added coverage collection settings, including coverage thresholds and report formats.
- Configured CI-specific options for Jest, including the use of jest-junit for test reporting and adjusted worker settings for better performance in CI environments.

* chore: update frontend test command for CI mode to ensure proper environment variable usage

- Modified the test command in the Makefile to set CI=true for accurate test execution in CI environments.

* chore: enhance frontend CI workflow with test reporting and coverage uploads

- Replaced the frontend dependency installation step with a command to run unit tests in CI mode.
- Added steps to publish test results using junit report and to comment on pull requests with coverage summaries.
- Implemented artifact upload for coverage reports to improve visibility and tracking of test coverage over time.

* chore: add frontend dependency installation step to CI workflow

- Introduced a step to install frontend dependencies using npm ci in the GitHub Actions workflow.
- This enhancement ensures that all necessary packages are available before running frontend unit tests, improving the reliability of the CI process.

* chore: update junit report action version in CI workflow

- Upgraded the junit report action from v5 to v5.5.1 in the GitHub Actions workflow to leverage the latest features and improvements for test result reporting.

* chore: add Jest unit test workflow for frontend

- Introduced a new GitHub Actions workflow to run Jest unit tests for the frontend.
- The workflow includes steps for checking out the repository, setting up the Node.js environment, running tests, publishing test results, adding coverage comments on pull requests, and uploading coverage reports.
- This enhancement improves the CI process by ensuring comprehensive testing and reporting for frontend components.

* chore: integrate Jest unit tests into CI workflow

- Added a new job to the CI workflow to run frontend unit tests using Jest.
- Updated the changes filter to include Jest test files, ensuring they are recognized during the CI process.
- This enhancement improves the testing coverage and reliability of the frontend components.
2025-07-01 20:38:10 +00:00
..
.dspy_cache fix: use init_subclass instead of metaclass to enforce decorator (#3942) 2024-09-27 12:06:15 +00:00
public fix: Cleanup favicon and old logo assets to fix flash of old favicon (#8462) 2025-06-13 19:12:11 +00:00
src style: Adjust copy button position in APITabsComponent (#8801) 2025-07-01 17:09:27 +00:00
tests fix: enhance dropdown component with refresh button and clean up parameter render logic (#8493) 2025-07-01 13:07:48 +00:00
.dockerignore
.eslintrc.json 🔧 (.pre-commit-config.yaml): add eslint-plugin-react@latest as a dependency to improve linting for React components 2024-05-02 18:51:27 -03:00
.gitignore fix: Update min/max zoom value and fit view values (#7113) 2025-03-20 16:35:55 -03:00
.prettierignore Format tests and update prettier command 2024-06-10 15:23:52 -03:00
.prettierrc.mjs Fixed Prettier tailwind formatting 2024-06-17 14:37:23 -03:00
cdk.Dockerfile Update Dockerfiles to use latest node version in frontend 2024-04-17 11:21:10 -03:00
dev.Dockerfile Update Dockerfiles to use latest node version in frontend 2024-04-17 11:21:10 -03:00
Dockerfile
index.html fix: Cleanup favicon and old logo assets to fix flash of old favicon (#8462) 2025-06-13 19:12:11 +00:00
jest.config.js ci: add frontend test execution, reporting, and coverage in workflow (#8815) 2025-07-01 20:38:10 +00:00
nginx.conf
package-lock.json ci: add frontend test execution, reporting, and coverage in workflow (#8815) 2025-07-01 20:38:10 +00:00
package.json ci: add frontend test execution, reporting, and coverage in workflow (#8815) 2025-07-01 20:38:10 +00:00
playwright.config.ts fix: replace instances of 127.0.0.1 to localhost (#8536) 2025-06-16 15:54:04 +00:00
postcss.config.js
README.md
run-tests.sh tests: new tests folders organization (#3716) 2024-09-09 14:45:30 -03:00
set_proxy.sh
start-nginx.sh
tailwind.config.mjs feat: add servers persistence to MCP connection component, add MCP connections settings page (#8388) 2025-06-11 19:21:38 +00:00
tsconfig.json tests: organize playwright tests by feature suites and optimize CI runtime (#4687) 2024-11-25 20:55:03 +00:00
vite.config.mts fix: replace instances of 127.0.0.1 to localhost (#8536) 2025-06-16 15:54:04 +00:00

Getting Started with Create React App

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

npm run eject

Note: this is a one-way operation. Once you eject, you cant go back!

If you arent satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point youre on your own.

You dont have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldnt feel obligated to use this feature. However we understand that this tool wouldnt be useful if you couldnt customize it when you are ready for it.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.