fast-check has no exported member named 'Command'
See original GitHub issue💬 Question and Help
Getting this error when loading fast-check via Skypack in a Deno test suite:
fast-check has no exported member named ‘Command’
import * as fc
from 'https://cdn.skypack.dev/fast-check';
class PushCommand implements fc.Command<Model, List> {
^^^^^^^
constructor(readonly value: number) { }
check = (m: Readonly<Model>) =>
true;
run(m: Model, r: List): void {
r.push(this.value); // impact the system
++m.num; // impact the model
}
toString = () =>
`push(${this.value})`;
}
Any help would be appreciated.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
How would I fix 'has no exported member' - Stack Overflow
There's two issues with your code: You're exporting the class, not the function. You're not actually calling the function.
Read more >Property Based Testing With Typescript - DEV Community
Writing a first fast-check test. To install fast-check you need to run this command in your terminal: npm i fast-check -D.
Read more >ISPF Online SQL Execution - TechDocs - Broadcom Inc.
This enables testing of the SQL without first deleting non-SQL code. ... Specify an input data set name, including the member name. The...
Read more >How to set options - Highcharts
When you initialize the chart using its constructor Highcharts.Chart, the options object is the first parameter you pass. In the example below the...
Read more >reprepro - produce, manage and sync a local repository of ...
reprepro is a tool to manage a repository of Debian packages (.deb, .udeb, ... and the command name is done, no matter if...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Unfortunately, the only one I know of today. I just gave a try to something like jsdelivr but the main problem is that it would break because of dependencies not being referenced by an explicit url. In order to really support deno I should potentially do as I do for esm/cjs builds and add yet another build but it would imply some extra post-processing on the file generated by tsc.
Just opened a dedicated issue to track this need https://github.com/dubzzz/fast-check/issues/2781. No plan to work on it in the coming days but it would help me not to forget about it for the next features.
Got it, have to run deno with
--no-check
option as in https://github.com/denoland/deno/issues/3321#issuecomment-695172229.