@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
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
const astroSchema: StandardSchemaV1<AstroSection> & StandardJSONSchemaV1<AstroSection>;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-astro/src/schema.ts:113](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.
|
|
9
|
+
Defined in: [packages/project-astro/src/schema.ts:113](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-astro/src/schema.ts#L113)
|
|
10
10
|
|
|
11
11
|
The schema of the options of `baseConfig()` of ./config a configuration holds, `AstroSection`:
|
|
12
12
|
the `markdown` processor's options, the `vite` options, whether `pages` and `links` run, and the
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
[Documentation](../../README.md) / @wtf/project-bare
|
|
2
|
+
|
|
3
|
+
# @wtf/project-bare
|
|
4
|
+
|
|
5
|
+
Run your tests on [Bare](https://github.com/holepunchto/bare), Holepunch's runtime, which Vitest
|
|
6
|
+
cannot run on. You write the tests as you write every test, with `describe`, `it` and `expect`.
|
|
7
|
+
Each test file is bundled by esbuild, from your packages' builds, with a small Vitest-shaped
|
|
8
|
+
runtime in the place of `vitest`, and runs under `bare`: it prints what passed and failed, and
|
|
9
|
+
the run ends with a non-zero code when a test failed. A suite written over `vitest`, as the kit's
|
|
10
|
+
`-suite` packages are, runs on Bare as it is.
|
|
11
|
+
|
|
12
|
+
| Subpath | What you get |
|
|
13
|
+
| ----------- | ---------------------------------------------------------------------------------------------------------------- |
|
|
14
|
+
| `.` | The type `BarePlatform`: what a run takes of the platform |
|
|
15
|
+
| `./test` | `bareTest(platform, options)`: bundles and runs each file, one after the other, and reports each and the whole |
|
|
16
|
+
| `./bundle` | `bundleTests(options)`: one self-contained bundle of each test file, for `bare`; `SHIM`, `BUNDLE_DIR` |
|
|
17
|
+
| `./run` | `runBare(platform, options)`: runs a bundle by `bare`, writes what it prints as it prints it, and gives its code |
|
|
18
|
+
| `./node` | `testFilesOf(root, patterns)`: the test files of patterns, by Node's own glob |
|
|
19
|
+
| `./shim` | The runtime a bundle gets as `vitest`: `describe`, `it`, hooks, `vi`, and `createRunner`, `run` |
|
|
20
|
+
| `./expect` | `expect`, its matchers, `.not`, `.rejects`, `.resolves`, the asymmetric matchers, `poll`; `AssertionError` |
|
|
21
|
+
| `./globals` | `BARE_GLOBALS`: the modules a bundle imports first, each installing a web standard Bare lacks |
|
|
22
|
+
| `./modules` | `NODE_MODULES`: the module of Bare that stands in for each module of Node |
|
|
23
|
+
| `./errors` | `BareError` and every other error, each with a stable `code` |
|
|
24
|
+
|
|
25
|
+
The package ships no command. A repo's `test:bare` script is the call, in a file of its own:
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
// scripts/test-bare.mjs
|
|
29
|
+
import { nodeStorage } from '@wtf/platform-fs-node/storage'
|
|
30
|
+
import { nodePlatform } from '@wtf/platform-node/platform'
|
|
31
|
+
import { testFilesOf } from '@wtf/project-bare/node'
|
|
32
|
+
import { bareTest } from '@wtf/project-bare/test'
|
|
33
|
+
|
|
34
|
+
const platform = nodePlatform({ fetch, storage: nodeStorage() })
|
|
35
|
+
const root = platform.dirs.cwd
|
|
36
|
+
const files = await testFilesOf(root, ['test/**/*.bare.test.ts'])
|
|
37
|
+
const { code } = await bareTest(platform, { root, files })
|
|
38
|
+
process.exitCode = code
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
```json
|
|
42
|
+
{ "scripts": { "test:bare": "node scripts/test-bare.mjs" } }
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## What it needs
|
|
46
|
+
|
|
47
|
+
`bare` is a peer dependency, and so is each module of Bare a bundle imports, which Bare resolves
|
|
48
|
+
from your project: the six that install the web standards Bare lacks (`bare-stream`,
|
|
49
|
+
`bare-encoding`, `bare-abort-controller`, `bare-events`, `bare-crypto` and `bare-performance`) and
|
|
50
|
+
the one a `node:*` import maps to (`node:fs` is `bare-fs`). A module that is not installed fails
|
|
51
|
+
the build, naming it. Run the script by `pnpm run`, which has `node_modules/.bin` on the `PATH`,
|
|
52
|
+
after your packages are built: a bundle takes a package by the conditions `bare` and `default`,
|
|
53
|
+
never `@wtf/source`.
|
|
54
|
+
|
|
55
|
+
See [Tests on Bare](../../../guides/bare.md): what the runtime has and lacks, how the
|
|
56
|
+
bundle is made, the options, the CI job, and where Bare differs from Node.
|
|
57
|
+
|
|
58
|
+
## Modules
|
|
59
|
+
|
|
60
|
+
- [](README.md)
|
|
61
|
+
- [bundle](bundle/README.md)
|
|
62
|
+
- [errors](errors/README.md)
|
|
63
|
+
- [expect](expect/README.md)
|
|
64
|
+
- [globals](globals/README.md)
|
|
65
|
+
- [modules](modules/README.md)
|
|
66
|
+
- [node](node/README.md)
|
|
67
|
+
- [run](run/README.md)
|
|
68
|
+
- [shim](shim/README.md)
|
|
69
|
+
- [test](test/README.md)
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
[Documentation](../../../README.md) / [@wtf/project-bare](../README.md) / bundle
|
|
2
|
+
|
|
3
|
+
# bundle
|
|
4
|
+
|
|
5
|
+
The bundle of a test file for Bare: [bundleTests](functions/bundleTests.md), each file one self-contained ES module
|
|
6
|
+
of esbuild's, which runs by `bare <file>` and nothing else. A bundle begins with the web
|
|
7
|
+
standards Bare lacks ([BARE\_GLOBALS](../globals/variables/BARE_GLOBALS.md)), puts the test runtime of `./shim` in the
|
|
8
|
+
place of `vitest`, runs what the file registers, and exits with 0 or 1.
|
|
9
|
+
|
|
10
|
+
It resolves packages by the conditions `bare` and `default`, never `@wtf/source` or `types`, so a
|
|
11
|
+
test that imports a package by its name tests its build, as every test runs on the build. Node's
|
|
12
|
+
modules ([NODE\_MODULES](../modules/variables/NODE_MODULES.md)) and the modules of Bare, `bare-*`, stay imports for Bare to
|
|
13
|
+
resolve, as its native addons are found where the module is: the bundle is written where the
|
|
14
|
+
project's own `node_modules` is above it, `node_modules/.cache/project-bare` by default, and a
|
|
15
|
+
module it needs that the project has not installed is a [BareMissingModuleError](../errors/classes/BareMissingModuleError.md).
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
const bundles = await bundleTests({ root: process.cwd(), files: ['test/store.test.ts'] })
|
|
19
|
+
// bundles[0].file: node_modules/.cache/project-bare/test__store.test.mjs
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Type Aliases
|
|
23
|
+
|
|
24
|
+
- [Bundle](type-aliases/Bundle.md)
|
|
25
|
+
- [BundleOptions](type-aliases/BundleOptions.md)
|
|
26
|
+
|
|
27
|
+
## Variables
|
|
28
|
+
|
|
29
|
+
- [BUNDLE\_DIR](variables/BUNDLE_DIR.md)
|
|
30
|
+
- [SHIM](variables/SHIM.md)
|
|
31
|
+
|
|
32
|
+
## Functions
|
|
33
|
+
|
|
34
|
+
- [bundleTests](functions/bundleTests.md)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-bare](../../README.md) / [bundle](../README.md) / bundleTests
|
|
2
|
+
|
|
3
|
+
# Function: bundleTests()
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
function bundleTests(options): Promise<Bundle[]>;
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-bare/src/bundle.ts:135](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/bundle.ts#L135)
|
|
10
|
+
|
|
11
|
+
Bundles each test file of `options.files` for Bare, one bundle each, so a file's state is its own,
|
|
12
|
+
and gives the bundles in the order of the files. A bundle that does not build is a
|
|
13
|
+
[BareBuildError](../../errors/classes/BareBuildError.md), whose message is esbuild's.
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
| Parameter | Type |
|
|
18
|
+
| ------ | ------ |
|
|
19
|
+
| `options` | [`BundleOptions`](../type-aliases/BundleOptions.md) |
|
|
20
|
+
|
|
21
|
+
## Returns
|
|
22
|
+
|
|
23
|
+
`Promise`\<[`Bundle`](../type-aliases/Bundle.md)[]\>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-bare](../../README.md) / [bundle](../README.md) / Bundle
|
|
2
|
+
|
|
3
|
+
# Type Alias: Bundle
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
type Bundle = object;
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-bare/src/bundle.ts:48](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/bundle.ts#L48)
|
|
10
|
+
|
|
11
|
+
A test file and the bundle that runs it.
|
|
12
|
+
|
|
13
|
+
## Properties
|
|
14
|
+
|
|
15
|
+
### file
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
readonly file: string;
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Defined in: [packages/project-bare/src/bundle.ts:52](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/bundle.ts#L52)
|
|
22
|
+
|
|
23
|
+
The bundle, an absolute path: `bare` runs it.
|
|
24
|
+
|
|
25
|
+
***
|
|
26
|
+
|
|
27
|
+
### test
|
|
28
|
+
|
|
29
|
+
```ts
|
|
30
|
+
readonly test: string;
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Defined in: [packages/project-bare/src/bundle.ts:50](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/bundle.ts#L50)
|
|
34
|
+
|
|
35
|
+
The test file, as it was given.
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-bare](../../README.md) / [bundle](../README.md) / BundleOptions
|
|
2
|
+
|
|
3
|
+
# Type Alias: BundleOptions
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
type BundleOptions = object;
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-bare/src/bundle.ts:30](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/bundle.ts#L30)
|
|
10
|
+
|
|
11
|
+
What a bundle is made of.
|
|
12
|
+
|
|
13
|
+
## Properties
|
|
14
|
+
|
|
15
|
+
### conditions?
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
readonly optional conditions?: readonly string[];
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Defined in: [packages/project-bare/src/bundle.ts:42](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/bundle.ts#L42)
|
|
22
|
+
|
|
23
|
+
Conditions of a package's `exports` after `bare` and before `default`; `@wtf/source` is never one.
|
|
24
|
+
|
|
25
|
+
***
|
|
26
|
+
|
|
27
|
+
### external?
|
|
28
|
+
|
|
29
|
+
```ts
|
|
30
|
+
readonly optional external?: readonly string[];
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Defined in: [packages/project-bare/src/bundle.ts:44](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/bundle.ts#L44)
|
|
34
|
+
|
|
35
|
+
Specifiers left as they are, for Bare to resolve, beside `bare-*` and the mapped modules.
|
|
36
|
+
|
|
37
|
+
***
|
|
38
|
+
|
|
39
|
+
### files
|
|
40
|
+
|
|
41
|
+
```ts
|
|
42
|
+
readonly files: readonly string[];
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Defined in: [packages/project-bare/src/bundle.ts:34](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/bundle.ts#L34)
|
|
46
|
+
|
|
47
|
+
The test files, each by its path from `root` or absolute.
|
|
48
|
+
|
|
49
|
+
***
|
|
50
|
+
|
|
51
|
+
### globals?
|
|
52
|
+
|
|
53
|
+
```ts
|
|
54
|
+
readonly optional globals?: readonly string[];
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Defined in: [packages/project-bare/src/bundle.ts:38](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/bundle.ts#L38)
|
|
58
|
+
|
|
59
|
+
The modules imported first, each installing a global Bare lacks: [BARE\_GLOBALS](../../globals/variables/BARE_GLOBALS.md) by default.
|
|
60
|
+
|
|
61
|
+
***
|
|
62
|
+
|
|
63
|
+
### modules?
|
|
64
|
+
|
|
65
|
+
```ts
|
|
66
|
+
readonly optional modules?: Readonly<Record<string, string>>;
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Defined in: [packages/project-bare/src/bundle.ts:40](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/bundle.ts#L40)
|
|
70
|
+
|
|
71
|
+
Node's modules, by the name after `node:`, and the module of Bare that stands in, over [NODE\_MODULES](../../modules/variables/NODE_MODULES.md).
|
|
72
|
+
|
|
73
|
+
***
|
|
74
|
+
|
|
75
|
+
### outDir?
|
|
76
|
+
|
|
77
|
+
```ts
|
|
78
|
+
readonly optional outDir?: string;
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Defined in: [packages/project-bare/src/bundle.ts:36](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/bundle.ts#L36)
|
|
82
|
+
|
|
83
|
+
Where the bundles are written, `node_modules/.cache/project-bare` of `root` by default.
|
|
84
|
+
|
|
85
|
+
***
|
|
86
|
+
|
|
87
|
+
### root
|
|
88
|
+
|
|
89
|
+
```ts
|
|
90
|
+
readonly root: string;
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
Defined in: [packages/project-bare/src/bundle.ts:32](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/bundle.ts#L32)
|
|
94
|
+
|
|
95
|
+
The project's folder: its `node_modules` is what the bundle's imports of Bare's modules are resolved by.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-bare](../../README.md) / [bundle](../README.md) / BUNDLE\_DIR
|
|
2
|
+
|
|
3
|
+
# Variable: BUNDLE\_DIR
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
const BUNDLE_DIR: string;
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-bare/src/bundle.ts:56](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/bundle.ts#L56)
|
|
10
|
+
|
|
11
|
+
The folder, from the project's, the bundles are written to by default.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-bare](../../README.md) / [bundle](../README.md) / SHIM
|
|
2
|
+
|
|
3
|
+
# Variable: SHIM
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
const SHIM: string;
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-bare/src/bundle.ts:59](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/bundle.ts#L59)
|
|
10
|
+
|
|
11
|
+
The path of this package's own `shim`, source or build as it runs: what a bundle makes `vitest`.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
[Documentation](../../../README.md) / [@wtf/project-bare](../README.md) / errors
|
|
2
|
+
|
|
3
|
+
# errors
|
|
4
|
+
|
|
5
|
+
What `@wtf/project-bare` throws, each a [BareError](classes/BareError.md) of a stable `code`:
|
|
6
|
+
[BareBuildError](classes/BareBuildError.md), a test bundle that did not build; [BareMissingModuleError](classes/BareMissingModuleError.md), a
|
|
7
|
+
module of Bare the bundle needs that the project has not installed; [BareUnavailableError](classes/BareUnavailableError.md),
|
|
8
|
+
no `bare` to run it; [BareTimeoutError](classes/BareTimeoutError.md), a run that did not end; and
|
|
9
|
+
[NoTestFilesError](classes/NoTestFilesError.md), patterns that match no test file.
|
|
10
|
+
|
|
11
|
+
## Classes
|
|
12
|
+
|
|
13
|
+
- [BareBuildError](classes/BareBuildError.md)
|
|
14
|
+
- [BareError](classes/BareError.md)
|
|
15
|
+
- [BareMissingModuleError](classes/BareMissingModuleError.md)
|
|
16
|
+
- [BareTimeoutError](classes/BareTimeoutError.md)
|
|
17
|
+
- [BareUnavailableError](classes/BareUnavailableError.md)
|
|
18
|
+
- [NoTestFilesError](classes/NoTestFilesError.md)
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-bare](../../README.md) / [errors](../README.md) / BareBuildError
|
|
2
|
+
|
|
3
|
+
# Class: BareBuildError
|
|
4
|
+
|
|
5
|
+
Defined in: [packages/project-bare/src/errors.ts:28](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/errors.ts#L28)
|
|
6
|
+
|
|
7
|
+
A test bundle esbuild could not make: its messages, as esbuild prints them, are the error's.
|
|
8
|
+
|
|
9
|
+
## Extends
|
|
10
|
+
|
|
11
|
+
- [`BareError`](BareError.md)
|
|
12
|
+
|
|
13
|
+
## Constructors
|
|
14
|
+
|
|
15
|
+
### Constructor
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
new BareBuildError(
|
|
19
|
+
file,
|
|
20
|
+
reasons,
|
|
21
|
+
options?
|
|
22
|
+
): BareBuildError;
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Defined in: [packages/project-bare/src/errors.ts:32](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/errors.ts#L32)
|
|
26
|
+
|
|
27
|
+
#### Parameters
|
|
28
|
+
|
|
29
|
+
| Parameter | Type |
|
|
30
|
+
| ------ | ------ |
|
|
31
|
+
| `file` | `string` |
|
|
32
|
+
| `reasons` | readonly `string`[] |
|
|
33
|
+
| `options?` | `ErrorOptions` |
|
|
34
|
+
|
|
35
|
+
#### Returns
|
|
36
|
+
|
|
37
|
+
`BareBuildError`
|
|
38
|
+
|
|
39
|
+
#### Overrides
|
|
40
|
+
|
|
41
|
+
[`BareError`](BareError.md).[`constructor`](BareError.md#constructor)
|
|
42
|
+
|
|
43
|
+
## Properties
|
|
44
|
+
|
|
45
|
+
| Property | Modifier | Type | Default value | Description | Inherited from | Defined in |
|
|
46
|
+
| ------ | ------ | ------ | ------ | ------ | ------ | ------ |
|
|
47
|
+
| <a id="property-cause"></a> `cause?` | `public` | `unknown` | `undefined` | - | [`BareError`](BareError.md).[`cause`](BareError.md#property-cause) | - |
|
|
48
|
+
| <a id="property-code"></a> `code` | `readonly` | `string` | `undefined` | - | [`BareError`](BareError.md).[`code`](BareError.md#property-code) | [packages/project-bare/src/errors.ts:16](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/errors.ts#L16) |
|
|
49
|
+
| <a id="property-exitcode"></a> `exitCode` | `readonly` | `number` | `1` | What a command that fails by it exits with. | [`BareError`](BareError.md).[`exitCode`](BareError.md#property-exitcode) | [packages/project-bare/src/errors.ts:18](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/errors.ts#L18) |
|
|
50
|
+
| <a id="property-file"></a> `file` | `readonly` | `string` | `undefined` | The test file whose bundle failed. | - | [packages/project-bare/src/errors.ts:30](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/errors.ts#L30) |
|
|
51
|
+
| <a id="property-message"></a> `message` | `public` | `string` | `undefined` | - | [`BareError`](BareError.md).[`message`](BareError.md#property-message) | - |
|
|
52
|
+
| <a id="property-name"></a> `name` | `public` | `string` | `undefined` | - | [`BareError`](BareError.md).[`name`](BareError.md#property-name) | - |
|
|
53
|
+
| <a id="property-stack"></a> `stack?` | `public` | `string` | `undefined` | - | [`BareError`](BareError.md).[`stack`](BareError.md#property-stack) | - |
|
|
54
|
+
| <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. | [`BareError`](BareError.md).[`stackTraceLimit`](BareError.md#property-stacktracelimit) | - |
|
|
55
|
+
|
|
56
|
+
## Methods
|
|
57
|
+
|
|
58
|
+
### captureStackTrace()
|
|
59
|
+
|
|
60
|
+
```ts
|
|
61
|
+
static captureStackTrace(targetObject, constructorOpt?): void;
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Defined in: `@types/node`
|
|
65
|
+
|
|
66
|
+
Creates a `.stack` property on `targetObject`, which when accessed returns
|
|
67
|
+
a string representing the location in the code at which
|
|
68
|
+
`Error.captureStackTrace()` was called.
|
|
69
|
+
|
|
70
|
+
```js
|
|
71
|
+
const myObject = {};
|
|
72
|
+
Error.captureStackTrace(myObject);
|
|
73
|
+
myObject.stack; // Similar to `new Error().stack`
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
The first line of the trace will be prefixed with
|
|
77
|
+
`${myObject.name}: ${myObject.message}`.
|
|
78
|
+
|
|
79
|
+
The optional `constructorOpt` argument accepts a function. If given, all frames
|
|
80
|
+
above `constructorOpt`, including `constructorOpt`, will be omitted from the
|
|
81
|
+
generated stack trace.
|
|
82
|
+
|
|
83
|
+
The `constructorOpt` argument is useful for hiding implementation
|
|
84
|
+
details of error generation from the user. For instance:
|
|
85
|
+
|
|
86
|
+
```js
|
|
87
|
+
function a() {
|
|
88
|
+
b();
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function b() {
|
|
92
|
+
c();
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
function c() {
|
|
96
|
+
// Create an error without stack trace to avoid calculating the stack trace twice.
|
|
97
|
+
const { stackTraceLimit } = Error;
|
|
98
|
+
Error.stackTraceLimit = 0;
|
|
99
|
+
const error = new Error();
|
|
100
|
+
Error.stackTraceLimit = stackTraceLimit;
|
|
101
|
+
|
|
102
|
+
// Capture the stack trace above function b
|
|
103
|
+
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
|
|
104
|
+
throw error;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
a();
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
#### Parameters
|
|
111
|
+
|
|
112
|
+
| Parameter | Type |
|
|
113
|
+
| ------ | ------ |
|
|
114
|
+
| `targetObject` | `object` |
|
|
115
|
+
| `constructorOpt?` | `Function` |
|
|
116
|
+
|
|
117
|
+
#### Returns
|
|
118
|
+
|
|
119
|
+
`void`
|
|
120
|
+
|
|
121
|
+
#### Inherited from
|
|
122
|
+
|
|
123
|
+
[`BareError`](BareError.md).[`captureStackTrace`](BareError.md#capturestacktrace)
|
|
124
|
+
|
|
125
|
+
***
|
|
126
|
+
|
|
127
|
+
### isError()
|
|
128
|
+
|
|
129
|
+
```ts
|
|
130
|
+
static isError(error): error is Error;
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
Defined in: `typescript`
|
|
134
|
+
|
|
135
|
+
Indicates whether the argument provided is a built-in Error instance or not.
|
|
136
|
+
|
|
137
|
+
#### Parameters
|
|
138
|
+
|
|
139
|
+
| Parameter | Type |
|
|
140
|
+
| ------ | ------ |
|
|
141
|
+
| `error` | `unknown` |
|
|
142
|
+
|
|
143
|
+
#### Returns
|
|
144
|
+
|
|
145
|
+
`error is Error`
|
|
146
|
+
|
|
147
|
+
#### Inherited from
|
|
148
|
+
|
|
149
|
+
[`BareError`](BareError.md).[`isError`](BareError.md#iserror)
|
|
150
|
+
|
|
151
|
+
***
|
|
152
|
+
|
|
153
|
+
### prepareStackTrace()
|
|
154
|
+
|
|
155
|
+
```ts
|
|
156
|
+
static prepareStackTrace(err, stackTraces): any;
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
Defined in: `@types/node`
|
|
160
|
+
|
|
161
|
+
#### Parameters
|
|
162
|
+
|
|
163
|
+
| Parameter | Type |
|
|
164
|
+
| ------ | ------ |
|
|
165
|
+
| `err` | `Error` |
|
|
166
|
+
| `stackTraces` | `CallSite`[] |
|
|
167
|
+
|
|
168
|
+
#### Returns
|
|
169
|
+
|
|
170
|
+
`any`
|
|
171
|
+
|
|
172
|
+
#### See
|
|
173
|
+
|
|
174
|
+
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
|
|
175
|
+
|
|
176
|
+
#### Inherited from
|
|
177
|
+
|
|
178
|
+
[`BareError`](BareError.md).[`prepareStackTrace`](BareError.md#preparestacktrace)
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-bare](../../README.md) / [errors](../README.md) / BareError
|
|
2
|
+
|
|
3
|
+
# Class: BareError
|
|
4
|
+
|
|
5
|
+
Defined in: [packages/project-bare/src/errors.ts:15](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/errors.ts#L15)
|
|
6
|
+
|
|
7
|
+
What this package throws: an Error with a stable SCREAMING_SNAKE `code` to match on in place of
|
|
8
|
+
its message, and the `exitCode` a command that fails by it exits with, 1.
|
|
9
|
+
|
|
10
|
+
## Extends
|
|
11
|
+
|
|
12
|
+
- `Error`
|
|
13
|
+
|
|
14
|
+
## Extended by
|
|
15
|
+
|
|
16
|
+
- [`BareBuildError`](BareBuildError.md)
|
|
17
|
+
- [`BareMissingModuleError`](BareMissingModuleError.md)
|
|
18
|
+
- [`BareUnavailableError`](BareUnavailableError.md)
|
|
19
|
+
- [`BareTimeoutError`](BareTimeoutError.md)
|
|
20
|
+
- [`NoTestFilesError`](NoTestFilesError.md)
|
|
21
|
+
|
|
22
|
+
## Constructors
|
|
23
|
+
|
|
24
|
+
### Constructor
|
|
25
|
+
|
|
26
|
+
```ts
|
|
27
|
+
new BareError(
|
|
28
|
+
code,
|
|
29
|
+
message,
|
|
30
|
+
options?
|
|
31
|
+
): BareError;
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Defined in: [packages/project-bare/src/errors.ts:20](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/errors.ts#L20)
|
|
35
|
+
|
|
36
|
+
#### Parameters
|
|
37
|
+
|
|
38
|
+
| Parameter | Type |
|
|
39
|
+
| ------ | ------ |
|
|
40
|
+
| `code` | `string` |
|
|
41
|
+
| `message` | `string` |
|
|
42
|
+
| `options?` | `ErrorOptions` |
|
|
43
|
+
|
|
44
|
+
#### Returns
|
|
45
|
+
|
|
46
|
+
`BareError`
|
|
47
|
+
|
|
48
|
+
#### Overrides
|
|
49
|
+
|
|
50
|
+
```ts
|
|
51
|
+
Error.constructor
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Properties
|
|
55
|
+
|
|
56
|
+
| Property | Modifier | Type | Default value | Description | Inherited from | Defined in |
|
|
57
|
+
| ------ | ------ | ------ | ------ | ------ | ------ | ------ |
|
|
58
|
+
| <a id="property-cause"></a> `cause?` | `public` | `unknown` | `undefined` | - | `Error.cause` | - |
|
|
59
|
+
| <a id="property-code"></a> `code` | `readonly` | `string` | `undefined` | - | - | [packages/project-bare/src/errors.ts:16](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/errors.ts#L16) |
|
|
60
|
+
| <a id="property-exitcode"></a> `exitCode` | `readonly` | `number` | `1` | What a command that fails by it exits with. | - | [packages/project-bare/src/errors.ts:18](https://gitlab.com/wetryfun/project/project/-/blob/docs-v6.1.0/packages/project-bare/src/errors.ts#L18) |
|
|
61
|
+
| <a id="property-message"></a> `message` | `public` | `string` | `undefined` | - | `Error.message` | - |
|
|
62
|
+
| <a id="property-name"></a> `name` | `public` | `string` | `undefined` | - | `Error.name` | - |
|
|
63
|
+
| <a id="property-stack"></a> `stack?` | `public` | `string` | `undefined` | - | `Error.stack` | - |
|
|
64
|
+
| <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` | - |
|
|
65
|
+
|
|
66
|
+
## Methods
|
|
67
|
+
|
|
68
|
+
### captureStackTrace()
|
|
69
|
+
|
|
70
|
+
```ts
|
|
71
|
+
static captureStackTrace(targetObject, constructorOpt?): void;
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Defined in: `@types/node`
|
|
75
|
+
|
|
76
|
+
Creates a `.stack` property on `targetObject`, which when accessed returns
|
|
77
|
+
a string representing the location in the code at which
|
|
78
|
+
`Error.captureStackTrace()` was called.
|
|
79
|
+
|
|
80
|
+
```js
|
|
81
|
+
const myObject = {};
|
|
82
|
+
Error.captureStackTrace(myObject);
|
|
83
|
+
myObject.stack; // Similar to `new Error().stack`
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
The first line of the trace will be prefixed with
|
|
87
|
+
`${myObject.name}: ${myObject.message}`.
|
|
88
|
+
|
|
89
|
+
The optional `constructorOpt` argument accepts a function. If given, all frames
|
|
90
|
+
above `constructorOpt`, including `constructorOpt`, will be omitted from the
|
|
91
|
+
generated stack trace.
|
|
92
|
+
|
|
93
|
+
The `constructorOpt` argument is useful for hiding implementation
|
|
94
|
+
details of error generation from the user. For instance:
|
|
95
|
+
|
|
96
|
+
```js
|
|
97
|
+
function a() {
|
|
98
|
+
b();
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function b() {
|
|
102
|
+
c();
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
function c() {
|
|
106
|
+
// Create an error without stack trace to avoid calculating the stack trace twice.
|
|
107
|
+
const { stackTraceLimit } = Error;
|
|
108
|
+
Error.stackTraceLimit = 0;
|
|
109
|
+
const error = new Error();
|
|
110
|
+
Error.stackTraceLimit = stackTraceLimit;
|
|
111
|
+
|
|
112
|
+
// Capture the stack trace above function b
|
|
113
|
+
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
|
|
114
|
+
throw error;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
a();
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
#### Parameters
|
|
121
|
+
|
|
122
|
+
| Parameter | Type |
|
|
123
|
+
| ------ | ------ |
|
|
124
|
+
| `targetObject` | `object` |
|
|
125
|
+
| `constructorOpt?` | `Function` |
|
|
126
|
+
|
|
127
|
+
#### Returns
|
|
128
|
+
|
|
129
|
+
`void`
|
|
130
|
+
|
|
131
|
+
#### Inherited from
|
|
132
|
+
|
|
133
|
+
```ts
|
|
134
|
+
Error.captureStackTrace
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
***
|
|
138
|
+
|
|
139
|
+
### isError()
|
|
140
|
+
|
|
141
|
+
```ts
|
|
142
|
+
static isError(error): error is Error;
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
Defined in: `typescript`
|
|
146
|
+
|
|
147
|
+
Indicates whether the argument provided is a built-in Error instance or not.
|
|
148
|
+
|
|
149
|
+
#### Parameters
|
|
150
|
+
|
|
151
|
+
| Parameter | Type |
|
|
152
|
+
| ------ | ------ |
|
|
153
|
+
| `error` | `unknown` |
|
|
154
|
+
|
|
155
|
+
#### Returns
|
|
156
|
+
|
|
157
|
+
`error is Error`
|
|
158
|
+
|
|
159
|
+
#### Inherited from
|
|
160
|
+
|
|
161
|
+
```ts
|
|
162
|
+
Error.isError
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
***
|
|
166
|
+
|
|
167
|
+
### prepareStackTrace()
|
|
168
|
+
|
|
169
|
+
```ts
|
|
170
|
+
static prepareStackTrace(err, stackTraces): any;
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
Defined in: `@types/node`
|
|
174
|
+
|
|
175
|
+
#### Parameters
|
|
176
|
+
|
|
177
|
+
| Parameter | Type |
|
|
178
|
+
| ------ | ------ |
|
|
179
|
+
| `err` | `Error` |
|
|
180
|
+
| `stackTraces` | `CallSite`[] |
|
|
181
|
+
|
|
182
|
+
#### Returns
|
|
183
|
+
|
|
184
|
+
`any`
|
|
185
|
+
|
|
186
|
+
#### See
|
|
187
|
+
|
|
188
|
+
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
|
|
189
|
+
|
|
190
|
+
#### Inherited from
|
|
191
|
+
|
|
192
|
+
```ts
|
|
193
|
+
Error.prepareStackTrace
|
|
194
|
+
```
|