@wtf/project-docs 6.0.0 → 6.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/api/.generated +66 -0
- package/api/@wtf/project-astro/config/functions/baseConfig.md +1 -1
- package/api/@wtf/project-astro/config/functions/baseOf.md +1 -1
- package/api/@wtf/project-astro/config/functions/siteOf.md +1 -1
- package/api/@wtf/project-astro/config/type-aliases/BaseOptions.md +6 -6
- package/api/@wtf/project-astro/config/type-aliases/Env.md +1 -1
- package/api/@wtf/project-astro/errors/classes/BrokenLinksError.md +5 -5
- package/api/@wtf/project-astro/errors/classes/InvalidRedirectError.md +6 -6
- package/api/@wtf/project-astro/errors/classes/RedirectedLinksError.md +5 -5
- package/api/@wtf/project-astro/errors/classes/SiteError.md +4 -4
- package/api/@wtf/project-astro/index/type-aliases/AstroPlatform.md +1 -1
- package/api/@wtf/project-astro/index/type-aliases/BrokenLink.md +3 -3
- package/api/@wtf/project-astro/index/type-aliases/IgnoredLine.md +4 -4
- package/api/@wtf/project-astro/index/type-aliases/RedirectInput.md +2 -2
- package/api/@wtf/project-astro/index/type-aliases/RedirectMatch.md +3 -3
- package/api/@wtf/project-astro/index/type-aliases/RedirectRule.md +5 -5
- package/api/@wtf/project-astro/index/type-aliases/RedirectStatus.md +1 -1
- package/api/@wtf/project-astro/index/type-aliases/RedirectedLink.md +2 -2
- package/api/@wtf/project-astro/index/type-aliases/Redirects.md +3 -3
- package/api/@wtf/project-astro/index/type-aliases/RouteParams.md +3 -3
- package/api/@wtf/project-astro/links/functions/brokenLinksIn.md +1 -1
- package/api/@wtf/project-astro/links/functions/links.md +1 -1
- package/api/@wtf/project-astro/links/functions/redirectedLinksIn.md +1 -1
- package/api/@wtf/project-astro/links/type-aliases/LinksOptions.md +2 -2
- package/api/@wtf/project-astro/links/variables/LINKS.md +1 -1
- package/api/@wtf/project-astro/pages/functions/fixSearchUrlsIn.md +1 -1
- package/api/@wtf/project-astro/pages/functions/moveConflictingPages.md +1 -1
- package/api/@wtf/project-astro/pages/functions/pages.md +1 -1
- package/api/@wtf/project-astro/pages/functions/prefixedLocaleOf.md +1 -1
- package/api/@wtf/project-astro/pages/functions/redirectBaseToLocaleIn.md +1 -1
- package/api/@wtf/project-astro/pages/functions/slashFolderLinksIn.md +1 -1
- package/api/@wtf/project-astro/pages/type-aliases/I18n.md +1 -1
- package/api/@wtf/project-astro/pages/type-aliases/PagesOptions.md +2 -2
- package/api/@wtf/project-astro/pages/variables/PAGES.md +1 -1
- package/api/@wtf/project-astro/preview/functions/files.md +1 -1
- package/api/@wtf/project-astro/preview/functions/listen.md +1 -1
- package/api/@wtf/project-astro/preview/functions/notFound.md +1 -1
- package/api/@wtf/project-astro/preview/functions/pagesOf.md +1 -1
- package/api/@wtf/project-astro/preview/functions/previewOf.md +1 -1
- package/api/@wtf/project-astro/preview/type-aliases/FilesOptions.md +2 -2
- package/api/@wtf/project-astro/preview/type-aliases/Handler.md +1 -1
- package/api/@wtf/project-astro/preview/type-aliases/ListenOptions.md +4 -4
- package/api/@wtf/project-astro/preview/type-aliases/Listening.md +5 -5
- package/api/@wtf/project-astro/preview/type-aliases/Pages.md +3 -3
- package/api/@wtf/project-astro/preview/type-aliases/Preview.md +4 -4
- package/api/@wtf/project-astro/preview/type-aliases/PreviewOptions.md +3 -3
- package/api/@wtf/project-astro/redirects/functions/formatRedirects.md +1 -1
- package/api/@wtf/project-astro/redirects/functions/matchRedirect.md +1 -1
- package/api/@wtf/project-astro/redirects/functions/parseRedirects.md +1 -1
- package/api/@wtf/project-astro/redirects/variables/MAX_PARTS.md +1 -1
- package/api/@wtf/project-astro/redirects/variables/MAX_RULES.md +1 -1
- package/api/@wtf/project-astro/redirects/variables/MAX_SIZE.md +1 -1
- package/api/@wtf/project-astro/routes/functions/routeParams.md +1 -1
- package/api/@wtf/project-astro/routes/type-aliases/RouteParamsOptions.md +2 -2
- package/api/@wtf/project-astro/schema/functions/astroSchemaWith.md +1 -1
- package/api/@wtf/project-astro/schema/type-aliases/AstroSection.md +1 -1
- package/api/@wtf/project-astro/schema/type-aliases/JsonSchema.md +12 -12
- package/api/@wtf/project-astro/schema/type-aliases/OptionsSchema.md +1 -1
- package/api/@wtf/project-astro/schema/variables/astroProperties.md +1 -1
- package/api/@wtf/project-astro/schema/variables/astroSchema.md +1 -1
- package/api/@wtf/project-bare/README.md +69 -0
- package/api/@wtf/project-bare/bundle/README.md +34 -0
- package/api/@wtf/project-bare/bundle/functions/bundleTests.md +23 -0
- package/api/@wtf/project-bare/bundle/type-aliases/Bundle.md +35 -0
- package/api/@wtf/project-bare/bundle/type-aliases/BundleOptions.md +95 -0
- package/api/@wtf/project-bare/bundle/variables/BUNDLE_DIR.md +11 -0
- package/api/@wtf/project-bare/bundle/variables/SHIM.md +11 -0
- package/api/@wtf/project-bare/errors/README.md +18 -0
- package/api/@wtf/project-bare/errors/classes/BareBuildError.md +178 -0
- package/api/@wtf/project-bare/errors/classes/BareError.md +194 -0
- package/api/@wtf/project-bare/errors/classes/BareMissingModuleError.md +178 -0
- package/api/@wtf/project-bare/errors/classes/BareTimeoutError.md +172 -0
- package/api/@wtf/project-bare/errors/classes/BareUnavailableError.md +171 -0
- package/api/@wtf/project-bare/errors/classes/NoTestFilesError.md +171 -0
- package/api/@wtf/project-bare/expect/README.md +40 -0
- package/api/@wtf/project-bare/expect/classes/AssertionError.md +202 -0
- package/api/@wtf/project-bare/expect/classes/AsymmetricMatcher.md +66 -0
- package/api/@wtf/project-bare/expect/functions/equals.md +32 -0
- package/api/@wtf/project-bare/expect/functions/format.md +27 -0
- package/api/@wtf/project-bare/expect/functions/pollWith.md +21 -0
- package/api/@wtf/project-bare/expect/functions/retry.md +28 -0
- package/api/@wtf/project-bare/expect/functions/sleep.md +21 -0
- package/api/@wtf/project-bare/expect/functions/timersOf.md +15 -0
- package/api/@wtf/project-bare/expect/type-aliases/Assertions.md +19 -0
- package/api/@wtf/project-bare/expect/type-aliases/ExpectStatics.md +220 -0
- package/api/@wtf/project-bare/expect/type-aliases/Matchers.md +654 -0
- package/api/@wtf/project-bare/expect/type-aliases/MockLike.md +27 -0
- package/api/@wtf/project-bare/expect/type-aliases/PollOptions.md +31 -0
- package/api/@wtf/project-bare/expect/type-aliases/Timers.md +66 -0
- package/api/@wtf/project-bare/expect/variables/expect.md +17 -0
- package/api/@wtf/project-bare/globals/README.md +10 -0
- package/api/@wtf/project-bare/globals/variables/BARE_GLOBALS.md +14 -0
- package/api/@wtf/project-bare/modules/README.md +12 -0
- package/api/@wtf/project-bare/modules/variables/NODE_MODULES.md +12 -0
- package/api/@wtf/project-bare/node/README.md +9 -0
- package/api/@wtf/project-bare/node/functions/testFilesOf.md +27 -0
- package/api/@wtf/project-bare/run/README.md +18 -0
- package/api/@wtf/project-bare/run/functions/runBare.md +24 -0
- package/api/@wtf/project-bare/run/type-aliases/RunBareOptions.md +71 -0
- package/api/@wtf/project-bare/shim/README.md +65 -0
- package/api/@wtf/project-bare/shim/functions/createRunner.md +16 -0
- package/api/@wtf/project-bare/shim/functions/run.md +21 -0
- package/api/@wtf/project-bare/shim/type-aliases/Describe.md +171 -0
- package/api/@wtf/project-bare/shim/type-aliases/Hook.md +22 -0
- package/api/@wtf/project-bare/shim/type-aliases/It.md +236 -0
- package/api/@wtf/project-bare/shim/type-aliases/Mock.md +36 -0
- package/api/@wtf/project-bare/shim/type-aliases/RunOptions.md +112 -0
- package/api/@wtf/project-bare/shim/type-aliases/Runner.md +123 -0
- package/api/@wtf/project-bare/shim/type-aliases/Summary.md +85 -0
- package/api/@wtf/project-bare/shim/type-aliases/TestContext.md +81 -0
- package/api/@wtf/project-bare/shim/type-aliases/TestFunction.md +21 -0
- package/api/@wtf/project-bare/shim/type-aliases/TestOptions.md +21 -0
- package/api/@wtf/project-bare/shim/variables/afterAll.md +11 -0
- package/api/@wtf/project-bare/shim/variables/afterEach.md +11 -0
- package/api/@wtf/project-bare/shim/variables/beforeAll.md +11 -0
- package/api/@wtf/project-bare/shim/variables/beforeEach.md +11 -0
- package/api/@wtf/project-bare/shim/variables/describe.md +11 -0
- package/api/@wtf/project-bare/shim/variables/it.md +11 -0
- package/api/@wtf/project-bare/shim/variables/onTestFinished.md +21 -0
- package/api/@wtf/project-bare/shim/variables/test.md +11 -0
- package/api/@wtf/project-bare/shim/variables/vi.md +23 -0
- package/api/@wtf/project-bare/test/README.md +28 -0
- package/api/@wtf/project-bare/test/functions/bareTest.md +24 -0
- package/api/@wtf/project-bare/test/type-aliases/BareTestOptions.md +11 -0
- package/api/@wtf/project-bare/test/type-aliases/BareTestResult.md +33 -0
- package/api/@wtf/project-bare/type-aliases/BarePlatform.md +14 -0
- package/api/@wtf/project-config/define/functions/defineConfig.md +1 -1
- package/api/@wtf/project-config/env/functions/envNameOf.md +1 -1
- package/api/@wtf/project-config/env/functions/envPrefixOf.md +1 -1
- package/api/@wtf/project-config/env/functions/jsonSchemaOf.md +1 -1
- package/api/@wtf/project-config/env/functions/variablesOf.md +1 -1
- package/api/@wtf/project-config/env/functions/withEnvironment.md +1 -1
- package/api/@wtf/project-config/env/type-aliases/Environment.md +1 -1
- package/api/@wtf/project-config/env/type-aliases/EnvironmentValue.md +3 -3
- package/api/@wtf/project-config/env/type-aliases/WithEnvironment.md +3 -3
- package/api/@wtf/project-config/errors/classes/ConfigError.md +4 -4
- package/api/@wtf/project-config/errors/classes/ConfigFileMismatchError.md +6 -6
- package/api/@wtf/project-config/errors/classes/ConfigInCodeError.md +5 -5
- package/api/@wtf/project-config/errors/classes/ConfigPathError.md +5 -5
- package/api/@wtf/project-config/errors/classes/EnvPlaceholderUnsetError.md +6 -6
- package/api/@wtf/project-config/errors/classes/InvalidConfigFileError.md +5 -5
- package/api/@wtf/project-config/errors/classes/InvalidSectionError.md +7 -7
- package/api/@wtf/project-config/errors/classes/NamedError.md +12 -12
- package/api/@wtf/project-config/errors/classes/NoConfigFileError.md +5 -5
- package/api/@wtf/project-config/errors/classes/NoConfigValueError.md +6 -6
- package/api/@wtf/project-config/errors/classes/SyncSchemaError.md +5 -5
- package/api/@wtf/project-config/errors/classes/UnwritableConfigFileError.md +5 -5
- package/api/@wtf/project-config/errors/type-aliases/NamedErrorCode.md +1 -1
- package/api/@wtf/project-config/errors/type-aliases/NamedErrorDetails.md +9 -9
- package/api/@wtf/project-config/index/type-aliases/ConfigDefaults.md +3 -3
- package/api/@wtf/project-config/index/type-aliases/ConfigEnvironment.md +4 -4
- package/api/@wtf/project-config/index/type-aliases/ConfigIssue.md +3 -3
- package/api/@wtf/project-config/index/type-aliases/ConfigNames.md +4 -4
- package/api/@wtf/project-config/index/type-aliases/ConfigPath.md +1 -1
- package/api/@wtf/project-config/index/type-aliases/ConfigPlatform.md +1 -1
- package/api/@wtf/project-config/index/type-aliases/ConfigSection.md +1 -1
- package/api/@wtf/project-config/index/type-aliases/ConfigSource.md +3 -3
- package/api/@wtf/project-config/index/type-aliases/ConfigWrite.md +10 -10
- package/api/@wtf/project-config/index/type-aliases/ImportModule.md +1 -1
- package/api/@wtf/project-config/index/type-aliases/JsonSchema.md +1 -1
- package/api/@wtf/project-config/index/type-aliases/LocatedConfig.md +4 -4
- package/api/@wtf/project-config/index/type-aliases/NamespaceConfig.md +2 -2
- package/api/@wtf/project-config/index/type-aliases/ResolvedConfig.md +9 -9
- package/api/@wtf/project-config/index/type-aliases/SectionSchema.md +1 -1
- package/api/@wtf/project-config/index/type-aliases/SectionsOf.md +1 -1
- package/api/@wtf/project-config/index/type-aliases/ValidateSection.md +1 -1
- package/api/@wtf/project-config/load/functions/ignoredWarning.md +1 -1
- package/api/@wtf/project-config/load/functions/importFileModule.md +1 -1
- package/api/@wtf/project-config/load/functions/loadConfig.md +1 -1
- package/api/@wtf/project-config/load/type-aliases/LoadLayers.md +3 -3
- package/api/@wtf/project-config/load/type-aliases/LoadOptions.md +3 -3
- package/api/@wtf/project-config/load/type-aliases/LoadPlatform.md +1 -1
- package/api/@wtf/project-config/locate/functions/configFilesOf.md +1 -1
- package/api/@wtf/project-config/locate/functions/configNamesOf.md +1 -1
- package/api/@wtf/project-config/locate/functions/jsonFilesOf.md +1 -1
- package/api/@wtf/project-config/locate/functions/locateConfig.md +1 -1
- package/api/@wtf/project-config/locate/functions/projectRootOf.md +1 -1
- package/api/@wtf/project-config/locate/type-aliases/LocateNames.md +2 -2
- package/api/@wtf/project-config/locate/type-aliases/LocateOptions.md +2 -2
- package/api/@wtf/project-config/locate/type-aliases/NamespaceNames.md +2 -2
- package/api/@wtf/project-config/locate/variables/DEFAULT_NAMESPACE.md +1 -1
- package/api/@wtf/project-config/named/functions/factoryOf.md +1 -1
- package/api/@wtf/project-config/named/functions/namedSchema.md +1 -1
- package/api/@wtf/project-config/named/functions/namedSetSchema.md +1 -1
- package/api/@wtf/project-config/named/functions/resolveNamed.md +1 -1
- package/api/@wtf/project-config/named/functions/resolveNamedSet.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/LoadModule.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/ModuleReference.md +3 -3
- package/api/@wtf/project-config/named/type-aliases/NamedCheckOptions.md +5 -5
- package/api/@wtf/project-config/named/type-aliases/NamedEntries.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/NamedFactory.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/NamedOptions.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/NamedReference.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/NamedResolveOptions.md +3 -3
- package/api/@wtf/project-config/named/type-aliases/NamedSchema.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/NamedSchemaOptions.md +4 -4
- package/api/@wtf/project-config/named/type-aliases/NamedSet.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/NamedSetOptions.md +2 -2
- package/api/@wtf/project-config/named/type-aliases/NamedSetSchemaOptions.md +3 -3
- package/api/@wtf/project-config/named/type-aliases/NamedSets.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/NamedUse.md +1 -1
- package/api/@wtf/project-config/path/functions/configPathOf.md +1 -1
- package/api/@wtf/project-config/path/functions/textOfConfigPath.md +1 -1
- package/api/@wtf/project-config/path/functions/valueAt.md +1 -1
- package/api/@wtf/project-config/placeholder/functions/expandPlaceholders.md +1 -1
- package/api/@wtf/project-config/placeholder/functions/expandString.md +1 -1
- package/api/@wtf/project-config/schema/functions/namespaceSchema.md +1 -1
- package/api/@wtf/project-config/schema/functions/sectionIdOf.md +1 -1
- package/api/@wtf/project-config/schema/type-aliases/NamespaceSchemaOptions.md +3 -3
- package/api/@wtf/project-config/schema/variables/JSON_SCHEMA_DRAFT.md +1 -1
- package/api/@wtf/project-config/section/functions/issuesOf.md +1 -1
- package/api/@wtf/project-config/section/functions/issuesOfSync.md +1 -1
- package/api/@wtf/project-config/section/functions/mergeSection.md +1 -1
- package/api/@wtf/project-config/section/functions/sectionOf.md +1 -1
- package/api/@wtf/project-config/section/type-aliases/Checked.md +3 -3
- package/api/@wtf/project-config/write/functions/setConfigValue.md +1 -1
- package/api/@wtf/project-config/write/functions/unsetConfigValue.md +1 -1
- package/api/@wtf/project-config/write/type-aliases/WriteOptions.md +2 -2
- package/api/@wtf/project-oxfmt/config/functions/oxfmtConfig.md +1 -1
- package/api/@wtf/project-oxfmt/config/type-aliases/OxfmtOptions.md +1 -1
- package/api/@wtf/project-oxfmt/config/variables/OXFMT_DEFAULTS.md +6 -6
- package/api/@wtf/project-oxfmt/config/variables/default.md +1 -1
- package/api/@wtf/project-oxfmt/schema/variables/oxfmtSchema.md +1 -1
- package/api/@wtf/project-oxlint/config/functions/oxlintConfig.md +1 -1
- package/api/@wtf/project-oxlint/config/type-aliases/OxlintOptions.md +1 -1
- package/api/@wtf/project-oxlint/config/variables/OXLINT_DEFAULTS.md +17 -17
- package/api/@wtf/project-oxlint/config/variables/default.md +1 -1
- package/api/@wtf/project-oxlint/schema/variables/oxlintSchema.md +1 -1
- package/api/@wtf/project-resolve/condition/variables/SOURCE_CONDITION.md +1 -1
- package/api/@wtf/project-resolve/env/functions/isHook.md +1 -1
- package/api/@wtf/project-resolve/env/functions/optionsWithoutHook.md +1 -1
- package/api/@wtf/project-resolve/env/functions/withoutHook.md +1 -1
- package/api/@wtf/project-resolve/env/type-aliases/Env.md +1 -1
- package/api/@wtf/project-resolve/errors/classes/ResolveError.md +4 -4
- package/api/@wtf/project-resolve/errors/classes/UnreadableWorkspaceError.md +6 -6
- package/api/@wtf/project-resolve/errors/classes/WorkspaceError.md +5 -5
- package/api/@wtf/project-resolve/hooks/functions/candidatesOf.md +1 -1
- package/api/@wtf/project-resolve/hooks/functions/sourcesHookOf.md +1 -1
- package/api/@wtf/project-resolve/hooks/functions/sourcesOf.md +1 -1
- package/api/@wtf/project-resolve/hooks/variables/resolveTypeScript.md +1 -1
- package/api/@wtf/project-resolve/node/functions/nodePlatform.md +5 -5
- package/api/@wtf/project-resolve/register/variables/REGISTERED.md +1 -1
- package/api/@wtf/project-resolve/workspace/functions/filesOf.md +1 -1
- package/api/@wtf/project-resolve/workspace/functions/packagesOf.md +1 -1
- package/api/@wtf/project-resolve/workspace/functions/workspaceAt.md +1 -1
- package/api/@wtf/project-resolve/workspace/functions/workspaceOf.md +1 -1
- package/api/@wtf/project-resolve/workspace/functions/workspaceRootAbove.md +1 -1
- package/api/@wtf/project-resolve/workspace/functions/workspaceRootOf.md +1 -1
- package/api/@wtf/project-resolve/workspace/type-aliases/Agent.md +1 -1
- package/api/@wtf/project-resolve/workspace/type-aliases/DirectoryEntry.md +4 -4
- package/api/@wtf/project-resolve/workspace/type-aliases/FileContents.md +3 -3
- package/api/@wtf/project-resolve/workspace/type-aliases/PackageManager.md +4 -4
- package/api/@wtf/project-resolve/workspace/type-aliases/PackageManagerName.md +1 -1
- package/api/@wtf/project-resolve/workspace/type-aliases/ProcessWorkspaceOptions.md +1 -1
- package/api/@wtf/project-resolve/workspace/type-aliases/Workspace.md +5 -5
- package/api/@wtf/project-resolve/workspace/type-aliases/WorkspaceDirectoryHandle.md +6 -6
- package/api/@wtf/project-resolve/workspace/type-aliases/WorkspaceFileHandle.md +3 -3
- package/api/@wtf/project-resolve/workspace/type-aliases/WorkspaceFiles.md +6 -6
- package/api/@wtf/project-resolve/workspace/type-aliases/WorkspaceOptions.md +2 -2
- package/api/@wtf/project-resolve/workspace/type-aliases/WorkspacePackage.md +4 -4
- package/api/@wtf/project-resolve/workspace/type-aliases/WorkspacePaths.md +7 -7
- package/api/@wtf/project-storybook/config/functions/escapeAttribute.md +1 -1
- package/api/@wtf/project-storybook/config/functions/folderOf.md +1 -1
- package/api/@wtf/project-storybook/config/functions/metaTags.md +1 -1
- package/api/@wtf/project-storybook/config/functions/refsOf.md +1 -1
- package/api/@wtf/project-storybook/config/functions/storybookConfig.md +1 -1
- package/api/@wtf/project-storybook/config/type-aliases/ComposedRef.md +3 -3
- package/api/@wtf/project-storybook/config/type-aliases/StorybookConfig.md +8 -8
- package/api/@wtf/project-storybook/config/type-aliases/StorybookOptions.md +13 -13
- package/api/@wtf/project-storybook/config/type-aliases/StorybookRef.md +4 -4
- package/api/@wtf/project-storybook/config/type-aliases/VersionLabel.md +4 -4
- package/api/@wtf/project-storybook/manager/functions/registerVersion.md +1 -1
- package/api/@wtf/project-storybook/manager/type-aliases/VersionOptions.md +2 -2
- package/api/@wtf/project-storybook/schema/type-aliases/StorybookSection.md +1 -1
- package/api/@wtf/project-storybook/schema/variables/storybookSchema.md +1 -1
- package/api/@wtf/project-storybook/versions/functions/labelOf.md +1 -1
- package/api/@wtf/project-storybook/versions/functions/versionsOf.md +1 -1
- package/api/@wtf/project-storybook/versions/type-aliases/Label.md +5 -5
- package/api/@wtf/project-storybook/versions/type-aliases/ListedVersion.md +4 -4
- package/api/@wtf/project-storybook/versions/variables/META.md +5 -5
- package/api/@wtf/project-typedoc/config/functions/gitRevisionOf.md +1 -1
- package/api/@wtf/project-typedoc/config/functions/typedocConfig.md +1 -1
- package/api/@wtf/project-typedoc/config/type-aliases/TypedocConfig.md +1 -1
- package/api/@wtf/project-typedoc/config/type-aliases/TypedocOptions.md +7 -7
- package/api/@wtf/project-typedoc/config/type-aliases/TypedocPlatform.md +2 -2
- package/api/@wtf/project-typedoc/plugins/functions/cleanGeneratedMarkdown.md +1 -1
- package/api/@wtf/project-typedoc/plugins/functions/linkTrackedSources.md +1 -1
- package/api/@wtf/project-typedoc/plugins/functions/preventMediaFiles.md +1 -1
- package/api/@wtf/project-typedoc/plugins/type-aliases/CleanGeneratedMarkdownOptions.md +4 -4
- package/api/@wtf/project-typedoc/plugins/type-aliases/LinkTrackedSourcesOptions.md +3 -3
- package/api/@wtf/project-typedoc/plugins/type-aliases/PreventMediaFilesOptions.md +4 -4
- package/api/@wtf/project-typedoc/plugins/type-aliases/TypedocPlugin.md +1 -1
- package/api/@wtf/project-typedoc/schema/type-aliases/TypedocSection.md +2 -2
- package/api/@wtf/project-typedoc/schema/variables/typedocSchema.md +1 -1
- package/api/@wtf/project-vite/config/functions/baseConfig.md +4 -4
- package/api/@wtf/project-vite/config/functions/buildsSite.md +1 -1
- package/api/@wtf/project-vite/config/functions/compress.md +1 -1
- package/api/@wtf/project-vite/config/functions/conditionsOf.md +1 -1
- package/api/@wtf/project-vite/config/functions/fromDist.md +1 -1
- package/api/@wtf/project-vite/config/type-aliases/BaseOptions.md +3 -3
- package/api/@wtf/project-vite/config/type-aliases/CompressOptions.md +4 -4
- package/api/@wtf/project-vite/config/variables/CLIENT_CONDITIONS.md +1 -1
- package/api/@wtf/project-vite/config/variables/COMPRESSIBLE.md +1 -1
- package/api/@wtf/project-vite/config/variables/THRESHOLD.md +1 -1
- package/api/@wtf/project-vite/schema/type-aliases/ViteSection.md +1 -1
- package/api/@wtf/project-vite/schema/variables/viteSchema.md +1 -1
- package/api/@wtf/project-vitest/browser/functions/browserConfig.md +1 -1
- package/api/@wtf/project-vitest/browser/functions/browserRootConfig.md +1 -1
- package/api/@wtf/project-vitest/browser/type-aliases/BrowserOptions.md +4 -4
- package/api/@wtf/project-vitest/config/functions/fromDist.md +1 -1
- package/api/@wtf/project-vitest/config/functions/integrationConfig.md +1 -1
- package/api/@wtf/project-vitest/config/functions/packageConfig.md +1 -1
- package/api/@wtf/project-vitest/config/functions/rootConfig.md +1 -1
- package/api/@wtf/project-vitest/config/type-aliases/PackageOptions.md +2 -2
- package/api/@wtf/project-vitest/config/type-aliases/RootConfigOptions.md +2 -2
- package/api/@wtf/project-vitest/config/type-aliases/RootOptions.md +8 -8
- package/api/@wtf/project-vitest/config/type-aliases/VitestPlatform.md +4 -4
- package/api/@wtf/project-vitest/config/type-aliases/VitestRootPlatform.md +1 -1
- package/api/@wtf/project-vitest/config/variables/GUARD_TIMEOUT.md +1 -1
- package/api/@wtf/project-vitest/config/variables/integration.md +9 -9
- package/api/@wtf/project-vitest/process/functions/childEnv.md +1 -1
- package/api/@wtf/project-vitest/process/type-aliases/Env.md +1 -1
- package/api/@wtf/project-vitest/schema/type-aliases/VitestSection.md +1 -1
- package/api/@wtf/project-vitest/schema/variables/vitestSchema.md +1 -1
- package/api/@wtf/project-vitest/storybook/functions/storybookConfig.md +1 -1
- package/api/@wtf/project-vitest/storybook/type-aliases/StorybookOptions.md +2 -2
- package/api/@wtf/project-wpt/builtins/functions/builtins.md +1 -1
- package/api/@wtf/project-wpt/builtins/functions/intrinsics.md +1 -1
- package/api/@wtf/project-wpt/checkout/functions/checkoutFolderOf.md +1 -1
- package/api/@wtf/project-wpt/checkout/functions/checkoutTests.md +1 -1
- package/api/@wtf/project-wpt/checkout/functions/checkoutWpt.md +1 -1
- package/api/@wtf/project-wpt/checkout/functions/execOf.md +1 -1
- package/api/@wtf/project-wpt/checkout/functions/fileOf.md +1 -1
- package/api/@wtf/project-wpt/checkout/type-aliases/CheckedOutTests.md +3 -3
- package/api/@wtf/project-wpt/checkout/type-aliases/CheckoutOptions.md +8 -8
- package/api/@wtf/project-wpt/checkout/type-aliases/CheckoutTestsOptions.md +2 -2
- package/api/@wtf/project-wpt/checkout/variables/HARNESS.md +1 -1
- package/api/@wtf/project-wpt/checkout/variables/REWRITES.md +1 -1
- package/api/@wtf/project-wpt/checkout/variables/WPT_REPOSITORY.md +1 -1
- package/api/@wtf/project-wpt/errors/classes/HarnessFailedError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/InvalidCommitError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/InvalidExpectationsError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/NoSuiteError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/NotInWptError.md +5 -5
- package/api/@wtf/project-wpt/errors/classes/StaleExpectationError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/SubtestFailedError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/UnexpectedPassError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/WptError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/WptFetchError.md +4 -4
- package/api/@wtf/project-wpt/expectations/functions/checkHarness.md +1 -1
- package/api/@wtf/project-wpt/expectations/functions/checkSubtest.md +1 -1
- package/api/@wtf/project-wpt/expectations/functions/expectationOf.md +1 -1
- package/api/@wtf/project-wpt/expectations/functions/expectationsIssues.md +1 -1
- package/api/@wtf/project-wpt/expectations/functions/readExpectations.md +1 -1
- package/api/@wtf/project-wpt/expectations/functions/staleOf.md +1 -1
- package/api/@wtf/project-wpt/expectations/type-aliases/ReadExpectations.md +3 -3
- package/api/@wtf/project-wpt/index/type-aliases/CreateRealm.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/Exec.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/Expectations.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/FileExpectation.md +4 -4
- package/api/@wtf/project-wpt/index/type-aliases/FileResult.md +4 -4
- package/api/@wtf/project-wpt/index/type-aliases/Globals.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/HarnessResult.md +4 -4
- package/api/@wtf/project-wpt/index/type-aliases/HarnessStatus.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/HoldRejections.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/Realm.md +3 -3
- package/api/@wtf/project-wpt/index/type-aliases/SubtestResult.md +5 -5
- package/api/@wtf/project-wpt/index/type-aliases/SubtestStatus.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/WptFile.md +3 -3
- package/api/@wtf/project-wpt/index/type-aliases/WptFiles.md +9 -9
- package/api/@wtf/project-wpt/index/type-aliases/WptPaths.md +4 -4
- package/api/@wtf/project-wpt/index/type-aliases/WptPlatform.md +2 -2
- package/api/@wtf/project-wpt/index/type-aliases/WptSystem.md +6 -6
- package/api/@wtf/project-wpt/index/type-aliases/WptTest.md +3 -3
- package/api/@wtf/project-wpt/meta/functions/idOf.md +1 -1
- package/api/@wtf/project-wpt/meta/functions/metaOf.md +1 -1
- package/api/@wtf/project-wpt/meta/functions/runsOutsideWindow.md +1 -1
- package/api/@wtf/project-wpt/meta/functions/scriptPathsOf.md +1 -1
- package/api/@wtf/project-wpt/meta/functions/testsOf.md +1 -1
- package/api/@wtf/project-wpt/meta/type-aliases/Meta.md +6 -6
- package/api/@wtf/project-wpt/node/functions/nodeSystem.md +1 -1
- package/api/@wtf/project-wpt/node/type-aliases/NodeSystemPlatform.md +1 -1
- package/api/@wtf/project-wpt/node/variables/nodeFiles.md +1 -1
- package/api/@wtf/project-wpt/node/variables/nodeRealm.md +1 -1
- package/api/@wtf/project-wpt/node/variables/nodeRejections.md +1 -1
- package/api/@wtf/project-wpt/run/functions/runTest.md +1 -1
- package/api/@wtf/project-wpt/run/type-aliases/RunOptions.md +8 -8
- package/api/@wtf/project-wpt/run/type-aliases/RunPlatform.md +1 -1
- package/api/@wtf/project-wpt/run/variables/LONG_TIMEOUT.md +1 -1
- package/api/@wtf/project-wpt/run/variables/TIMEOUT.md +1 -1
- package/api/@wtf/project-wpt/run/variables/WPT_ORIGIN.md +1 -1
- package/api/@wtf/project-wpt/schema/type-aliases/WptConfig.md +2 -2
- package/api/@wtf/project-wpt/schema/type-aliases/WptSuiteConfig.md +2 -2
- package/api/@wtf/project-wpt/schema/variables/wptSchema.md +1 -1
- package/api/@wtf/project-wpt/suite/functions/wptSuite.md +1 -1
- package/api/@wtf/project-wpt/suite/type-aliases/WptSuiteOptions.md +8 -8
- package/api/README.md +1 -0
- package/api/llms.txt +1 -0
- package/api/trains.json +3 -0
- package/guides/bare.md +206 -0
- package/guides/getting-started.md +1 -0
- package/guides/testing.md +4 -0
- package/package.json +2 -1
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-bare](../../README.md) / [shim](../README.md) / It
|
|
2
|
+
|
|
3
|
+
# Type Alias: It()
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
type It = void;
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-bare/src/shim.ts:114](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L114)
|
|
10
|
+
|
|
11
|
+
`it`, `test`, and their variants.
|
|
12
|
+
|
|
13
|
+
## Call Signature
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
type It(
|
|
17
|
+
name,
|
|
18
|
+
fn,
|
|
19
|
+
options?
|
|
20
|
+
): void;
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
`it`, `test`, and their variants.
|
|
24
|
+
|
|
25
|
+
### Parameters
|
|
26
|
+
|
|
27
|
+
| Parameter | Type |
|
|
28
|
+
| ------ | ------ |
|
|
29
|
+
| `name` | `string` |
|
|
30
|
+
| `fn` | [`TestFunction`](TestFunction.md) |
|
|
31
|
+
| `options?` | `number` \| [`TestOptions`](TestOptions.md) |
|
|
32
|
+
|
|
33
|
+
### Returns
|
|
34
|
+
|
|
35
|
+
`void`
|
|
36
|
+
|
|
37
|
+
## Call Signature
|
|
38
|
+
|
|
39
|
+
```ts
|
|
40
|
+
type It(
|
|
41
|
+
name,
|
|
42
|
+
options,
|
|
43
|
+
fn
|
|
44
|
+
): void;
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
`it`, `test`, and their variants.
|
|
48
|
+
|
|
49
|
+
### Parameters
|
|
50
|
+
|
|
51
|
+
| Parameter | Type |
|
|
52
|
+
| ------ | ------ |
|
|
53
|
+
| `name` | `string` |
|
|
54
|
+
| `options` | `number` \| [`TestOptions`](TestOptions.md) |
|
|
55
|
+
| `fn` | [`TestFunction`](TestFunction.md) |
|
|
56
|
+
|
|
57
|
+
### Returns
|
|
58
|
+
|
|
59
|
+
`void`
|
|
60
|
+
|
|
61
|
+
## Properties
|
|
62
|
+
|
|
63
|
+
### concurrent
|
|
64
|
+
|
|
65
|
+
```ts
|
|
66
|
+
concurrent: It;
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Defined in: [packages/project-bare/src/shim.ts:121](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L121)
|
|
70
|
+
|
|
71
|
+
***
|
|
72
|
+
|
|
73
|
+
### each
|
|
74
|
+
|
|
75
|
+
```ts
|
|
76
|
+
each: (rows) => (name, fn) => void;
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Defined in: [packages/project-bare/src/shim.ts:124](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L124)
|
|
80
|
+
|
|
81
|
+
#### Parameters
|
|
82
|
+
|
|
83
|
+
| Parameter | Type |
|
|
84
|
+
| ------ | ------ |
|
|
85
|
+
| `rows` | readonly `unknown`[] |
|
|
86
|
+
|
|
87
|
+
#### Returns
|
|
88
|
+
|
|
89
|
+
(`name`, `fn`) => `void`
|
|
90
|
+
|
|
91
|
+
***
|
|
92
|
+
|
|
93
|
+
### fails
|
|
94
|
+
|
|
95
|
+
```ts
|
|
96
|
+
fails: (name, fn, options?) => void;
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Defined in: [packages/project-bare/src/shim.ts:120](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L120)
|
|
100
|
+
|
|
101
|
+
#### Parameters
|
|
102
|
+
|
|
103
|
+
| Parameter | Type |
|
|
104
|
+
| ------ | ------ |
|
|
105
|
+
| `name` | `string` |
|
|
106
|
+
| `fn` | [`TestFunction`](TestFunction.md) |
|
|
107
|
+
| `options?` | `number` \| [`TestOptions`](TestOptions.md) |
|
|
108
|
+
|
|
109
|
+
#### Returns
|
|
110
|
+
|
|
111
|
+
`void`
|
|
112
|
+
|
|
113
|
+
***
|
|
114
|
+
|
|
115
|
+
### for
|
|
116
|
+
|
|
117
|
+
```ts
|
|
118
|
+
for: (rows) => (name, fn) => void;
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
Defined in: [packages/project-bare/src/shim.ts:125](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L125)
|
|
122
|
+
|
|
123
|
+
#### Parameters
|
|
124
|
+
|
|
125
|
+
| Parameter | Type |
|
|
126
|
+
| ------ | ------ |
|
|
127
|
+
| `rows` | readonly `unknown`[] |
|
|
128
|
+
|
|
129
|
+
#### Returns
|
|
130
|
+
|
|
131
|
+
(`name`, `fn`) => `void`
|
|
132
|
+
|
|
133
|
+
***
|
|
134
|
+
|
|
135
|
+
### only
|
|
136
|
+
|
|
137
|
+
```ts
|
|
138
|
+
only: (name, fn, options?) => void;
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
Defined in: [packages/project-bare/src/shim.ts:118](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L118)
|
|
142
|
+
|
|
143
|
+
#### Parameters
|
|
144
|
+
|
|
145
|
+
| Parameter | Type |
|
|
146
|
+
| ------ | ------ |
|
|
147
|
+
| `name` | `string` |
|
|
148
|
+
| `fn` | [`TestFunction`](TestFunction.md) |
|
|
149
|
+
| `options?` | `number` \| [`TestOptions`](TestOptions.md) |
|
|
150
|
+
|
|
151
|
+
#### Returns
|
|
152
|
+
|
|
153
|
+
`void`
|
|
154
|
+
|
|
155
|
+
***
|
|
156
|
+
|
|
157
|
+
### runIf
|
|
158
|
+
|
|
159
|
+
```ts
|
|
160
|
+
runIf: (condition) => It;
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
Defined in: [packages/project-bare/src/shim.ts:123](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L123)
|
|
164
|
+
|
|
165
|
+
#### Parameters
|
|
166
|
+
|
|
167
|
+
| Parameter | Type |
|
|
168
|
+
| ------ | ------ |
|
|
169
|
+
| `condition` | `unknown` |
|
|
170
|
+
|
|
171
|
+
#### Returns
|
|
172
|
+
|
|
173
|
+
`It`
|
|
174
|
+
|
|
175
|
+
***
|
|
176
|
+
|
|
177
|
+
### skip
|
|
178
|
+
|
|
179
|
+
```ts
|
|
180
|
+
skip: (name, fn?, options?) => void;
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
Defined in: [packages/project-bare/src/shim.ts:117](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L117)
|
|
184
|
+
|
|
185
|
+
#### Parameters
|
|
186
|
+
|
|
187
|
+
| Parameter | Type |
|
|
188
|
+
| ------ | ------ |
|
|
189
|
+
| `name` | `string` |
|
|
190
|
+
| `fn?` | [`TestFunction`](TestFunction.md) |
|
|
191
|
+
| `options?` | `number` \| [`TestOptions`](TestOptions.md) |
|
|
192
|
+
|
|
193
|
+
#### Returns
|
|
194
|
+
|
|
195
|
+
`void`
|
|
196
|
+
|
|
197
|
+
***
|
|
198
|
+
|
|
199
|
+
### skipIf
|
|
200
|
+
|
|
201
|
+
```ts
|
|
202
|
+
skipIf: (condition) => It;
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
Defined in: [packages/project-bare/src/shim.ts:122](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L122)
|
|
206
|
+
|
|
207
|
+
#### Parameters
|
|
208
|
+
|
|
209
|
+
| Parameter | Type |
|
|
210
|
+
| ------ | ------ |
|
|
211
|
+
| `condition` | `unknown` |
|
|
212
|
+
|
|
213
|
+
#### Returns
|
|
214
|
+
|
|
215
|
+
`It`
|
|
216
|
+
|
|
217
|
+
***
|
|
218
|
+
|
|
219
|
+
### todo
|
|
220
|
+
|
|
221
|
+
```ts
|
|
222
|
+
todo: (name, fn?) => void;
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
Defined in: [packages/project-bare/src/shim.ts:119](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L119)
|
|
226
|
+
|
|
227
|
+
#### Parameters
|
|
228
|
+
|
|
229
|
+
| Parameter | Type |
|
|
230
|
+
| ------ | ------ |
|
|
231
|
+
| `name` | `string` |
|
|
232
|
+
| `fn?` | [`TestFunction`](TestFunction.md) |
|
|
233
|
+
|
|
234
|
+
#### Returns
|
|
235
|
+
|
|
236
|
+
`void`
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-bare](../../README.md) / [shim](../README.md) / Mock
|
|
2
|
+
|
|
3
|
+
# Type Alias: Mock\<Args, Result\>
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
type Mock<Args, Result> = (...args) => Result & object;
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-bare/src/shim.ts:570](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L570)
|
|
10
|
+
|
|
11
|
+
A mock function, as `vi.fn()` makes it.
|
|
12
|
+
|
|
13
|
+
## Type Declaration
|
|
14
|
+
|
|
15
|
+
| Name | Type | Description | Defined in |
|
|
16
|
+
| ------ | ------ | ------ | ------ |
|
|
17
|
+
| `mock` | `object` | - | [packages/project-bare/src/shim.ts:573](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L573) |
|
|
18
|
+
| `mock.calls` | `Args`[] | - | [packages/project-bare/src/shim.ts:574](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L574) |
|
|
19
|
+
| `mock.lastCall` | `Args` \| `undefined` | - | [packages/project-bare/src/shim.ts:576](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L576) |
|
|
20
|
+
| `mock.results` | ( \| \{ `type`: `"return"`; `value`: `Result`; \} \| \{ `type`: `"throw"`; `value`: `unknown`; \})[] | - | [packages/project-bare/src/shim.ts:575](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L575) |
|
|
21
|
+
| `mockClear()` | () => `Mock`\<`Args`, `Result`\> | Forgets the calls and results, not what it does. | [packages/project-bare/src/shim.ts:591](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L591) |
|
|
22
|
+
| `mockImplementation()` | (`fn`) => `Mock`\<`Args`, `Result`\> | Sets what the mock does when called. | [packages/project-bare/src/shim.ts:579](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L579) |
|
|
23
|
+
| `mockImplementationOnce()` | (`fn`) => `Mock`\<`Args`, `Result`\> | Sets what the mock does on its next call alone. | [packages/project-bare/src/shim.ts:581](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L581) |
|
|
24
|
+
| `mockRejectedValue()` | (`value`) => `Mock`\<`Args`, `Result`\> | Makes the mock return a promise that rejects with `value`. | [packages/project-bare/src/shim.ts:589](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L589) |
|
|
25
|
+
| `mockReset()` | () => `Mock`\<`Args`, `Result`\> | Forgets the calls and results, and what it does. | [packages/project-bare/src/shim.ts:593](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L593) |
|
|
26
|
+
| `mockResolvedValue()` | (`value`) => `Mock`\<`Args`, `Result`\> | Makes the mock return a promise of `value`. | [packages/project-bare/src/shim.ts:587](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L587) |
|
|
27
|
+
| `mockRestore()` | () => `void` | Puts back what a `vi.spyOn` replaced, and resets the mock. | [packages/project-bare/src/shim.ts:595](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L595) |
|
|
28
|
+
| `mockReturnValue()` | (`value`) => `Mock`\<`Args`, `Result`\> | Makes the mock return `value`. | [packages/project-bare/src/shim.ts:583](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L583) |
|
|
29
|
+
| `mockReturnValueOnce()` | (`value`) => `Mock`\<`Args`, `Result`\> | Makes the mock return `value` on its next call alone. | [packages/project-bare/src/shim.ts:585](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L585) |
|
|
30
|
+
|
|
31
|
+
## Type Parameters
|
|
32
|
+
|
|
33
|
+
| Type Parameter | Default type |
|
|
34
|
+
| ------ | ------ |
|
|
35
|
+
| `Args` *extends* `unknown`[] | `unknown`[] |
|
|
36
|
+
| `Result` | `unknown` |
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-bare](../../README.md) / [shim](../README.md) / RunOptions
|
|
2
|
+
|
|
3
|
+
# Type Alias: RunOptions
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
type RunOptions = object;
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-bare/src/shim.ts:89](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L89)
|
|
10
|
+
|
|
11
|
+
What a run is given of its runtime.
|
|
12
|
+
|
|
13
|
+
## Properties
|
|
14
|
+
|
|
15
|
+
### clearTimeout
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
readonly clearTimeout: (handle) => void;
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Defined in: [packages/project-bare/src/shim.ts:93](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L93)
|
|
22
|
+
|
|
23
|
+
#### Parameters
|
|
24
|
+
|
|
25
|
+
| Parameter | Type |
|
|
26
|
+
| ------ | ------ |
|
|
27
|
+
| `handle` | `unknown` |
|
|
28
|
+
|
|
29
|
+
#### Returns
|
|
30
|
+
|
|
31
|
+
`void`
|
|
32
|
+
|
|
33
|
+
***
|
|
34
|
+
|
|
35
|
+
### hookTimeout?
|
|
36
|
+
|
|
37
|
+
```ts
|
|
38
|
+
readonly optional hookTimeout?: number;
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Defined in: [packages/project-bare/src/shim.ts:98](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L98)
|
|
42
|
+
|
|
43
|
+
***
|
|
44
|
+
|
|
45
|
+
### log
|
|
46
|
+
|
|
47
|
+
```ts
|
|
48
|
+
readonly log: (line) => void;
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Defined in: [packages/project-bare/src/shim.ts:91](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L91)
|
|
52
|
+
|
|
53
|
+
Writes a line of the report.
|
|
54
|
+
|
|
55
|
+
#### Parameters
|
|
56
|
+
|
|
57
|
+
| Parameter | Type |
|
|
58
|
+
| ------ | ------ |
|
|
59
|
+
| `line` | `string` |
|
|
60
|
+
|
|
61
|
+
#### Returns
|
|
62
|
+
|
|
63
|
+
`void`
|
|
64
|
+
|
|
65
|
+
***
|
|
66
|
+
|
|
67
|
+
### now
|
|
68
|
+
|
|
69
|
+
```ts
|
|
70
|
+
readonly now: () => number;
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Defined in: [packages/project-bare/src/shim.ts:95](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L95)
|
|
74
|
+
|
|
75
|
+
The clock, in milliseconds, of any origin.
|
|
76
|
+
|
|
77
|
+
#### Returns
|
|
78
|
+
|
|
79
|
+
`number`
|
|
80
|
+
|
|
81
|
+
***
|
|
82
|
+
|
|
83
|
+
### setTimeout
|
|
84
|
+
|
|
85
|
+
```ts
|
|
86
|
+
readonly setTimeout: (callback, ms) => unknown;
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Defined in: [packages/project-bare/src/shim.ts:92](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L92)
|
|
90
|
+
|
|
91
|
+
#### Parameters
|
|
92
|
+
|
|
93
|
+
| Parameter | Type |
|
|
94
|
+
| ------ | ------ |
|
|
95
|
+
| `callback` | () => `void` |
|
|
96
|
+
| `ms` | `number` |
|
|
97
|
+
|
|
98
|
+
#### Returns
|
|
99
|
+
|
|
100
|
+
`unknown`
|
|
101
|
+
|
|
102
|
+
***
|
|
103
|
+
|
|
104
|
+
### testTimeout?
|
|
105
|
+
|
|
106
|
+
```ts
|
|
107
|
+
readonly optional testTimeout?: number;
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
Defined in: [packages/project-bare/src/shim.ts:97](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L97)
|
|
111
|
+
|
|
112
|
+
A test's timeout, 5000 ms by default; a hook's, 10000 ms.
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-bare](../../README.md) / [shim](../README.md) / Runner
|
|
2
|
+
|
|
3
|
+
# Type Alias: Runner
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
type Runner = object;
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-bare/src/shim.ts:215](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L215)
|
|
10
|
+
|
|
11
|
+
The runner of tests: what registers them, and runs them.
|
|
12
|
+
|
|
13
|
+
## Properties
|
|
14
|
+
|
|
15
|
+
### afterAll
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
readonly afterAll: Hook;
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Defined in: [packages/project-bare/src/shim.ts:220](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L220)
|
|
22
|
+
|
|
23
|
+
***
|
|
24
|
+
|
|
25
|
+
### afterEach
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
readonly afterEach: Hook;
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Defined in: [packages/project-bare/src/shim.ts:222](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L222)
|
|
32
|
+
|
|
33
|
+
***
|
|
34
|
+
|
|
35
|
+
### beforeAll
|
|
36
|
+
|
|
37
|
+
```ts
|
|
38
|
+
readonly beforeAll: Hook;
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Defined in: [packages/project-bare/src/shim.ts:219](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L219)
|
|
42
|
+
|
|
43
|
+
***
|
|
44
|
+
|
|
45
|
+
### beforeEach
|
|
46
|
+
|
|
47
|
+
```ts
|
|
48
|
+
readonly beforeEach: Hook;
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Defined in: [packages/project-bare/src/shim.ts:221](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L221)
|
|
52
|
+
|
|
53
|
+
***
|
|
54
|
+
|
|
55
|
+
### describe
|
|
56
|
+
|
|
57
|
+
```ts
|
|
58
|
+
readonly describe: Describe;
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Defined in: [packages/project-bare/src/shim.ts:216](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L216)
|
|
62
|
+
|
|
63
|
+
***
|
|
64
|
+
|
|
65
|
+
### it
|
|
66
|
+
|
|
67
|
+
```ts
|
|
68
|
+
readonly it: It;
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Defined in: [packages/project-bare/src/shim.ts:217](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L217)
|
|
72
|
+
|
|
73
|
+
***
|
|
74
|
+
|
|
75
|
+
### onTestFinished
|
|
76
|
+
|
|
77
|
+
```ts
|
|
78
|
+
readonly onTestFinished: (callback) => void;
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Defined in: [packages/project-bare/src/shim.ts:223](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L223)
|
|
82
|
+
|
|
83
|
+
#### Parameters
|
|
84
|
+
|
|
85
|
+
| Parameter | Type |
|
|
86
|
+
| ------ | ------ |
|
|
87
|
+
| `callback` | () => `unknown` |
|
|
88
|
+
|
|
89
|
+
#### Returns
|
|
90
|
+
|
|
91
|
+
`void`
|
|
92
|
+
|
|
93
|
+
***
|
|
94
|
+
|
|
95
|
+
### run
|
|
96
|
+
|
|
97
|
+
```ts
|
|
98
|
+
readonly run: (options) => Promise<Summary>;
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
Defined in: [packages/project-bare/src/shim.ts:225](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L225)
|
|
102
|
+
|
|
103
|
+
Runs what is registered, in order, and reports it by `options.log`.
|
|
104
|
+
|
|
105
|
+
#### Parameters
|
|
106
|
+
|
|
107
|
+
| Parameter | Type |
|
|
108
|
+
| ------ | ------ |
|
|
109
|
+
| `options` | [`RunOptions`](RunOptions.md) |
|
|
110
|
+
|
|
111
|
+
#### Returns
|
|
112
|
+
|
|
113
|
+
`Promise`\<[`Summary`](Summary.md)\>
|
|
114
|
+
|
|
115
|
+
***
|
|
116
|
+
|
|
117
|
+
### test
|
|
118
|
+
|
|
119
|
+
```ts
|
|
120
|
+
readonly test: It;
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
Defined in: [packages/project-bare/src/shim.ts:218](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L218)
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-bare](../../README.md) / [shim](../README.md) / Summary
|
|
2
|
+
|
|
3
|
+
# Type Alias: Summary
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
type Summary = object;
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-bare/src/shim.ts:76](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L76)
|
|
10
|
+
|
|
11
|
+
What a run did, and the failures it reports.
|
|
12
|
+
|
|
13
|
+
## Properties
|
|
14
|
+
|
|
15
|
+
### duration
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
readonly duration: number;
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Defined in: [packages/project-bare/src/shim.ts:83](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L83)
|
|
22
|
+
|
|
23
|
+
Milliseconds, by the clock the run was given.
|
|
24
|
+
|
|
25
|
+
***
|
|
26
|
+
|
|
27
|
+
### failed
|
|
28
|
+
|
|
29
|
+
```ts
|
|
30
|
+
readonly failed: number;
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Defined in: [packages/project-bare/src/shim.ts:78](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L78)
|
|
34
|
+
|
|
35
|
+
***
|
|
36
|
+
|
|
37
|
+
### ok
|
|
38
|
+
|
|
39
|
+
```ts
|
|
40
|
+
readonly ok: boolean;
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Defined in: [packages/project-bare/src/shim.ts:85](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L85)
|
|
44
|
+
|
|
45
|
+
No test failed, and at least one was registered.
|
|
46
|
+
|
|
47
|
+
***
|
|
48
|
+
|
|
49
|
+
### passed
|
|
50
|
+
|
|
51
|
+
```ts
|
|
52
|
+
readonly passed: number;
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Defined in: [packages/project-bare/src/shim.ts:77](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L77)
|
|
56
|
+
|
|
57
|
+
***
|
|
58
|
+
|
|
59
|
+
### skipped
|
|
60
|
+
|
|
61
|
+
```ts
|
|
62
|
+
readonly skipped: number;
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Defined in: [packages/project-bare/src/shim.ts:79](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L79)
|
|
66
|
+
|
|
67
|
+
***
|
|
68
|
+
|
|
69
|
+
### todo
|
|
70
|
+
|
|
71
|
+
```ts
|
|
72
|
+
readonly todo: number;
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Defined in: [packages/project-bare/src/shim.ts:80](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L80)
|
|
76
|
+
|
|
77
|
+
***
|
|
78
|
+
|
|
79
|
+
### total
|
|
80
|
+
|
|
81
|
+
```ts
|
|
82
|
+
readonly total: number;
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
Defined in: [packages/project-bare/src/shim.ts:81](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L81)
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-bare](../../README.md) / [shim](../README.md) / TestContext
|
|
2
|
+
|
|
3
|
+
# Type Alias: TestContext
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
type TestContext = object;
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-bare/src/shim.ts:30](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L30)
|
|
10
|
+
|
|
11
|
+
What a test is given: the [expect](../../expect/variables/expect.md), a way to skip the test, and a hook for when it ends.
|
|
12
|
+
|
|
13
|
+
## Properties
|
|
14
|
+
|
|
15
|
+
### expect
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
readonly expect: typeof expect;
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Defined in: [packages/project-bare/src/shim.ts:31](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L31)
|
|
22
|
+
|
|
23
|
+
***
|
|
24
|
+
|
|
25
|
+
### task
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
readonly task: object;
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Defined in: [packages/project-bare/src/shim.ts:36](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L36)
|
|
32
|
+
|
|
33
|
+
#### name
|
|
34
|
+
|
|
35
|
+
```ts
|
|
36
|
+
readonly name: string;
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Methods
|
|
40
|
+
|
|
41
|
+
### onTestFinished()
|
|
42
|
+
|
|
43
|
+
```ts
|
|
44
|
+
onTestFinished(callback): void;
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Defined in: [packages/project-bare/src/shim.ts:35](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L35)
|
|
48
|
+
|
|
49
|
+
Runs `callback` once the test has ended, after its `afterEach` hooks, last in first.
|
|
50
|
+
|
|
51
|
+
#### Parameters
|
|
52
|
+
|
|
53
|
+
| Parameter | Type |
|
|
54
|
+
| ------ | ------ |
|
|
55
|
+
| `callback` | () => `unknown` |
|
|
56
|
+
|
|
57
|
+
#### Returns
|
|
58
|
+
|
|
59
|
+
`void`
|
|
60
|
+
|
|
61
|
+
***
|
|
62
|
+
|
|
63
|
+
### skip()
|
|
64
|
+
|
|
65
|
+
```ts
|
|
66
|
+
skip(note?): never;
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Defined in: [packages/project-bare/src/shim.ts:33](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L33)
|
|
70
|
+
|
|
71
|
+
Ends the test as skipped, from the middle of it.
|
|
72
|
+
|
|
73
|
+
#### Parameters
|
|
74
|
+
|
|
75
|
+
| Parameter | Type |
|
|
76
|
+
| ------ | ------ |
|
|
77
|
+
| `note?` | `string` |
|
|
78
|
+
|
|
79
|
+
#### Returns
|
|
80
|
+
|
|
81
|
+
`never`
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-bare](../../README.md) / [shim](../README.md) / TestFunction
|
|
2
|
+
|
|
3
|
+
# Type Alias: TestFunction
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
type TestFunction = (context) => unknown;
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-bare/src/shim.ts:40](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L40)
|
|
10
|
+
|
|
11
|
+
The function of a test or a hook.
|
|
12
|
+
|
|
13
|
+
## Parameters
|
|
14
|
+
|
|
15
|
+
| Parameter | Type |
|
|
16
|
+
| ------ | ------ |
|
|
17
|
+
| `context` | [`TestContext`](TestContext.md) |
|
|
18
|
+
|
|
19
|
+
## Returns
|
|
20
|
+
|
|
21
|
+
`unknown`
|