Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR migrates the test suite from jasmine-check to fast-check to remove the dependency on an unsupported library while enabling potential future support for other test frameworks.
- Removed jasmine-check and its installer in favor of fast-check.
- Replaced all check.it calls with fc.assert(fc.property(…)) constructs.
- Added a utility helper (expectToBeDefined) to ensure test helper consistency.
Reviewed Changes
Copilot reviewed 21 out of 23 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| tests/zip.ts | Updated tests from jasmine-check to fast-check usage. |
| tests/ts-utils.ts | Added a helper to assert values are defined. |
| tests/transformerProtocol.ts | Removed jasmine-check dependency. |
| tests/splice.ts | Migrated splice tests to fast-check. |
| tests/slice.ts | Revised slice tests with fast-check property-based testing. |
| tests/minmax.ts | Replaced jasmine-check tests with fast-check; uses shuffle. |
| tests/join.ts | Updated join tests with fast-check and adjusted error expectations. |
| tests/hash.ts | Converted hash tests from jasmine-check to fast-check. |
| tests/flatten.ts | Removed jasmine-check dependency. |
| tests/find.ts | Removed jasmine-check dependency. |
| tests/Stack.ts | Migrated Stack tests to fast-check style. |
| tests/Range.ts | Updated Range tests to use fast-check with proper shrinking. |
| tests/Map.ts | Revised Map tests; replaced jasmine-check with fast-check. |
| tests/List.ts | Migrated List tests to fast-check with various property checks. |
| tests/KeyedSeq.ts | Migrated KeyedSeq tests to fast-check. |
| tests/IndexedSeq.ts | Removed jasmine-check dependency. |
| tests/Equality.ts | Converted equality/hash tests to fast-check property-based tests. |
| tests/Conversion.ts | Migrated conversion tests to fast-check and added appropriate type annotations. |
Files not reviewed (2)
- tests/tsconfig.json: Language not supported
- package.json: Language not supported
Comments suppressed due to low confidence (1)
tests/minmax.ts:58
- The function 'shuffle' is used in the test but there is no corresponding import or definition in this file. Please ensure that 'shuffle' is defined or imported from the appropriate utility module.
is(Seq(shuffle(vals.slice())).max(), Seq<number | string>(vals).max())
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
jasmine-check has no support since 7 years, is locking us on jest and force jest runner to be jest-jasmine.
fast-check has maintainance, and is test-framework agnostic. This way, we might migrate to vitest someday.