Skip to content

1.0.0 rc.3#21

Merged
kos984 merged 4 commits intorelease-v1.0.0from
1.0.0-rc.3
Oct 26, 2025
Merged

1.0.0 rc.3#21
kos984 merged 4 commits intorelease-v1.0.0from
1.0.0-rc.3

Conversation

@kos984
Copy link
Owner

@kos984 kos984 commented Oct 19, 2025

This pull request adds comprehensive unit tests for several helper and core modules, improves test coverage for progress bar features, and introduces new configuration options and behaviors for the progress bar. It also updates the package version and refines test and coverage settings.

Test Coverage Improvements

  • Added new unit tests for loopProgresses and start functions in src/examples/helpers/__tests__/loop-progresses.spec.ts, covering looping, custom delays, completion, error handling, and edge cases.
  • Added thorough tests for the SeededRandom class in src/examples/helpers/__tests__/seed-random.spec.ts, including constructor edge cases, random value generation, and range handling.
  • Added tests for the etaParser function in src/lib/__tests__/eta-parser.spec.ts, including valid, edge, and invalid input scenarios.
  • Expanded tests for custom data providers in DataProviders.build to cover custom properties, property overriding, and filtering of falsy providers in src/lib/__tests__/data-providers.spec.ts.
  • Added and improved tests for progress bar shutdown listener, cursor management, and rendering options in src/lib/__tests__/bar.spec.ts, covering new configuration flags and behaviors.

Configuration and Behavior Changes

  • Updated the package version from 1.0.0-rc.2 to 1.0.0-rc.3 in package.json.
  • Added per-directory coverage thresholds for src/examples in package.json to enforce minimum coverage standards.

Core Logic and API Changes

  • Made the seed property of SeededRandom public and added TypeScript return types for its methods in src/examples/helpers/seed-random.ts.

Test Suite Refactoring

  • Refactored parallel-loader.example.spec.ts to enable and improve the parallel loader test, including proper mocking of bar methods and removal of skipped/obsolete test code.
  • Added a direct test for the async function passed to start in multi-start.example.spec.ts.
  • Updated import statements in eta.presets.spec.ts to include additional preset format functions.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 26, 2025

@kos984 kos984 merged commit f3b9a3f into release-v1.0.0 Oct 26, 2025
5 checks passed
@kos984 kos984 deleted the 1.0.0-rc.3 branch October 26, 2025 13:30
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.

1 participant