@wtf/project-docs 5.3.2 → 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/README.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 +2 -1
- package/guides/testing.md +4 -0
- package/package.json +14 -13
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
[Documentation](../../../README.md) / [@wtf/project-bare](../README.md) / expect
|
|
2
|
+
|
|
3
|
+
# expect
|
|
4
|
+
|
|
5
|
+
The assertions of a test on Bare, the part of Vitest's `expect` the kit's suites and tests use:
|
|
6
|
+
[expect](variables/expect.md) with its matchers, `.not`, `.rejects` and `.resolves`; the asymmetric matchers
|
|
7
|
+
`expect.any`, `expect.anything`, `expect.objectContaining`, `expect.arrayContaining`,
|
|
8
|
+
`expect.stringContaining` and `expect.stringMatching`; `expect.fail`, `expect.unreachable` and
|
|
9
|
+
`expect.poll`. A failed assertion throws an [AssertionError](classes/AssertionError.md) whose message says what was
|
|
10
|
+
expected and shows the value.
|
|
11
|
+
|
|
12
|
+
It reads nothing of the runtime it runs in but the timers `expect.poll` waits by, which the
|
|
13
|
+
runner gives it ([pollWith](functions/pollWith.md)).
|
|
14
|
+
|
|
15
|
+
## Classes
|
|
16
|
+
|
|
17
|
+
- [AssertionError](classes/AssertionError.md)
|
|
18
|
+
- [AsymmetricMatcher](classes/AsymmetricMatcher.md)
|
|
19
|
+
|
|
20
|
+
## Type Aliases
|
|
21
|
+
|
|
22
|
+
- [Assertions](type-aliases/Assertions.md)
|
|
23
|
+
- [ExpectStatics](type-aliases/ExpectStatics.md)
|
|
24
|
+
- [Matchers](type-aliases/Matchers.md)
|
|
25
|
+
- [MockLike](type-aliases/MockLike.md)
|
|
26
|
+
- [PollOptions](type-aliases/PollOptions.md)
|
|
27
|
+
- [Timers](type-aliases/Timers.md)
|
|
28
|
+
|
|
29
|
+
## Variables
|
|
30
|
+
|
|
31
|
+
- [expect](variables/expect.md)
|
|
32
|
+
|
|
33
|
+
## Functions
|
|
34
|
+
|
|
35
|
+
- [equals](functions/equals.md)
|
|
36
|
+
- [format](functions/format.md)
|
|
37
|
+
- [pollWith](functions/pollWith.md)
|
|
38
|
+
- [retry](functions/retry.md)
|
|
39
|
+
- [sleep](functions/sleep.md)
|
|
40
|
+
- [timersOf](functions/timersOf.md)
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-bare](../../README.md) / [expect](../README.md) / AssertionError
|
|
2
|
+
|
|
3
|
+
# Class: AssertionError
|
|
4
|
+
|
|
5
|
+
Defined in: [packages/project-bare/src/expect.ts:16](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/expect.ts#L16)
|
|
6
|
+
|
|
7
|
+
What an assertion that does not hold throws.
|
|
8
|
+
|
|
9
|
+
## Extends
|
|
10
|
+
|
|
11
|
+
- `Error`
|
|
12
|
+
|
|
13
|
+
## Constructors
|
|
14
|
+
|
|
15
|
+
### Constructor
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
new AssertionError(message?): AssertionError;
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Defined in: `typescript`
|
|
22
|
+
|
|
23
|
+
#### Parameters
|
|
24
|
+
|
|
25
|
+
| Parameter | Type |
|
|
26
|
+
| ------ | ------ |
|
|
27
|
+
| `message?` | `string` |
|
|
28
|
+
|
|
29
|
+
#### Returns
|
|
30
|
+
|
|
31
|
+
`AssertionError`
|
|
32
|
+
|
|
33
|
+
#### Inherited from
|
|
34
|
+
|
|
35
|
+
```ts
|
|
36
|
+
Error.constructor
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Constructor
|
|
40
|
+
|
|
41
|
+
```ts
|
|
42
|
+
new AssertionError(message?, options?): AssertionError;
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Defined in: `typescript`
|
|
46
|
+
|
|
47
|
+
#### Parameters
|
|
48
|
+
|
|
49
|
+
| Parameter | Type |
|
|
50
|
+
| ------ | ------ |
|
|
51
|
+
| `message?` | `string` |
|
|
52
|
+
| `options?` | `ErrorOptions` |
|
|
53
|
+
|
|
54
|
+
#### Returns
|
|
55
|
+
|
|
56
|
+
`AssertionError`
|
|
57
|
+
|
|
58
|
+
#### Inherited from
|
|
59
|
+
|
|
60
|
+
```ts
|
|
61
|
+
Error.constructor
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Properties
|
|
65
|
+
|
|
66
|
+
| Property | Modifier | Type | Default value | Description | Overrides | Inherited from | Defined in |
|
|
67
|
+
| ------ | ------ | ------ | ------ | ------ | ------ | ------ | ------ |
|
|
68
|
+
| <a id="property-cause"></a> `cause?` | `public` | `unknown` | `undefined` | - | - | `Error.cause` | - |
|
|
69
|
+
| <a id="property-message"></a> `message` | `public` | `string` | `undefined` | - | - | `Error.message` | - |
|
|
70
|
+
| <a id="property-name"></a> `name` | `readonly` | `"AssertionError"` | `'AssertionError'` | - | `Error.name` | - | [packages/project-bare/src/expect.ts:17](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/expect.ts#L17) |
|
|
71
|
+
| <a id="property-stack"></a> `stack?` | `public` | `string` | `undefined` | - | - | `Error.stack` | - |
|
|
72
|
+
| <a id="property-stacktracelimit"></a> `stackTraceLimit` | `static` | `number` | `undefined` | The `Error.stackTraceLimit` property specifies the number of stack frames collected by a stack trace (whether generated by `new Error().stack` or `Error.captureStackTrace(obj)`). The default value is `10` but may be set to any valid JavaScript number. Changes will affect any stack trace captured _after_ the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames. | - | `Error.stackTraceLimit` | - |
|
|
73
|
+
|
|
74
|
+
## Methods
|
|
75
|
+
|
|
76
|
+
### captureStackTrace()
|
|
77
|
+
|
|
78
|
+
```ts
|
|
79
|
+
static captureStackTrace(targetObject, constructorOpt?): void;
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
Defined in: `@types/node`
|
|
83
|
+
|
|
84
|
+
Creates a `.stack` property on `targetObject`, which when accessed returns
|
|
85
|
+
a string representing the location in the code at which
|
|
86
|
+
`Error.captureStackTrace()` was called.
|
|
87
|
+
|
|
88
|
+
```js
|
|
89
|
+
const myObject = {};
|
|
90
|
+
Error.captureStackTrace(myObject);
|
|
91
|
+
myObject.stack; // Similar to `new Error().stack`
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
The first line of the trace will be prefixed with
|
|
95
|
+
`${myObject.name}: ${myObject.message}`.
|
|
96
|
+
|
|
97
|
+
The optional `constructorOpt` argument accepts a function. If given, all frames
|
|
98
|
+
above `constructorOpt`, including `constructorOpt`, will be omitted from the
|
|
99
|
+
generated stack trace.
|
|
100
|
+
|
|
101
|
+
The `constructorOpt` argument is useful for hiding implementation
|
|
102
|
+
details of error generation from the user. For instance:
|
|
103
|
+
|
|
104
|
+
```js
|
|
105
|
+
function a() {
|
|
106
|
+
b();
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
function b() {
|
|
110
|
+
c();
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
function c() {
|
|
114
|
+
// Create an error without stack trace to avoid calculating the stack trace twice.
|
|
115
|
+
const { stackTraceLimit } = Error;
|
|
116
|
+
Error.stackTraceLimit = 0;
|
|
117
|
+
const error = new Error();
|
|
118
|
+
Error.stackTraceLimit = stackTraceLimit;
|
|
119
|
+
|
|
120
|
+
// Capture the stack trace above function b
|
|
121
|
+
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
|
|
122
|
+
throw error;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
a();
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
#### Parameters
|
|
129
|
+
|
|
130
|
+
| Parameter | Type |
|
|
131
|
+
| ------ | ------ |
|
|
132
|
+
| `targetObject` | `object` |
|
|
133
|
+
| `constructorOpt?` | `Function` |
|
|
134
|
+
|
|
135
|
+
#### Returns
|
|
136
|
+
|
|
137
|
+
`void`
|
|
138
|
+
|
|
139
|
+
#### Inherited from
|
|
140
|
+
|
|
141
|
+
```ts
|
|
142
|
+
Error.captureStackTrace
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
***
|
|
146
|
+
|
|
147
|
+
### isError()
|
|
148
|
+
|
|
149
|
+
```ts
|
|
150
|
+
static isError(error): error is Error;
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
Defined in: `typescript`
|
|
154
|
+
|
|
155
|
+
Indicates whether the argument provided is a built-in Error instance or not.
|
|
156
|
+
|
|
157
|
+
#### Parameters
|
|
158
|
+
|
|
159
|
+
| Parameter | Type |
|
|
160
|
+
| ------ | ------ |
|
|
161
|
+
| `error` | `unknown` |
|
|
162
|
+
|
|
163
|
+
#### Returns
|
|
164
|
+
|
|
165
|
+
`error is Error`
|
|
166
|
+
|
|
167
|
+
#### Inherited from
|
|
168
|
+
|
|
169
|
+
```ts
|
|
170
|
+
Error.isError
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
***
|
|
174
|
+
|
|
175
|
+
### prepareStackTrace()
|
|
176
|
+
|
|
177
|
+
```ts
|
|
178
|
+
static prepareStackTrace(err, stackTraces): any;
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
Defined in: `@types/node`
|
|
182
|
+
|
|
183
|
+
#### Parameters
|
|
184
|
+
|
|
185
|
+
| Parameter | Type |
|
|
186
|
+
| ------ | ------ |
|
|
187
|
+
| `err` | `Error` |
|
|
188
|
+
| `stackTraces` | `CallSite`[] |
|
|
189
|
+
|
|
190
|
+
#### Returns
|
|
191
|
+
|
|
192
|
+
`any`
|
|
193
|
+
|
|
194
|
+
#### See
|
|
195
|
+
|
|
196
|
+
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
|
|
197
|
+
|
|
198
|
+
#### Inherited from
|
|
199
|
+
|
|
200
|
+
```ts
|
|
201
|
+
Error.prepareStackTrace
|
|
202
|
+
```
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-bare](../../README.md) / [expect](../README.md) / AsymmetricMatcher
|
|
2
|
+
|
|
3
|
+
# Class: AsymmetricMatcher
|
|
4
|
+
|
|
5
|
+
Defined in: [packages/project-bare/src/expect.ts:21](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/expect.ts#L21)
|
|
6
|
+
|
|
7
|
+
A value that stands for the values it matches, as `expect.any(String)` does.
|
|
8
|
+
|
|
9
|
+
## Constructors
|
|
10
|
+
|
|
11
|
+
### Constructor
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
new AsymmetricMatcher(label, matches): AsymmetricMatcher;
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Defined in: [packages/project-bare/src/expect.ts:25](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/expect.ts#L25)
|
|
18
|
+
|
|
19
|
+
#### Parameters
|
|
20
|
+
|
|
21
|
+
| Parameter | Type |
|
|
22
|
+
| ------ | ------ |
|
|
23
|
+
| `label` | `string` |
|
|
24
|
+
| `matches` | (`other`) => `boolean` |
|
|
25
|
+
|
|
26
|
+
#### Returns
|
|
27
|
+
|
|
28
|
+
`AsymmetricMatcher`
|
|
29
|
+
|
|
30
|
+
## Methods
|
|
31
|
+
|
|
32
|
+
### asymmetricMatch()
|
|
33
|
+
|
|
34
|
+
```ts
|
|
35
|
+
asymmetricMatch(other): boolean;
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Defined in: [packages/project-bare/src/expect.ts:31](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/expect.ts#L31)
|
|
39
|
+
|
|
40
|
+
Whether `other` is a value this matcher stands for.
|
|
41
|
+
|
|
42
|
+
#### Parameters
|
|
43
|
+
|
|
44
|
+
| Parameter | Type |
|
|
45
|
+
| ------ | ------ |
|
|
46
|
+
| `other` | `unknown` |
|
|
47
|
+
|
|
48
|
+
#### Returns
|
|
49
|
+
|
|
50
|
+
`boolean`
|
|
51
|
+
|
|
52
|
+
***
|
|
53
|
+
|
|
54
|
+
### toString()
|
|
55
|
+
|
|
56
|
+
```ts
|
|
57
|
+
toString(): string;
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Defined in: [packages/project-bare/src/expect.ts:36](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/expect.ts#L36)
|
|
61
|
+
|
|
62
|
+
The matcher as a failure message shows it.
|
|
63
|
+
|
|
64
|
+
#### Returns
|
|
65
|
+
|
|
66
|
+
`string`
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-bare](../../README.md) / [expect](../README.md) / equals
|
|
2
|
+
|
|
3
|
+
# Function: equals()
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
function equals(
|
|
7
|
+
a,
|
|
8
|
+
b,
|
|
9
|
+
strict?,
|
|
10
|
+
seen?
|
|
11
|
+
): boolean;
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Defined in: [packages/project-bare/src/expect.ts:98](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/expect.ts#L98)
|
|
15
|
+
|
|
16
|
+
Whether `a` and `b` are equal as `toEqual` says: primitives by `Object.is`, dates, expressions,
|
|
17
|
+
errors, typed arrays, arrays, maps, sets and objects by what they hold, an asymmetric matcher by
|
|
18
|
+
its own match, and a property that is `undefined` as not there. With `strict`, as `toStrictEqual`
|
|
19
|
+
says, the two have one class, and a property that is `undefined` is there.
|
|
20
|
+
|
|
21
|
+
## Parameters
|
|
22
|
+
|
|
23
|
+
| Parameter | Type | Default value |
|
|
24
|
+
| ------ | ------ | ------ |
|
|
25
|
+
| `a` | `unknown` | `undefined` |
|
|
26
|
+
| `b` | `unknown` | `undefined` |
|
|
27
|
+
| `strict` | `boolean` | `false` |
|
|
28
|
+
| `seen` | \[`unknown`, `unknown`\][] | `[]` |
|
|
29
|
+
|
|
30
|
+
## Returns
|
|
31
|
+
|
|
32
|
+
`boolean`
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-bare](../../README.md) / [expect](../README.md) / format
|
|
2
|
+
|
|
3
|
+
# Function: format()
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
function format(
|
|
7
|
+
value,
|
|
8
|
+
depth?,
|
|
9
|
+
seen?
|
|
10
|
+
): string;
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Defined in: [packages/project-bare/src/expect.ts:50](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/expect.ts#L50)
|
|
14
|
+
|
|
15
|
+
The text of a value, as a failure message shows it: strings quoted, nesting cut at `depth`.
|
|
16
|
+
|
|
17
|
+
## Parameters
|
|
18
|
+
|
|
19
|
+
| Parameter | Type | Default value |
|
|
20
|
+
| ------ | ------ | ------ |
|
|
21
|
+
| `value` | `unknown` | `undefined` |
|
|
22
|
+
| `depth` | `number` | `4` |
|
|
23
|
+
| `seen` | readonly `unknown`[] | `[]` |
|
|
24
|
+
|
|
25
|
+
## Returns
|
|
26
|
+
|
|
27
|
+
`string`
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-bare](../../README.md) / [expect](../README.md) / pollWith
|
|
2
|
+
|
|
3
|
+
# Function: pollWith()
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
function pollWith(given): void;
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-bare/src/expect.ts:463](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/expect.ts#L463)
|
|
10
|
+
|
|
11
|
+
Gives `expect.poll`, and `vi.waitFor`, the timers they wait by: the runner calls it as a run starts.
|
|
12
|
+
|
|
13
|
+
## Parameters
|
|
14
|
+
|
|
15
|
+
| Parameter | Type |
|
|
16
|
+
| ------ | ------ |
|
|
17
|
+
| `given` | [`Timers`](../type-aliases/Timers.md) |
|
|
18
|
+
|
|
19
|
+
## Returns
|
|
20
|
+
|
|
21
|
+
`void`
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-bare](../../README.md) / [expect](../README.md) / retry
|
|
2
|
+
|
|
3
|
+
# Function: retry()
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
function retry<T>(attempt, __namedParameters?): Promise<T>;
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-bare/src/expect.ts:483](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/expect.ts#L483)
|
|
10
|
+
|
|
11
|
+
Runs `attempt` until it gives, or fails for the last time, `timeout` ms after the first try.
|
|
12
|
+
|
|
13
|
+
## Type Parameters
|
|
14
|
+
|
|
15
|
+
| Type Parameter |
|
|
16
|
+
| ------ |
|
|
17
|
+
| `T` |
|
|
18
|
+
|
|
19
|
+
## Parameters
|
|
20
|
+
|
|
21
|
+
| Parameter | Type |
|
|
22
|
+
| ------ | ------ |
|
|
23
|
+
| `attempt` | () => `T` \| `Promise`\<`T`\> |
|
|
24
|
+
| `__namedParameters` | [`PollOptions`](../type-aliases/PollOptions.md) |
|
|
25
|
+
|
|
26
|
+
## Returns
|
|
27
|
+
|
|
28
|
+
`Promise`\<`T`\>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-bare](../../README.md) / [expect](../README.md) / sleep
|
|
2
|
+
|
|
3
|
+
# Function: sleep()
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
function sleep(ms): Promise<void>;
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-bare/src/expect.ts:474](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/expect.ts#L474)
|
|
10
|
+
|
|
11
|
+
Waits `ms` by the runner's timers.
|
|
12
|
+
|
|
13
|
+
## Parameters
|
|
14
|
+
|
|
15
|
+
| Parameter | Type |
|
|
16
|
+
| ------ | ------ |
|
|
17
|
+
| `ms` | `number` |
|
|
18
|
+
|
|
19
|
+
## Returns
|
|
20
|
+
|
|
21
|
+
`Promise`\<`void`\>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-bare](../../README.md) / [expect](../README.md) / timersOf
|
|
2
|
+
|
|
3
|
+
# Function: timersOf()
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
function timersOf(): Timers;
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-bare/src/expect.ts:468](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/expect.ts#L468)
|
|
10
|
+
|
|
11
|
+
The timers a wait is given, or an error when the runner has given none.
|
|
12
|
+
|
|
13
|
+
## Returns
|
|
14
|
+
|
|
15
|
+
[`Timers`](../type-aliases/Timers.md)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-bare](../../README.md) / [expect](../README.md) / Assertions
|
|
2
|
+
|
|
3
|
+
# Type Alias: Assertions
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
type Assertions = Matchers & object;
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-bare/src/expect.ts:259](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/expect.ts#L259)
|
|
10
|
+
|
|
11
|
+
`expect(value)`: its [Matchers](Matchers.md), their negation, and the matchers of what a promise settles with.
|
|
12
|
+
|
|
13
|
+
## Type Declaration
|
|
14
|
+
|
|
15
|
+
| Name | Type | Description | Defined in |
|
|
16
|
+
| ------ | ------ | ------ | ------ |
|
|
17
|
+
| `not` | [`Matchers`](Matchers.md) | The negation of each matcher. | [packages/project-bare/src/expect.ts:261](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/expect.ts#L261) |
|
|
18
|
+
| `rejects` | [`Matchers`](Matchers.md)\<`Promise`\<`void`\>\> & `object` | The matchers of what the promise rejects with; it must reject. | [packages/project-bare/src/expect.ts:263](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/expect.ts#L263) |
|
|
19
|
+
| `resolves` | [`Matchers`](Matchers.md)\<`Promise`\<`void`\>\> & `object` | The matchers of what the promise resolves with; it must resolve. | [packages/project-bare/src/expect.ts:265](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/expect.ts#L265) |
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-bare](../../README.md) / [expect](../README.md) / ExpectStatics
|
|
2
|
+
|
|
3
|
+
# Type Alias: ExpectStatics
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
type ExpectStatics = object;
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-bare/src/expect.ts:502](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/expect.ts#L502)
|
|
10
|
+
|
|
11
|
+
The asymmetric matchers, and the helpers, of [expect](../variables/expect.md).
|
|
12
|
+
|
|
13
|
+
## Properties
|
|
14
|
+
|
|
15
|
+
### not
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
readonly not: Pick<ExpectStatics,
|
|
19
|
+
| "objectContaining"
|
|
20
|
+
| "arrayContaining"
|
|
21
|
+
| "stringContaining"
|
|
22
|
+
| "stringMatching">;
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Defined in: [packages/project-bare/src/expect.ts:527](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/expect.ts#L527)
|
|
26
|
+
|
|
27
|
+
The negation of the matchers that take a subset.
|
|
28
|
+
|
|
29
|
+
## Methods
|
|
30
|
+
|
|
31
|
+
### any()
|
|
32
|
+
|
|
33
|
+
```ts
|
|
34
|
+
any(type): AsymmetricMatcher;
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Defined in: [packages/project-bare/src/expect.ts:504](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/expect.ts#L504)
|
|
38
|
+
|
|
39
|
+
Matches any value of the class, as a primitive of its own type: `String` matches `'a'`.
|
|
40
|
+
|
|
41
|
+
#### Parameters
|
|
42
|
+
|
|
43
|
+
| Parameter | Type |
|
|
44
|
+
| ------ | ------ |
|
|
45
|
+
| `type` | (...`args`) => `unknown` |
|
|
46
|
+
|
|
47
|
+
#### Returns
|
|
48
|
+
|
|
49
|
+
[`AsymmetricMatcher`](../classes/AsymmetricMatcher.md)
|
|
50
|
+
|
|
51
|
+
***
|
|
52
|
+
|
|
53
|
+
### anything()
|
|
54
|
+
|
|
55
|
+
```ts
|
|
56
|
+
anything(): AsymmetricMatcher;
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Defined in: [packages/project-bare/src/expect.ts:506](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/expect.ts#L506)
|
|
60
|
+
|
|
61
|
+
Matches any value but `null` and `undefined`.
|
|
62
|
+
|
|
63
|
+
#### Returns
|
|
64
|
+
|
|
65
|
+
[`AsymmetricMatcher`](../classes/AsymmetricMatcher.md)
|
|
66
|
+
|
|
67
|
+
***
|
|
68
|
+
|
|
69
|
+
### arrayContaining()
|
|
70
|
+
|
|
71
|
+
```ts
|
|
72
|
+
arrayContaining(items): AsymmetricMatcher;
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Defined in: [packages/project-bare/src/expect.ts:510](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/expect.ts#L510)
|
|
76
|
+
|
|
77
|
+
Matches an array that holds each item, it may hold others.
|
|
78
|
+
|
|
79
|
+
#### Parameters
|
|
80
|
+
|
|
81
|
+
| Parameter | Type |
|
|
82
|
+
| ------ | ------ |
|
|
83
|
+
| `items` | readonly `unknown`[] |
|
|
84
|
+
|
|
85
|
+
#### Returns
|
|
86
|
+
|
|
87
|
+
[`AsymmetricMatcher`](../classes/AsymmetricMatcher.md)
|
|
88
|
+
|
|
89
|
+
***
|
|
90
|
+
|
|
91
|
+
### fail()
|
|
92
|
+
|
|
93
|
+
```ts
|
|
94
|
+
fail(message?): never;
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Defined in: [packages/project-bare/src/expect.ts:516](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/expect.ts#L516)
|
|
98
|
+
|
|
99
|
+
Fails the test with the message.
|
|
100
|
+
|
|
101
|
+
#### Parameters
|
|
102
|
+
|
|
103
|
+
| Parameter | Type |
|
|
104
|
+
| ------ | ------ |
|
|
105
|
+
| `message?` | `string` |
|
|
106
|
+
|
|
107
|
+
#### Returns
|
|
108
|
+
|
|
109
|
+
`never`
|
|
110
|
+
|
|
111
|
+
***
|
|
112
|
+
|
|
113
|
+
### objectContaining()
|
|
114
|
+
|
|
115
|
+
```ts
|
|
116
|
+
objectContaining(subset): AsymmetricMatcher;
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
Defined in: [packages/project-bare/src/expect.ts:508](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/expect.ts#L508)
|
|
120
|
+
|
|
121
|
+
Matches an object that holds each property of the subset, it may hold others.
|
|
122
|
+
|
|
123
|
+
#### Parameters
|
|
124
|
+
|
|
125
|
+
| Parameter | Type |
|
|
126
|
+
| ------ | ------ |
|
|
127
|
+
| `subset` | `Record`\<`PropertyKey`, `unknown`\> |
|
|
128
|
+
|
|
129
|
+
#### Returns
|
|
130
|
+
|
|
131
|
+
[`AsymmetricMatcher`](../classes/AsymmetricMatcher.md)
|
|
132
|
+
|
|
133
|
+
***
|
|
134
|
+
|
|
135
|
+
### poll()
|
|
136
|
+
|
|
137
|
+
```ts
|
|
138
|
+
poll(get, options?): Matchers<Promise<void>> & object;
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
Defined in: [packages/project-bare/src/expect.ts:520](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/expect.ts#L520)
|
|
142
|
+
|
|
143
|
+
Retries the value `get` gives until the matcher holds.
|
|
144
|
+
|
|
145
|
+
#### Parameters
|
|
146
|
+
|
|
147
|
+
| Parameter | Type |
|
|
148
|
+
| ------ | ------ |
|
|
149
|
+
| `get` | () => `unknown` |
|
|
150
|
+
| `options?` | [`PollOptions`](PollOptions.md) |
|
|
151
|
+
|
|
152
|
+
#### Returns
|
|
153
|
+
|
|
154
|
+
[`Matchers`](Matchers.md)\<`Promise`\<`void`\>\> & `object`
|
|
155
|
+
|
|
156
|
+
***
|
|
157
|
+
|
|
158
|
+
### stringContaining()
|
|
159
|
+
|
|
160
|
+
```ts
|
|
161
|
+
stringContaining(text): AsymmetricMatcher;
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
Defined in: [packages/project-bare/src/expect.ts:512](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/expect.ts#L512)
|
|
165
|
+
|
|
166
|
+
Matches a string that contains the text.
|
|
167
|
+
|
|
168
|
+
#### Parameters
|
|
169
|
+
|
|
170
|
+
| Parameter | Type |
|
|
171
|
+
| ------ | ------ |
|
|
172
|
+
| `text` | `string` |
|
|
173
|
+
|
|
174
|
+
#### Returns
|
|
175
|
+
|
|
176
|
+
[`AsymmetricMatcher`](../classes/AsymmetricMatcher.md)
|
|
177
|
+
|
|
178
|
+
***
|
|
179
|
+
|
|
180
|
+
### stringMatching()
|
|
181
|
+
|
|
182
|
+
```ts
|
|
183
|
+
stringMatching(pattern): AsymmetricMatcher;
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
Defined in: [packages/project-bare/src/expect.ts:514](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/expect.ts#L514)
|
|
187
|
+
|
|
188
|
+
Matches a string that matches the pattern, or contains the text.
|
|
189
|
+
|
|
190
|
+
#### Parameters
|
|
191
|
+
|
|
192
|
+
| Parameter | Type |
|
|
193
|
+
| ------ | ------ |
|
|
194
|
+
| `pattern` | `string` \| `RegExp` |
|
|
195
|
+
|
|
196
|
+
#### Returns
|
|
197
|
+
|
|
198
|
+
[`AsymmetricMatcher`](../classes/AsymmetricMatcher.md)
|
|
199
|
+
|
|
200
|
+
***
|
|
201
|
+
|
|
202
|
+
### unreachable()
|
|
203
|
+
|
|
204
|
+
```ts
|
|
205
|
+
unreachable(message?): never;
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
Defined in: [packages/project-bare/src/expect.ts:518](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/expect.ts#L518)
|
|
209
|
+
|
|
210
|
+
Fails the test as one that reached code it should not.
|
|
211
|
+
|
|
212
|
+
#### Parameters
|
|
213
|
+
|
|
214
|
+
| Parameter | Type |
|
|
215
|
+
| ------ | ------ |
|
|
216
|
+
| `message?` | `string` |
|
|
217
|
+
|
|
218
|
+
#### Returns
|
|
219
|
+
|
|
220
|
+
`never`
|