diff options
| author | renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> | 2023-09-10 20:42:01 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-09-10 20:42:01 +0200 |
| commit | a8e608085fa0d199d4236734c34a5f000667b56e (patch) | |
| tree | 3199b4f5e6fa036f74aaeb0374cfb7a2da056de4 /docs/guide/frameworks.md | |
| parent | 769a4892cb56f293cb784cf87d45d3883a234002 (diff) | |
| download | faker-a8e608085fa0d199d4236734c34a5f000667b56e.tar.xz faker-a8e608085fa0d199d4236734c34a5f000667b56e.zip | |
chore(deps): update dependency prettier to v3.0.3 (#2375)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Shinigami92 <[email protected]>
Diffstat (limited to 'docs/guide/frameworks.md')
| -rw-r--r-- | docs/guide/frameworks.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/guide/frameworks.md b/docs/guide/frameworks.md index e7151638..4dec853f 100644 --- a/docs/guide/frameworks.md +++ b/docs/guide/frameworks.md @@ -13,8 +13,8 @@ Simply crop that line out for a Jest integration. These frameworks work about exactly as you would expect with Faker. Here's a minimal example: ```ts -import { describe, it, expect } from 'vitest'; import { faker } from '@faker-js/faker/locale/en'; +import { describe, expect, it } from 'vitest'; describe('reverse array', () => { it('should reverse the array', () => { @@ -36,8 +36,8 @@ These are especially useful in tests that are meant to be deterministic, such as - [Snapshots in Jest](https://jestjs.io/docs/snapshot-testing) ```ts -import { afterEach, describe, it, expect } from 'vitest'; import { faker } from '@faker-js/faker/locale/en'; +import { afterEach, describe, expect, it } from 'vitest'; // We might want other tests to *not* be seeded. This will re-seed our faker instance after each test. afterEach(() => { |
