Skip to content

Commit

Permalink
docs: update remaining docs imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Derpius committed Jul 1, 2023
1 parent c66c9b6 commit 9e73ee8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
9 changes: 1 addition & 8 deletions packages/site/docs/api/globals.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,7 @@ title: Globals

import FunctionRenderer from "@site/src/components/FunctionRenderer";

import afterAll from "@lest/docs/functions/afterAll.json";
import afterEach from "@lest/docs/functions/afterEach.json";
import beforeAll from "@lest/docs/functions/beforeAll.json";
import beforeEach from "@lest/docs/functions/beforeEach.json";
import describe from "@lest/docs/functions/describe.json";
import describeEach from "@lest/docs/functions/describe-each.json";
import test from "@lest/docs/functions/test.json";
import testEach from "@lest/docs/functions/test-each.json";
import { afterAll, afterEach, beforeAll, beforeEach, describe, describeEach, test, testEach } from "@lest/docs";

In your test files, Lest puts each of these methods and objects into the global environment. You don't have to require or import anything to use them.

Expand Down
2 changes: 1 addition & 1 deletion packages/site/docs/api/lest-object.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: The Lest Object

import FunctionRenderer from "@site/src/components/FunctionRenderer";

import lestFn from "@lest/docs/functions/fn.json";
import { lestFn } from "@lest/docs";

## Mock Functions

Expand Down
3 changes: 1 addition & 2 deletions packages/site/docs/api/mock-functions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ title: Mock Functions

import { ObjectRenderer, FieldRenderer } from "@site/src/components/object-renderer";

import mock from "@lest/docs/types/mock.json";
import mockResult from "@lest/docs/types/mock-result.json";
import { mock, mockResult } from "@lest/docs";

Mock functions allow stubbing and/or inspecting functions when testing.
This is especially used when unit testing, where you'll likely need to mock unrelated units of your code or code from other packages or libraries.allow
Expand Down

0 comments on commit 9e73ee8

Please sign in to comment.