question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
dubzzzcommented, Mar 12, 2022

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.

1reaction
moodmosaiccommented, Mar 9, 2022

Got it, have to run deno with --no-check option as in https://github.com/denoland/deno/issues/3321#issuecomment-695172229.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found