https://github.com/tomeraberbach/typespec-fast-check
🐒 A TypeSpec emitter for fast-check arbitraries.
https://github.com/tomeraberbach/typespec-fast-check
codegen fast-check property-based-testing typespec
Last synced: 4 months ago
JSON representation
🐒 A TypeSpec emitter for fast-check arbitraries.
- Host: GitHub
- URL: https://github.com/tomeraberbach/typespec-fast-check
- Owner: TomerAberbach
- License: mit
- Created: 2024-11-13T14:50:17.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-09-01T17:27:25.000Z (9 months ago)
- Last Synced: 2026-02-04T19:52:24.211Z (4 months ago)
- Topics: codegen, fast-check, property-based-testing, typespec
- Language: JavaScript
- Homepage: https://npm.im/typespec-fast-check
- Size: 634 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 16
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
typespec-fast-check
## Install
```sh
$ npm i typespec-fast-check
```
## Usage
Via the command line:
```sh
tsp compile . --emit=typespec-fast-check
```
Via the config:
```yaml
emit:
- 'typespec-fast-check'
```
See the
[TypeSpec documentation](https://typespec.io/docs/emitters/protobuf/reference/emitter)
for more information.
> [!NOTE]
>
> This package doesn't support all TypeSpec features yet. See the
> [open issues](https://github.com/TomerAberbach/typespec-fast-check/issues) for
> what's planned.
## Examples
See [`openai/arbitraries.js`](./test/snapshots/openai/arbitraries.js), which was
generated from the TypeSpec files in Brian Terlson's
[`openai-in-typespec`](https://github.com/bterlson/openai-in-typespec)
repository.
## Contributing
Stars are always welcome!
For bugs and feature requests,
[please create an issue](https://github.com/TomerAberbach/typespec-fast-check/issues/new).
## License
[MIT](https://github.com/TomerAberbach/typespec-fast-check/blob/main/license) ©
[Stainless Software, Inc.](https://www.stainlessapi.com)