@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,66 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-bare](../../README.md) / [expect](../README.md) / Timers
|
|
2
|
+
|
|
3
|
+
# Type Alias: Timers
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
type Timers = object;
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-bare/src/expect.ts:454](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/expect.ts#L454)
|
|
10
|
+
|
|
11
|
+
What `expect.poll` waits by: the timers and the clock of the runner.
|
|
12
|
+
|
|
13
|
+
## Properties
|
|
14
|
+
|
|
15
|
+
### clearTimeout
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
readonly clearTimeout: (handle) => void;
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Defined in: [packages/project-bare/src/expect.ts:456](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/expect.ts#L456)
|
|
22
|
+
|
|
23
|
+
#### Parameters
|
|
24
|
+
|
|
25
|
+
| Parameter | Type |
|
|
26
|
+
| ------ | ------ |
|
|
27
|
+
| `handle` | `unknown` |
|
|
28
|
+
|
|
29
|
+
#### Returns
|
|
30
|
+
|
|
31
|
+
`void`
|
|
32
|
+
|
|
33
|
+
***
|
|
34
|
+
|
|
35
|
+
### now
|
|
36
|
+
|
|
37
|
+
```ts
|
|
38
|
+
readonly now: () => number;
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Defined in: [packages/project-bare/src/expect.ts:457](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/expect.ts#L457)
|
|
42
|
+
|
|
43
|
+
#### Returns
|
|
44
|
+
|
|
45
|
+
`number`
|
|
46
|
+
|
|
47
|
+
***
|
|
48
|
+
|
|
49
|
+
### setTimeout
|
|
50
|
+
|
|
51
|
+
```ts
|
|
52
|
+
readonly setTimeout: (callback, ms) => unknown;
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Defined in: [packages/project-bare/src/expect.ts:455](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/expect.ts#L455)
|
|
56
|
+
|
|
57
|
+
#### Parameters
|
|
58
|
+
|
|
59
|
+
| Parameter | Type |
|
|
60
|
+
| ------ | ------ |
|
|
61
|
+
| `callback` | () => `void` |
|
|
62
|
+
| `ms` | `number` |
|
|
63
|
+
|
|
64
|
+
#### Returns
|
|
65
|
+
|
|
66
|
+
`unknown`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-bare](../../README.md) / [expect](../README.md) / expect
|
|
2
|
+
|
|
3
|
+
# Variable: expect
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
const expect: (actual, message?) => Assertions & ExpectStatics;
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-bare/src/expect.ts:586](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/expect.ts#L586)
|
|
10
|
+
|
|
11
|
+
Asserts of `actual`, as Vitest's `expect` does, of the matchers the kit's tests use. `message`
|
|
12
|
+
prefixes a failure.
|
|
13
|
+
|
|
14
|
+
```ts
|
|
15
|
+
expect(await store.get('key')).toEqual({ value: 1 })
|
|
16
|
+
await expect(store.get('missing')).rejects.toBeInstanceOf(NotFoundError)
|
|
17
|
+
```
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
[Documentation](../../../README.md) / [@wtf/project-bare](../README.md) / globals
|
|
2
|
+
|
|
3
|
+
# globals
|
|
4
|
+
|
|
5
|
+
The web standards Bare does not have, which a module of Bare installs as globals when it is
|
|
6
|
+
imported: [BARE\_GLOBALS](variables/BARE_GLOBALS.md), the imports a test bundle begins with.
|
|
7
|
+
|
|
8
|
+
## Variables
|
|
9
|
+
|
|
10
|
+
- [BARE\_GLOBALS](variables/BARE_GLOBALS.md)
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-bare](../../README.md) / [globals](../README.md) / BARE\_GLOBALS
|
|
2
|
+
|
|
3
|
+
# Variable: BARE\_GLOBALS
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
const BARE_GLOBALS: readonly string[];
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-bare/src/globals.ts:14](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/globals.ts#L14)
|
|
10
|
+
|
|
11
|
+
The modules a test bundle imports first, each installing what Bare lacks: the Streams standard,
|
|
12
|
+
`TextEncoder` and `TextDecoder`, `AbortController` and `AbortSignal`, `EventTarget`, `crypto`
|
|
13
|
+
and `performance`. `URL`, `structuredClone`, `Buffer` and the timers Bare has. A project
|
|
14
|
+
installs each it uses, as devDependencies, or names the ones it needs in the `globals` option.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
[Documentation](../../../README.md) / [@wtf/project-bare](../README.md) / modules
|
|
2
|
+
|
|
3
|
+
# modules
|
|
4
|
+
|
|
5
|
+
The modules of Bare that stand in for Node's: [NODE\_MODULES](variables/NODE_MODULES.md), by the name of the module of
|
|
6
|
+
Node, `fs` for `node:fs`, to the module of Bare, `bare-fs`. Each is Holepunch's, of its own
|
|
7
|
+
API shaped on Node's, close but not the same; a test that imports `node:*` runs on Bare by
|
|
8
|
+
them, and a module that has none is a build error, which a project's own `modules` option may map.
|
|
9
|
+
|
|
10
|
+
## Variables
|
|
11
|
+
|
|
12
|
+
- [NODE\_MODULES](variables/NODE_MODULES.md)
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-bare](../../README.md) / [modules](../README.md) / NODE\_MODULES
|
|
2
|
+
|
|
3
|
+
# Variable: NODE\_MODULES
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
const NODE_MODULES: Readonly<Record<string, string>>;
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-bare/src/modules.ts:14](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/modules.ts#L14)
|
|
10
|
+
|
|
11
|
+
Node's modules, by the name after `node:`, and the module of Bare each is bundled as: left as an
|
|
12
|
+
import of that name, which Bare resolves from the project, so the project installs it.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
[Documentation](../../../README.md) / [@wtf/project-bare](../README.md) / node
|
|
2
|
+
|
|
3
|
+
# node
|
|
4
|
+
|
|
5
|
+
The test files of a project, by Node's own glob: [testFilesOf](functions/testFilesOf.md), the files its patterns match.
|
|
6
|
+
|
|
7
|
+
## Functions
|
|
8
|
+
|
|
9
|
+
- [testFilesOf](functions/testFilesOf.md)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-bare](../../README.md) / [node](../README.md) / testFilesOf
|
|
2
|
+
|
|
3
|
+
# Function: testFilesOf()
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
function testFilesOf(root, patterns): Promise<string[]>;
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-bare/src/node.ts:18](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/node.ts#L18)
|
|
10
|
+
|
|
11
|
+
The files of `root` the `patterns` match, as paths from `root`, sorted, each once. A pattern
|
|
12
|
+
that matches no file is a [NoTestFilesError](../../errors/classes/NoTestFilesError.md), as a run of no test would pass for nothing.
|
|
13
|
+
|
|
14
|
+
```ts
|
|
15
|
+
const files = await testFilesOf(root, ['test/**/*.bare.test.ts'])
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Parameters
|
|
19
|
+
|
|
20
|
+
| Parameter | Type |
|
|
21
|
+
| ------ | ------ |
|
|
22
|
+
| `root` | `string` |
|
|
23
|
+
| `patterns` | readonly `string`[] |
|
|
24
|
+
|
|
25
|
+
## Returns
|
|
26
|
+
|
|
27
|
+
`Promise`\<`string`[]\>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
[Documentation](../../../README.md) / [@wtf/project-bare](../README.md) / run
|
|
2
|
+
|
|
3
|
+
# run
|
|
4
|
+
|
|
5
|
+
The run of a bundle under `bare`: [runBare](functions/runBare.md) starts it by the platform's `spawn`, writes
|
|
6
|
+
what it prints to the platform's terminal as it prints it, and gives its exit code.
|
|
7
|
+
|
|
8
|
+
```ts
|
|
9
|
+
const code = await runBare(platform, { file: 'node_modules/.cache/project-bare/test__a.test.js' })
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Type Aliases
|
|
13
|
+
|
|
14
|
+
- [RunBareOptions](type-aliases/RunBareOptions.md)
|
|
15
|
+
|
|
16
|
+
## Functions
|
|
17
|
+
|
|
18
|
+
- [runBare](functions/runBare.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-bare](../../README.md) / [run](../README.md) / runBare
|
|
2
|
+
|
|
3
|
+
# Function: runBare()
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
function runBare(platform, options): Promise<number>;
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-bare/src/run.ts:49](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/run.ts#L49)
|
|
10
|
+
|
|
11
|
+
Runs the bundle by `bare`, in the platform's environment, and gives its exit code, 0 of a run
|
|
12
|
+
that passed. A `bare` that cannot start is a [BareUnavailableError](../../errors/classes/BareUnavailableError.md); a run that does not
|
|
13
|
+
end in its `timeout` is killed, a [BareTimeoutError](../../errors/classes/BareTimeoutError.md).
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
| Parameter | Type |
|
|
18
|
+
| ------ | ------ |
|
|
19
|
+
| `platform` | [`BarePlatform`](../../type-aliases/BarePlatform.md) |
|
|
20
|
+
| `options` | [`RunBareOptions`](../type-aliases/RunBareOptions.md) |
|
|
21
|
+
|
|
22
|
+
## Returns
|
|
23
|
+
|
|
24
|
+
`Promise`\<`number`\>
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-bare](../../README.md) / [run](../README.md) / RunBareOptions
|
|
2
|
+
|
|
3
|
+
# Type Alias: RunBareOptions
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
type RunBareOptions = object;
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-bare/src/run.ts:17](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/run.ts#L17)
|
|
10
|
+
|
|
11
|
+
What a run of `bare` is given.
|
|
12
|
+
|
|
13
|
+
## Properties
|
|
14
|
+
|
|
15
|
+
### bare?
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
readonly optional bare?: string;
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Defined in: [packages/project-bare/src/run.ts:23](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/run.ts#L23)
|
|
22
|
+
|
|
23
|
+
The command that starts Bare, `bare` by default, found on the `PATH` of the platform's environment.
|
|
24
|
+
|
|
25
|
+
***
|
|
26
|
+
|
|
27
|
+
### cwd?
|
|
28
|
+
|
|
29
|
+
```ts
|
|
30
|
+
readonly optional cwd?: string;
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Defined in: [packages/project-bare/src/run.ts:21](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/run.ts#L21)
|
|
34
|
+
|
|
35
|
+
The folder it runs in: the project's, by default the platform's working folder.
|
|
36
|
+
|
|
37
|
+
***
|
|
38
|
+
|
|
39
|
+
### file
|
|
40
|
+
|
|
41
|
+
```ts
|
|
42
|
+
readonly file: string;
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Defined in: [packages/project-bare/src/run.ts:19](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/run.ts#L19)
|
|
46
|
+
|
|
47
|
+
The bundle to run: a path.
|
|
48
|
+
|
|
49
|
+
***
|
|
50
|
+
|
|
51
|
+
### test?
|
|
52
|
+
|
|
53
|
+
```ts
|
|
54
|
+
readonly optional test?: string;
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Defined in: [packages/project-bare/src/run.ts:27](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/run.ts#L27)
|
|
58
|
+
|
|
59
|
+
The name of the test file, for what is said of a run that did not end: the file by default.
|
|
60
|
+
|
|
61
|
+
***
|
|
62
|
+
|
|
63
|
+
### timeout?
|
|
64
|
+
|
|
65
|
+
```ts
|
|
66
|
+
readonly optional timeout?: number;
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Defined in: [packages/project-bare/src/run.ts:25](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/run.ts#L25)
|
|
70
|
+
|
|
71
|
+
Milliseconds a run has, 300 000 by default, and then it is killed.
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
[Documentation](../../../README.md) / [@wtf/project-bare](../README.md) / shim
|
|
2
|
+
|
|
3
|
+
# shim
|
|
4
|
+
|
|
5
|
+
A Vitest on Bare: the runtime a test bundle gets in place of `vitest`, which cannot run on Bare.
|
|
6
|
+
It has the parts a kit suite and a test of a package use: `describe`, `it` and `test`, each with
|
|
7
|
+
`skip`, `only`, `todo`, `skipIf`, `runIf`, `each` and `for`, `it.fails`; the hooks `beforeAll`,
|
|
8
|
+
`afterAll`, `beforeEach` and `afterEach`, and `onTestFinished`; [expect](../expect/variables/expect.md) of ./expect;
|
|
9
|
+
and `vi`, the mock functions, `vi.spyOn`, `vi.waitFor` and `vi.stubGlobal`. A run is one file
|
|
10
|
+
after another, one test after another, each under a timeout; what it does not have, fake
|
|
11
|
+
timers, module mocks, snapshots and concurrency, is not there to call, so a test that wants it
|
|
12
|
+
fails with a `TypeError` that names it.
|
|
13
|
+
|
|
14
|
+
A bundle imports it as `vitest`; it reads nothing of the runtime but what [run](functions/run.md) is given: where
|
|
15
|
+
to write, the timers, the clock. [createRunner](functions/createRunner.md) makes a runner of its own, which is how
|
|
16
|
+
its tests run it in Node.
|
|
17
|
+
|
|
18
|
+
```ts
|
|
19
|
+
import { describe, expect, it, run } from '@wtf/project-bare/shim'
|
|
20
|
+
|
|
21
|
+
describe('add', () => it('adds', () => expect(1 + 1).toBe(2)))
|
|
22
|
+
const summary = await run({ log: console.log, setTimeout, clearTimeout, now: Date.now })
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Type Aliases
|
|
26
|
+
|
|
27
|
+
- [Describe](type-aliases/Describe.md)
|
|
28
|
+
- [Hook](type-aliases/Hook.md)
|
|
29
|
+
- [It](type-aliases/It.md)
|
|
30
|
+
- [Mock](type-aliases/Mock.md)
|
|
31
|
+
- [Runner](type-aliases/Runner.md)
|
|
32
|
+
- [RunOptions](type-aliases/RunOptions.md)
|
|
33
|
+
- [Summary](type-aliases/Summary.md)
|
|
34
|
+
- [TestContext](type-aliases/TestContext.md)
|
|
35
|
+
- [TestFunction](type-aliases/TestFunction.md)
|
|
36
|
+
- [TestOptions](type-aliases/TestOptions.md)
|
|
37
|
+
|
|
38
|
+
## Variables
|
|
39
|
+
|
|
40
|
+
- [afterAll](variables/afterAll.md)
|
|
41
|
+
- [afterEach](variables/afterEach.md)
|
|
42
|
+
- [beforeAll](variables/beforeAll.md)
|
|
43
|
+
- [beforeEach](variables/beforeEach.md)
|
|
44
|
+
- [describe](variables/describe.md)
|
|
45
|
+
- [it](variables/it.md)
|
|
46
|
+
- [onTestFinished](variables/onTestFinished.md)
|
|
47
|
+
- [test](variables/test.md)
|
|
48
|
+
- [vi](variables/vi.md)
|
|
49
|
+
|
|
50
|
+
## Functions
|
|
51
|
+
|
|
52
|
+
- [createRunner](functions/createRunner.md)
|
|
53
|
+
- [run](functions/run.md)
|
|
54
|
+
|
|
55
|
+
## References
|
|
56
|
+
|
|
57
|
+
### AssertionError
|
|
58
|
+
|
|
59
|
+
Re-exports [AssertionError](../expect/classes/AssertionError.md)
|
|
60
|
+
|
|
61
|
+
***
|
|
62
|
+
|
|
63
|
+
### expect
|
|
64
|
+
|
|
65
|
+
Re-exports [expect](../expect/variables/expect.md)
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-bare](../../README.md) / [shim](../README.md) / createRunner
|
|
2
|
+
|
|
3
|
+
# Function: createRunner()
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
function createRunner(): Runner;
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-bare/src/shim.ts:232](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L232)
|
|
10
|
+
|
|
11
|
+
A runner of its own, with nothing registered. The module's own exports are the functions of the
|
|
12
|
+
one runner a bundle's test files register in.
|
|
13
|
+
|
|
14
|
+
## Returns
|
|
15
|
+
|
|
16
|
+
[`Runner`](../type-aliases/Runner.md)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-bare](../../README.md) / [shim](../README.md) / run
|
|
2
|
+
|
|
3
|
+
# Function: run()
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
function run(options): Promise<Summary>;
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-bare/src/shim.ts:567](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L567)
|
|
10
|
+
|
|
11
|
+
Runs what the test files registered, one test after another, and reports it.
|
|
12
|
+
|
|
13
|
+
## Parameters
|
|
14
|
+
|
|
15
|
+
| Parameter | Type |
|
|
16
|
+
| ------ | ------ |
|
|
17
|
+
| `options` | [`RunOptions`](../type-aliases/RunOptions.md) |
|
|
18
|
+
|
|
19
|
+
## Returns
|
|
20
|
+
|
|
21
|
+
`Promise`\<[`Summary`](../type-aliases/Summary.md)\>
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-bare](../../README.md) / [shim](../README.md) / Describe
|
|
2
|
+
|
|
3
|
+
# Type Alias: Describe()
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
type Describe = void;
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-bare/src/shim.ts:102](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L102)
|
|
10
|
+
|
|
11
|
+
`describe`, and its variants.
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
type Describe(name, fn): void;
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
`describe`, and its variants.
|
|
18
|
+
|
|
19
|
+
## Parameters
|
|
20
|
+
|
|
21
|
+
| Parameter | Type |
|
|
22
|
+
| ------ | ------ |
|
|
23
|
+
| `name` | `string` |
|
|
24
|
+
| `fn` | () => `void` |
|
|
25
|
+
|
|
26
|
+
## Returns
|
|
27
|
+
|
|
28
|
+
`void`
|
|
29
|
+
|
|
30
|
+
## Properties
|
|
31
|
+
|
|
32
|
+
### each
|
|
33
|
+
|
|
34
|
+
```ts
|
|
35
|
+
each: (rows) => (name, fn) => void;
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Defined in: [packages/project-bare/src/shim.ts:109](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L109)
|
|
39
|
+
|
|
40
|
+
#### Parameters
|
|
41
|
+
|
|
42
|
+
| Parameter | Type |
|
|
43
|
+
| ------ | ------ |
|
|
44
|
+
| `rows` | readonly `unknown`[] |
|
|
45
|
+
|
|
46
|
+
#### Returns
|
|
47
|
+
|
|
48
|
+
(`name`, `fn`) => `void`
|
|
49
|
+
|
|
50
|
+
***
|
|
51
|
+
|
|
52
|
+
### for
|
|
53
|
+
|
|
54
|
+
```ts
|
|
55
|
+
for: (rows) => (name, fn) => void;
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Defined in: [packages/project-bare/src/shim.ts:110](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L110)
|
|
59
|
+
|
|
60
|
+
#### Parameters
|
|
61
|
+
|
|
62
|
+
| Parameter | Type |
|
|
63
|
+
| ------ | ------ |
|
|
64
|
+
| `rows` | readonly `unknown`[] |
|
|
65
|
+
|
|
66
|
+
#### Returns
|
|
67
|
+
|
|
68
|
+
(`name`, `fn`) => `void`
|
|
69
|
+
|
|
70
|
+
***
|
|
71
|
+
|
|
72
|
+
### only
|
|
73
|
+
|
|
74
|
+
```ts
|
|
75
|
+
only: (name, fn) => void;
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Defined in: [packages/project-bare/src/shim.ts:105](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L105)
|
|
79
|
+
|
|
80
|
+
#### Parameters
|
|
81
|
+
|
|
82
|
+
| Parameter | Type |
|
|
83
|
+
| ------ | ------ |
|
|
84
|
+
| `name` | `string` |
|
|
85
|
+
| `fn` | () => `void` |
|
|
86
|
+
|
|
87
|
+
#### Returns
|
|
88
|
+
|
|
89
|
+
`void`
|
|
90
|
+
|
|
91
|
+
***
|
|
92
|
+
|
|
93
|
+
### runIf
|
|
94
|
+
|
|
95
|
+
```ts
|
|
96
|
+
runIf: (condition) => Describe;
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Defined in: [packages/project-bare/src/shim.ts:108](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L108)
|
|
100
|
+
|
|
101
|
+
#### Parameters
|
|
102
|
+
|
|
103
|
+
| Parameter | Type |
|
|
104
|
+
| ------ | ------ |
|
|
105
|
+
| `condition` | `unknown` |
|
|
106
|
+
|
|
107
|
+
#### Returns
|
|
108
|
+
|
|
109
|
+
`Describe`
|
|
110
|
+
|
|
111
|
+
***
|
|
112
|
+
|
|
113
|
+
### skip
|
|
114
|
+
|
|
115
|
+
```ts
|
|
116
|
+
skip: (name, fn?) => void;
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
Defined in: [packages/project-bare/src/shim.ts:104](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L104)
|
|
120
|
+
|
|
121
|
+
#### Parameters
|
|
122
|
+
|
|
123
|
+
| Parameter | Type |
|
|
124
|
+
| ------ | ------ |
|
|
125
|
+
| `name` | `string` |
|
|
126
|
+
| `fn?` | () => `void` |
|
|
127
|
+
|
|
128
|
+
#### Returns
|
|
129
|
+
|
|
130
|
+
`void`
|
|
131
|
+
|
|
132
|
+
***
|
|
133
|
+
|
|
134
|
+
### skipIf
|
|
135
|
+
|
|
136
|
+
```ts
|
|
137
|
+
skipIf: (condition) => Describe;
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
Defined in: [packages/project-bare/src/shim.ts:107](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L107)
|
|
141
|
+
|
|
142
|
+
#### Parameters
|
|
143
|
+
|
|
144
|
+
| Parameter | Type |
|
|
145
|
+
| ------ | ------ |
|
|
146
|
+
| `condition` | `unknown` |
|
|
147
|
+
|
|
148
|
+
#### Returns
|
|
149
|
+
|
|
150
|
+
`Describe`
|
|
151
|
+
|
|
152
|
+
***
|
|
153
|
+
|
|
154
|
+
### todo
|
|
155
|
+
|
|
156
|
+
```ts
|
|
157
|
+
todo: (name, fn?) => void;
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
Defined in: [packages/project-bare/src/shim.ts:106](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L106)
|
|
161
|
+
|
|
162
|
+
#### Parameters
|
|
163
|
+
|
|
164
|
+
| Parameter | Type |
|
|
165
|
+
| ------ | ------ |
|
|
166
|
+
| `name` | `string` |
|
|
167
|
+
| `fn?` | () => `void` |
|
|
168
|
+
|
|
169
|
+
#### Returns
|
|
170
|
+
|
|
171
|
+
`void`
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-bare](../../README.md) / [shim](../README.md) / Hook
|
|
2
|
+
|
|
3
|
+
# Type Alias: Hook
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
type Hook = (fn, timeout?) => void;
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-bare/src/shim.ts:131](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/shim.ts#L131)
|
|
10
|
+
|
|
11
|
+
A hook: the function and its timeout.
|
|
12
|
+
|
|
13
|
+
## Parameters
|
|
14
|
+
|
|
15
|
+
| Parameter | Type |
|
|
16
|
+
| ------ | ------ |
|
|
17
|
+
| `fn` | [`TestFunction`](TestFunction.md) |
|
|
18
|
+
| `timeout?` | `number` |
|
|
19
|
+
|
|
20
|
+
## Returns
|
|
21
|
+
|
|
22
|
+
`void`
|