diff --git a/packages/site/docs/api/globals.mdx b/packages/site/docs/api/globals.mdx index 42d27c7..cf34cc6 100644 --- a/packages/site/docs/api/globals.mdx +++ b/packages/site/docs/api/globals.mdx @@ -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. diff --git a/packages/site/docs/api/lest-object.mdx b/packages/site/docs/api/lest-object.mdx index 099768a..09998b4 100644 --- a/packages/site/docs/api/lest-object.mdx +++ b/packages/site/docs/api/lest-object.mdx @@ -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 diff --git a/packages/site/docs/api/mock-functions.mdx b/packages/site/docs/api/mock-functions.mdx index ec09ae1..05b1851 100644 --- a/packages/site/docs/api/mock-functions.mdx +++ b/packages/site/docs/api/mock-functions.mdx @@ -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