Skip to content

Commit

Permalink
馃摑 Prefer import notation over require for README (#4464)
Browse files Browse the repository at this point in the history
Fixes #4417
  • Loading branch information
dubzzz committed Nov 23, 2023
1 parent 488c62e commit cf71847
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .yarn/versions/850a3476.yml
@@ -0,0 +1,8 @@
releases:
fast-check: patch

declined:
- "@fast-check/ava"
- "@fast-check/jest"
- "@fast-check/vitest"
- "@fast-check/worker"
2 changes: 1 addition & 1 deletion packages/fast-check/README.md
Expand Up @@ -36,7 +36,7 @@ Install the module with: `yarn add fast-check --dev` or `npm install fast-check
Example of integration in [mocha](http://mochajs.org/):

```js
const fc = require('fast-check');
import fc from 'fast-check';

// Code under test
const contains = (text, pattern) => text.indexOf(pattern) >= 0;
Expand Down

0 comments on commit cf71847

Please sign in to comment.