@wtf/project-docs 5.3.2 → 6.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (405) hide show
  1. package/README.md +2 -0
  2. package/api/.generated +66 -0
  3. package/api/@wtf/project-astro/config/functions/baseConfig.md +1 -1
  4. package/api/@wtf/project-astro/config/functions/baseOf.md +1 -1
  5. package/api/@wtf/project-astro/config/functions/siteOf.md +1 -1
  6. package/api/@wtf/project-astro/config/type-aliases/BaseOptions.md +6 -6
  7. package/api/@wtf/project-astro/config/type-aliases/Env.md +1 -1
  8. package/api/@wtf/project-astro/errors/classes/BrokenLinksError.md +5 -5
  9. package/api/@wtf/project-astro/errors/classes/InvalidRedirectError.md +6 -6
  10. package/api/@wtf/project-astro/errors/classes/RedirectedLinksError.md +5 -5
  11. package/api/@wtf/project-astro/errors/classes/SiteError.md +4 -4
  12. package/api/@wtf/project-astro/index/type-aliases/AstroPlatform.md +1 -1
  13. package/api/@wtf/project-astro/index/type-aliases/BrokenLink.md +3 -3
  14. package/api/@wtf/project-astro/index/type-aliases/IgnoredLine.md +4 -4
  15. package/api/@wtf/project-astro/index/type-aliases/RedirectInput.md +2 -2
  16. package/api/@wtf/project-astro/index/type-aliases/RedirectMatch.md +3 -3
  17. package/api/@wtf/project-astro/index/type-aliases/RedirectRule.md +5 -5
  18. package/api/@wtf/project-astro/index/type-aliases/RedirectStatus.md +1 -1
  19. package/api/@wtf/project-astro/index/type-aliases/RedirectedLink.md +2 -2
  20. package/api/@wtf/project-astro/index/type-aliases/Redirects.md +3 -3
  21. package/api/@wtf/project-astro/index/type-aliases/RouteParams.md +3 -3
  22. package/api/@wtf/project-astro/links/functions/brokenLinksIn.md +1 -1
  23. package/api/@wtf/project-astro/links/functions/links.md +1 -1
  24. package/api/@wtf/project-astro/links/functions/redirectedLinksIn.md +1 -1
  25. package/api/@wtf/project-astro/links/type-aliases/LinksOptions.md +2 -2
  26. package/api/@wtf/project-astro/links/variables/LINKS.md +1 -1
  27. package/api/@wtf/project-astro/pages/functions/fixSearchUrlsIn.md +1 -1
  28. package/api/@wtf/project-astro/pages/functions/moveConflictingPages.md +1 -1
  29. package/api/@wtf/project-astro/pages/functions/pages.md +1 -1
  30. package/api/@wtf/project-astro/pages/functions/prefixedLocaleOf.md +1 -1
  31. package/api/@wtf/project-astro/pages/functions/redirectBaseToLocaleIn.md +1 -1
  32. package/api/@wtf/project-astro/pages/functions/slashFolderLinksIn.md +1 -1
  33. package/api/@wtf/project-astro/pages/type-aliases/I18n.md +1 -1
  34. package/api/@wtf/project-astro/pages/type-aliases/PagesOptions.md +2 -2
  35. package/api/@wtf/project-astro/pages/variables/PAGES.md +1 -1
  36. package/api/@wtf/project-astro/preview/functions/files.md +1 -1
  37. package/api/@wtf/project-astro/preview/functions/listen.md +1 -1
  38. package/api/@wtf/project-astro/preview/functions/notFound.md +1 -1
  39. package/api/@wtf/project-astro/preview/functions/pagesOf.md +1 -1
  40. package/api/@wtf/project-astro/preview/functions/previewOf.md +1 -1
  41. package/api/@wtf/project-astro/preview/type-aliases/FilesOptions.md +2 -2
  42. package/api/@wtf/project-astro/preview/type-aliases/Handler.md +1 -1
  43. package/api/@wtf/project-astro/preview/type-aliases/ListenOptions.md +4 -4
  44. package/api/@wtf/project-astro/preview/type-aliases/Listening.md +5 -5
  45. package/api/@wtf/project-astro/preview/type-aliases/Pages.md +3 -3
  46. package/api/@wtf/project-astro/preview/type-aliases/Preview.md +4 -4
  47. package/api/@wtf/project-astro/preview/type-aliases/PreviewOptions.md +3 -3
  48. package/api/@wtf/project-astro/redirects/functions/formatRedirects.md +1 -1
  49. package/api/@wtf/project-astro/redirects/functions/matchRedirect.md +1 -1
  50. package/api/@wtf/project-astro/redirects/functions/parseRedirects.md +1 -1
  51. package/api/@wtf/project-astro/redirects/variables/MAX_PARTS.md +1 -1
  52. package/api/@wtf/project-astro/redirects/variables/MAX_RULES.md +1 -1
  53. package/api/@wtf/project-astro/redirects/variables/MAX_SIZE.md +1 -1
  54. package/api/@wtf/project-astro/routes/functions/routeParams.md +1 -1
  55. package/api/@wtf/project-astro/routes/type-aliases/RouteParamsOptions.md +2 -2
  56. package/api/@wtf/project-astro/schema/functions/astroSchemaWith.md +1 -1
  57. package/api/@wtf/project-astro/schema/type-aliases/AstroSection.md +1 -1
  58. package/api/@wtf/project-astro/schema/type-aliases/JsonSchema.md +12 -12
  59. package/api/@wtf/project-astro/schema/type-aliases/OptionsSchema.md +1 -1
  60. package/api/@wtf/project-astro/schema/variables/astroProperties.md +1 -1
  61. package/api/@wtf/project-astro/schema/variables/astroSchema.md +1 -1
  62. package/api/@wtf/project-bare/README.md +69 -0
  63. package/api/@wtf/project-bare/bundle/README.md +34 -0
  64. package/api/@wtf/project-bare/bundle/functions/bundleTests.md +23 -0
  65. package/api/@wtf/project-bare/bundle/type-aliases/Bundle.md +35 -0
  66. package/api/@wtf/project-bare/bundle/type-aliases/BundleOptions.md +95 -0
  67. package/api/@wtf/project-bare/bundle/variables/BUNDLE_DIR.md +11 -0
  68. package/api/@wtf/project-bare/bundle/variables/SHIM.md +11 -0
  69. package/api/@wtf/project-bare/errors/README.md +18 -0
  70. package/api/@wtf/project-bare/errors/classes/BareBuildError.md +178 -0
  71. package/api/@wtf/project-bare/errors/classes/BareError.md +194 -0
  72. package/api/@wtf/project-bare/errors/classes/BareMissingModuleError.md +178 -0
  73. package/api/@wtf/project-bare/errors/classes/BareTimeoutError.md +172 -0
  74. package/api/@wtf/project-bare/errors/classes/BareUnavailableError.md +171 -0
  75. package/api/@wtf/project-bare/errors/classes/NoTestFilesError.md +171 -0
  76. package/api/@wtf/project-bare/expect/README.md +40 -0
  77. package/api/@wtf/project-bare/expect/classes/AssertionError.md +202 -0
  78. package/api/@wtf/project-bare/expect/classes/AsymmetricMatcher.md +66 -0
  79. package/api/@wtf/project-bare/expect/functions/equals.md +32 -0
  80. package/api/@wtf/project-bare/expect/functions/format.md +27 -0
  81. package/api/@wtf/project-bare/expect/functions/pollWith.md +21 -0
  82. package/api/@wtf/project-bare/expect/functions/retry.md +28 -0
  83. package/api/@wtf/project-bare/expect/functions/sleep.md +21 -0
  84. package/api/@wtf/project-bare/expect/functions/timersOf.md +15 -0
  85. package/api/@wtf/project-bare/expect/type-aliases/Assertions.md +19 -0
  86. package/api/@wtf/project-bare/expect/type-aliases/ExpectStatics.md +220 -0
  87. package/api/@wtf/project-bare/expect/type-aliases/Matchers.md +654 -0
  88. package/api/@wtf/project-bare/expect/type-aliases/MockLike.md +27 -0
  89. package/api/@wtf/project-bare/expect/type-aliases/PollOptions.md +31 -0
  90. package/api/@wtf/project-bare/expect/type-aliases/Timers.md +66 -0
  91. package/api/@wtf/project-bare/expect/variables/expect.md +17 -0
  92. package/api/@wtf/project-bare/globals/README.md +10 -0
  93. package/api/@wtf/project-bare/globals/variables/BARE_GLOBALS.md +14 -0
  94. package/api/@wtf/project-bare/modules/README.md +12 -0
  95. package/api/@wtf/project-bare/modules/variables/NODE_MODULES.md +12 -0
  96. package/api/@wtf/project-bare/node/README.md +9 -0
  97. package/api/@wtf/project-bare/node/functions/testFilesOf.md +27 -0
  98. package/api/@wtf/project-bare/run/README.md +18 -0
  99. package/api/@wtf/project-bare/run/functions/runBare.md +24 -0
  100. package/api/@wtf/project-bare/run/type-aliases/RunBareOptions.md +71 -0
  101. package/api/@wtf/project-bare/shim/README.md +65 -0
  102. package/api/@wtf/project-bare/shim/functions/createRunner.md +16 -0
  103. package/api/@wtf/project-bare/shim/functions/run.md +21 -0
  104. package/api/@wtf/project-bare/shim/type-aliases/Describe.md +171 -0
  105. package/api/@wtf/project-bare/shim/type-aliases/Hook.md +22 -0
  106. package/api/@wtf/project-bare/shim/type-aliases/It.md +236 -0
  107. package/api/@wtf/project-bare/shim/type-aliases/Mock.md +36 -0
  108. package/api/@wtf/project-bare/shim/type-aliases/RunOptions.md +112 -0
  109. package/api/@wtf/project-bare/shim/type-aliases/Runner.md +123 -0
  110. package/api/@wtf/project-bare/shim/type-aliases/Summary.md +85 -0
  111. package/api/@wtf/project-bare/shim/type-aliases/TestContext.md +81 -0
  112. package/api/@wtf/project-bare/shim/type-aliases/TestFunction.md +21 -0
  113. package/api/@wtf/project-bare/shim/type-aliases/TestOptions.md +21 -0
  114. package/api/@wtf/project-bare/shim/variables/afterAll.md +11 -0
  115. package/api/@wtf/project-bare/shim/variables/afterEach.md +11 -0
  116. package/api/@wtf/project-bare/shim/variables/beforeAll.md +11 -0
  117. package/api/@wtf/project-bare/shim/variables/beforeEach.md +11 -0
  118. package/api/@wtf/project-bare/shim/variables/describe.md +11 -0
  119. package/api/@wtf/project-bare/shim/variables/it.md +11 -0
  120. package/api/@wtf/project-bare/shim/variables/onTestFinished.md +21 -0
  121. package/api/@wtf/project-bare/shim/variables/test.md +11 -0
  122. package/api/@wtf/project-bare/shim/variables/vi.md +23 -0
  123. package/api/@wtf/project-bare/test/README.md +28 -0
  124. package/api/@wtf/project-bare/test/functions/bareTest.md +24 -0
  125. package/api/@wtf/project-bare/test/type-aliases/BareTestOptions.md +11 -0
  126. package/api/@wtf/project-bare/test/type-aliases/BareTestResult.md +33 -0
  127. package/api/@wtf/project-bare/type-aliases/BarePlatform.md +14 -0
  128. package/api/@wtf/project-config/define/functions/defineConfig.md +1 -1
  129. package/api/@wtf/project-config/env/functions/envNameOf.md +1 -1
  130. package/api/@wtf/project-config/env/functions/envPrefixOf.md +1 -1
  131. package/api/@wtf/project-config/env/functions/jsonSchemaOf.md +1 -1
  132. package/api/@wtf/project-config/env/functions/variablesOf.md +1 -1
  133. package/api/@wtf/project-config/env/functions/withEnvironment.md +1 -1
  134. package/api/@wtf/project-config/env/type-aliases/Environment.md +1 -1
  135. package/api/@wtf/project-config/env/type-aliases/EnvironmentValue.md +3 -3
  136. package/api/@wtf/project-config/env/type-aliases/WithEnvironment.md +3 -3
  137. package/api/@wtf/project-config/errors/classes/ConfigError.md +4 -4
  138. package/api/@wtf/project-config/errors/classes/ConfigFileMismatchError.md +6 -6
  139. package/api/@wtf/project-config/errors/classes/ConfigInCodeError.md +5 -5
  140. package/api/@wtf/project-config/errors/classes/ConfigPathError.md +5 -5
  141. package/api/@wtf/project-config/errors/classes/EnvPlaceholderUnsetError.md +6 -6
  142. package/api/@wtf/project-config/errors/classes/InvalidConfigFileError.md +5 -5
  143. package/api/@wtf/project-config/errors/classes/InvalidSectionError.md +7 -7
  144. package/api/@wtf/project-config/errors/classes/NamedError.md +12 -12
  145. package/api/@wtf/project-config/errors/classes/NoConfigFileError.md +5 -5
  146. package/api/@wtf/project-config/errors/classes/NoConfigValueError.md +6 -6
  147. package/api/@wtf/project-config/errors/classes/SyncSchemaError.md +5 -5
  148. package/api/@wtf/project-config/errors/classes/UnwritableConfigFileError.md +5 -5
  149. package/api/@wtf/project-config/errors/type-aliases/NamedErrorCode.md +1 -1
  150. package/api/@wtf/project-config/errors/type-aliases/NamedErrorDetails.md +9 -9
  151. package/api/@wtf/project-config/index/type-aliases/ConfigDefaults.md +3 -3
  152. package/api/@wtf/project-config/index/type-aliases/ConfigEnvironment.md +4 -4
  153. package/api/@wtf/project-config/index/type-aliases/ConfigIssue.md +3 -3
  154. package/api/@wtf/project-config/index/type-aliases/ConfigNames.md +4 -4
  155. package/api/@wtf/project-config/index/type-aliases/ConfigPath.md +1 -1
  156. package/api/@wtf/project-config/index/type-aliases/ConfigPlatform.md +1 -1
  157. package/api/@wtf/project-config/index/type-aliases/ConfigSection.md +1 -1
  158. package/api/@wtf/project-config/index/type-aliases/ConfigSource.md +3 -3
  159. package/api/@wtf/project-config/index/type-aliases/ConfigWrite.md +10 -10
  160. package/api/@wtf/project-config/index/type-aliases/ImportModule.md +1 -1
  161. package/api/@wtf/project-config/index/type-aliases/JsonSchema.md +1 -1
  162. package/api/@wtf/project-config/index/type-aliases/LocatedConfig.md +4 -4
  163. package/api/@wtf/project-config/index/type-aliases/NamespaceConfig.md +2 -2
  164. package/api/@wtf/project-config/index/type-aliases/ResolvedConfig.md +9 -9
  165. package/api/@wtf/project-config/index/type-aliases/SectionSchema.md +1 -1
  166. package/api/@wtf/project-config/index/type-aliases/SectionsOf.md +1 -1
  167. package/api/@wtf/project-config/index/type-aliases/ValidateSection.md +1 -1
  168. package/api/@wtf/project-config/load/functions/ignoredWarning.md +1 -1
  169. package/api/@wtf/project-config/load/functions/importFileModule.md +1 -1
  170. package/api/@wtf/project-config/load/functions/loadConfig.md +1 -1
  171. package/api/@wtf/project-config/load/type-aliases/LoadLayers.md +3 -3
  172. package/api/@wtf/project-config/load/type-aliases/LoadOptions.md +3 -3
  173. package/api/@wtf/project-config/load/type-aliases/LoadPlatform.md +1 -1
  174. package/api/@wtf/project-config/locate/functions/configFilesOf.md +1 -1
  175. package/api/@wtf/project-config/locate/functions/configNamesOf.md +1 -1
  176. package/api/@wtf/project-config/locate/functions/jsonFilesOf.md +1 -1
  177. package/api/@wtf/project-config/locate/functions/locateConfig.md +1 -1
  178. package/api/@wtf/project-config/locate/functions/projectRootOf.md +1 -1
  179. package/api/@wtf/project-config/locate/type-aliases/LocateNames.md +2 -2
  180. package/api/@wtf/project-config/locate/type-aliases/LocateOptions.md +2 -2
  181. package/api/@wtf/project-config/locate/type-aliases/NamespaceNames.md +2 -2
  182. package/api/@wtf/project-config/locate/variables/DEFAULT_NAMESPACE.md +1 -1
  183. package/api/@wtf/project-config/named/functions/factoryOf.md +1 -1
  184. package/api/@wtf/project-config/named/functions/namedSchema.md +1 -1
  185. package/api/@wtf/project-config/named/functions/namedSetSchema.md +1 -1
  186. package/api/@wtf/project-config/named/functions/resolveNamed.md +1 -1
  187. package/api/@wtf/project-config/named/functions/resolveNamedSet.md +1 -1
  188. package/api/@wtf/project-config/named/type-aliases/LoadModule.md +1 -1
  189. package/api/@wtf/project-config/named/type-aliases/ModuleReference.md +3 -3
  190. package/api/@wtf/project-config/named/type-aliases/NamedCheckOptions.md +5 -5
  191. package/api/@wtf/project-config/named/type-aliases/NamedEntries.md +1 -1
  192. package/api/@wtf/project-config/named/type-aliases/NamedFactory.md +1 -1
  193. package/api/@wtf/project-config/named/type-aliases/NamedOptions.md +1 -1
  194. package/api/@wtf/project-config/named/type-aliases/NamedReference.md +1 -1
  195. package/api/@wtf/project-config/named/type-aliases/NamedResolveOptions.md +3 -3
  196. package/api/@wtf/project-config/named/type-aliases/NamedSchema.md +1 -1
  197. package/api/@wtf/project-config/named/type-aliases/NamedSchemaOptions.md +4 -4
  198. package/api/@wtf/project-config/named/type-aliases/NamedSet.md +1 -1
  199. package/api/@wtf/project-config/named/type-aliases/NamedSetOptions.md +2 -2
  200. package/api/@wtf/project-config/named/type-aliases/NamedSetSchemaOptions.md +3 -3
  201. package/api/@wtf/project-config/named/type-aliases/NamedSets.md +1 -1
  202. package/api/@wtf/project-config/named/type-aliases/NamedUse.md +1 -1
  203. package/api/@wtf/project-config/path/functions/configPathOf.md +1 -1
  204. package/api/@wtf/project-config/path/functions/textOfConfigPath.md +1 -1
  205. package/api/@wtf/project-config/path/functions/valueAt.md +1 -1
  206. package/api/@wtf/project-config/placeholder/functions/expandPlaceholders.md +1 -1
  207. package/api/@wtf/project-config/placeholder/functions/expandString.md +1 -1
  208. package/api/@wtf/project-config/schema/functions/namespaceSchema.md +1 -1
  209. package/api/@wtf/project-config/schema/functions/sectionIdOf.md +1 -1
  210. package/api/@wtf/project-config/schema/type-aliases/NamespaceSchemaOptions.md +3 -3
  211. package/api/@wtf/project-config/schema/variables/JSON_SCHEMA_DRAFT.md +1 -1
  212. package/api/@wtf/project-config/section/functions/issuesOf.md +1 -1
  213. package/api/@wtf/project-config/section/functions/issuesOfSync.md +1 -1
  214. package/api/@wtf/project-config/section/functions/mergeSection.md +1 -1
  215. package/api/@wtf/project-config/section/functions/sectionOf.md +1 -1
  216. package/api/@wtf/project-config/section/type-aliases/Checked.md +3 -3
  217. package/api/@wtf/project-config/write/functions/setConfigValue.md +1 -1
  218. package/api/@wtf/project-config/write/functions/unsetConfigValue.md +1 -1
  219. package/api/@wtf/project-config/write/type-aliases/WriteOptions.md +2 -2
  220. package/api/@wtf/project-oxfmt/config/functions/oxfmtConfig.md +1 -1
  221. package/api/@wtf/project-oxfmt/config/type-aliases/OxfmtOptions.md +1 -1
  222. package/api/@wtf/project-oxfmt/config/variables/OXFMT_DEFAULTS.md +6 -6
  223. package/api/@wtf/project-oxfmt/config/variables/default.md +1 -1
  224. package/api/@wtf/project-oxfmt/schema/variables/oxfmtSchema.md +1 -1
  225. package/api/@wtf/project-oxlint/config/functions/oxlintConfig.md +1 -1
  226. package/api/@wtf/project-oxlint/config/type-aliases/OxlintOptions.md +1 -1
  227. package/api/@wtf/project-oxlint/config/variables/OXLINT_DEFAULTS.md +17 -17
  228. package/api/@wtf/project-oxlint/config/variables/default.md +1 -1
  229. package/api/@wtf/project-oxlint/schema/variables/oxlintSchema.md +1 -1
  230. package/api/@wtf/project-resolve/README.md +1 -1
  231. package/api/@wtf/project-resolve/condition/variables/SOURCE_CONDITION.md +1 -1
  232. package/api/@wtf/project-resolve/env/functions/isHook.md +1 -1
  233. package/api/@wtf/project-resolve/env/functions/optionsWithoutHook.md +1 -1
  234. package/api/@wtf/project-resolve/env/functions/withoutHook.md +1 -1
  235. package/api/@wtf/project-resolve/env/type-aliases/Env.md +1 -1
  236. package/api/@wtf/project-resolve/errors/classes/ResolveError.md +4 -4
  237. package/api/@wtf/project-resolve/errors/classes/UnreadableWorkspaceError.md +6 -6
  238. package/api/@wtf/project-resolve/errors/classes/WorkspaceError.md +5 -5
  239. package/api/@wtf/project-resolve/hooks/functions/candidatesOf.md +1 -1
  240. package/api/@wtf/project-resolve/hooks/functions/sourcesHookOf.md +1 -1
  241. package/api/@wtf/project-resolve/hooks/functions/sourcesOf.md +1 -1
  242. package/api/@wtf/project-resolve/hooks/variables/resolveTypeScript.md +1 -1
  243. package/api/@wtf/project-resolve/node/functions/nodePlatform.md +5 -5
  244. package/api/@wtf/project-resolve/register/variables/REGISTERED.md +1 -1
  245. package/api/@wtf/project-resolve/workspace/functions/filesOf.md +1 -1
  246. package/api/@wtf/project-resolve/workspace/functions/packagesOf.md +1 -1
  247. package/api/@wtf/project-resolve/workspace/functions/workspaceAt.md +1 -1
  248. package/api/@wtf/project-resolve/workspace/functions/workspaceOf.md +1 -1
  249. package/api/@wtf/project-resolve/workspace/functions/workspaceRootAbove.md +1 -1
  250. package/api/@wtf/project-resolve/workspace/functions/workspaceRootOf.md +1 -1
  251. package/api/@wtf/project-resolve/workspace/type-aliases/Agent.md +1 -1
  252. package/api/@wtf/project-resolve/workspace/type-aliases/DirectoryEntry.md +4 -4
  253. package/api/@wtf/project-resolve/workspace/type-aliases/FileContents.md +3 -3
  254. package/api/@wtf/project-resolve/workspace/type-aliases/PackageManager.md +4 -4
  255. package/api/@wtf/project-resolve/workspace/type-aliases/PackageManagerName.md +1 -1
  256. package/api/@wtf/project-resolve/workspace/type-aliases/ProcessWorkspaceOptions.md +1 -1
  257. package/api/@wtf/project-resolve/workspace/type-aliases/Workspace.md +5 -5
  258. package/api/@wtf/project-resolve/workspace/type-aliases/WorkspaceDirectoryHandle.md +6 -6
  259. package/api/@wtf/project-resolve/workspace/type-aliases/WorkspaceFileHandle.md +3 -3
  260. package/api/@wtf/project-resolve/workspace/type-aliases/WorkspaceFiles.md +6 -6
  261. package/api/@wtf/project-resolve/workspace/type-aliases/WorkspaceOptions.md +2 -2
  262. package/api/@wtf/project-resolve/workspace/type-aliases/WorkspacePackage.md +4 -4
  263. package/api/@wtf/project-resolve/workspace/type-aliases/WorkspacePaths.md +7 -7
  264. package/api/@wtf/project-storybook/config/functions/escapeAttribute.md +1 -1
  265. package/api/@wtf/project-storybook/config/functions/folderOf.md +1 -1
  266. package/api/@wtf/project-storybook/config/functions/metaTags.md +1 -1
  267. package/api/@wtf/project-storybook/config/functions/refsOf.md +1 -1
  268. package/api/@wtf/project-storybook/config/functions/storybookConfig.md +1 -1
  269. package/api/@wtf/project-storybook/config/type-aliases/ComposedRef.md +3 -3
  270. package/api/@wtf/project-storybook/config/type-aliases/StorybookConfig.md +8 -8
  271. package/api/@wtf/project-storybook/config/type-aliases/StorybookOptions.md +13 -13
  272. package/api/@wtf/project-storybook/config/type-aliases/StorybookRef.md +4 -4
  273. package/api/@wtf/project-storybook/config/type-aliases/VersionLabel.md +4 -4
  274. package/api/@wtf/project-storybook/manager/functions/registerVersion.md +1 -1
  275. package/api/@wtf/project-storybook/manager/type-aliases/VersionOptions.md +2 -2
  276. package/api/@wtf/project-storybook/schema/type-aliases/StorybookSection.md +1 -1
  277. package/api/@wtf/project-storybook/schema/variables/storybookSchema.md +1 -1
  278. package/api/@wtf/project-storybook/versions/functions/labelOf.md +1 -1
  279. package/api/@wtf/project-storybook/versions/functions/versionsOf.md +1 -1
  280. package/api/@wtf/project-storybook/versions/type-aliases/Label.md +5 -5
  281. package/api/@wtf/project-storybook/versions/type-aliases/ListedVersion.md +4 -4
  282. package/api/@wtf/project-storybook/versions/variables/META.md +5 -5
  283. package/api/@wtf/project-typedoc/config/functions/gitRevisionOf.md +1 -1
  284. package/api/@wtf/project-typedoc/config/functions/typedocConfig.md +1 -1
  285. package/api/@wtf/project-typedoc/config/type-aliases/TypedocConfig.md +1 -1
  286. package/api/@wtf/project-typedoc/config/type-aliases/TypedocOptions.md +7 -7
  287. package/api/@wtf/project-typedoc/config/type-aliases/TypedocPlatform.md +2 -2
  288. package/api/@wtf/project-typedoc/plugins/functions/cleanGeneratedMarkdown.md +1 -1
  289. package/api/@wtf/project-typedoc/plugins/functions/linkTrackedSources.md +1 -1
  290. package/api/@wtf/project-typedoc/plugins/functions/preventMediaFiles.md +1 -1
  291. package/api/@wtf/project-typedoc/plugins/type-aliases/CleanGeneratedMarkdownOptions.md +4 -4
  292. package/api/@wtf/project-typedoc/plugins/type-aliases/LinkTrackedSourcesOptions.md +3 -3
  293. package/api/@wtf/project-typedoc/plugins/type-aliases/PreventMediaFilesOptions.md +4 -4
  294. package/api/@wtf/project-typedoc/plugins/type-aliases/TypedocPlugin.md +1 -1
  295. package/api/@wtf/project-typedoc/schema/type-aliases/TypedocSection.md +2 -2
  296. package/api/@wtf/project-typedoc/schema/variables/typedocSchema.md +1 -1
  297. package/api/@wtf/project-vite/config/functions/baseConfig.md +4 -4
  298. package/api/@wtf/project-vite/config/functions/buildsSite.md +1 -1
  299. package/api/@wtf/project-vite/config/functions/compress.md +1 -1
  300. package/api/@wtf/project-vite/config/functions/conditionsOf.md +1 -1
  301. package/api/@wtf/project-vite/config/functions/fromDist.md +1 -1
  302. package/api/@wtf/project-vite/config/type-aliases/BaseOptions.md +3 -3
  303. package/api/@wtf/project-vite/config/type-aliases/CompressOptions.md +4 -4
  304. package/api/@wtf/project-vite/config/variables/CLIENT_CONDITIONS.md +1 -1
  305. package/api/@wtf/project-vite/config/variables/COMPRESSIBLE.md +1 -1
  306. package/api/@wtf/project-vite/config/variables/THRESHOLD.md +1 -1
  307. package/api/@wtf/project-vite/schema/type-aliases/ViteSection.md +1 -1
  308. package/api/@wtf/project-vite/schema/variables/viteSchema.md +1 -1
  309. package/api/@wtf/project-vitest/browser/functions/browserConfig.md +1 -1
  310. package/api/@wtf/project-vitest/browser/functions/browserRootConfig.md +1 -1
  311. package/api/@wtf/project-vitest/browser/type-aliases/BrowserOptions.md +4 -4
  312. package/api/@wtf/project-vitest/config/functions/fromDist.md +1 -1
  313. package/api/@wtf/project-vitest/config/functions/integrationConfig.md +1 -1
  314. package/api/@wtf/project-vitest/config/functions/packageConfig.md +1 -1
  315. package/api/@wtf/project-vitest/config/functions/rootConfig.md +1 -1
  316. package/api/@wtf/project-vitest/config/type-aliases/PackageOptions.md +2 -2
  317. package/api/@wtf/project-vitest/config/type-aliases/RootConfigOptions.md +2 -2
  318. package/api/@wtf/project-vitest/config/type-aliases/RootOptions.md +8 -8
  319. package/api/@wtf/project-vitest/config/type-aliases/VitestPlatform.md +4 -4
  320. package/api/@wtf/project-vitest/config/type-aliases/VitestRootPlatform.md +1 -1
  321. package/api/@wtf/project-vitest/config/variables/GUARD_TIMEOUT.md +1 -1
  322. package/api/@wtf/project-vitest/config/variables/integration.md +9 -9
  323. package/api/@wtf/project-vitest/process/functions/childEnv.md +1 -1
  324. package/api/@wtf/project-vitest/process/type-aliases/Env.md +1 -1
  325. package/api/@wtf/project-vitest/schema/type-aliases/VitestSection.md +1 -1
  326. package/api/@wtf/project-vitest/schema/variables/vitestSchema.md +1 -1
  327. package/api/@wtf/project-vitest/storybook/functions/storybookConfig.md +1 -1
  328. package/api/@wtf/project-vitest/storybook/type-aliases/StorybookOptions.md +2 -2
  329. package/api/@wtf/project-wpt/builtins/functions/builtins.md +1 -1
  330. package/api/@wtf/project-wpt/builtins/functions/intrinsics.md +1 -1
  331. package/api/@wtf/project-wpt/checkout/functions/checkoutFolderOf.md +1 -1
  332. package/api/@wtf/project-wpt/checkout/functions/checkoutTests.md +1 -1
  333. package/api/@wtf/project-wpt/checkout/functions/checkoutWpt.md +1 -1
  334. package/api/@wtf/project-wpt/checkout/functions/execOf.md +1 -1
  335. package/api/@wtf/project-wpt/checkout/functions/fileOf.md +1 -1
  336. package/api/@wtf/project-wpt/checkout/type-aliases/CheckedOutTests.md +3 -3
  337. package/api/@wtf/project-wpt/checkout/type-aliases/CheckoutOptions.md +8 -8
  338. package/api/@wtf/project-wpt/checkout/type-aliases/CheckoutTestsOptions.md +2 -2
  339. package/api/@wtf/project-wpt/checkout/variables/HARNESS.md +1 -1
  340. package/api/@wtf/project-wpt/checkout/variables/REWRITES.md +1 -1
  341. package/api/@wtf/project-wpt/checkout/variables/WPT_REPOSITORY.md +1 -1
  342. package/api/@wtf/project-wpt/errors/classes/HarnessFailedError.md +4 -4
  343. package/api/@wtf/project-wpt/errors/classes/InvalidCommitError.md +4 -4
  344. package/api/@wtf/project-wpt/errors/classes/InvalidExpectationsError.md +4 -4
  345. package/api/@wtf/project-wpt/errors/classes/NoSuiteError.md +4 -4
  346. package/api/@wtf/project-wpt/errors/classes/NotInWptError.md +5 -5
  347. package/api/@wtf/project-wpt/errors/classes/StaleExpectationError.md +4 -4
  348. package/api/@wtf/project-wpt/errors/classes/SubtestFailedError.md +4 -4
  349. package/api/@wtf/project-wpt/errors/classes/UnexpectedPassError.md +4 -4
  350. package/api/@wtf/project-wpt/errors/classes/WptError.md +4 -4
  351. package/api/@wtf/project-wpt/errors/classes/WptFetchError.md +4 -4
  352. package/api/@wtf/project-wpt/expectations/functions/checkHarness.md +1 -1
  353. package/api/@wtf/project-wpt/expectations/functions/checkSubtest.md +1 -1
  354. package/api/@wtf/project-wpt/expectations/functions/expectationOf.md +1 -1
  355. package/api/@wtf/project-wpt/expectations/functions/expectationsIssues.md +1 -1
  356. package/api/@wtf/project-wpt/expectations/functions/readExpectations.md +1 -1
  357. package/api/@wtf/project-wpt/expectations/functions/staleOf.md +1 -1
  358. package/api/@wtf/project-wpt/expectations/type-aliases/ReadExpectations.md +3 -3
  359. package/api/@wtf/project-wpt/index/type-aliases/CreateRealm.md +1 -1
  360. package/api/@wtf/project-wpt/index/type-aliases/Exec.md +1 -1
  361. package/api/@wtf/project-wpt/index/type-aliases/Expectations.md +1 -1
  362. package/api/@wtf/project-wpt/index/type-aliases/FileExpectation.md +4 -4
  363. package/api/@wtf/project-wpt/index/type-aliases/FileResult.md +4 -4
  364. package/api/@wtf/project-wpt/index/type-aliases/Globals.md +1 -1
  365. package/api/@wtf/project-wpt/index/type-aliases/HarnessResult.md +4 -4
  366. package/api/@wtf/project-wpt/index/type-aliases/HarnessStatus.md +1 -1
  367. package/api/@wtf/project-wpt/index/type-aliases/HoldRejections.md +1 -1
  368. package/api/@wtf/project-wpt/index/type-aliases/Realm.md +3 -3
  369. package/api/@wtf/project-wpt/index/type-aliases/SubtestResult.md +5 -5
  370. package/api/@wtf/project-wpt/index/type-aliases/SubtestStatus.md +1 -1
  371. package/api/@wtf/project-wpt/index/type-aliases/WptFile.md +3 -3
  372. package/api/@wtf/project-wpt/index/type-aliases/WptFiles.md +9 -9
  373. package/api/@wtf/project-wpt/index/type-aliases/WptPaths.md +4 -4
  374. package/api/@wtf/project-wpt/index/type-aliases/WptPlatform.md +2 -2
  375. package/api/@wtf/project-wpt/index/type-aliases/WptSystem.md +6 -6
  376. package/api/@wtf/project-wpt/index/type-aliases/WptTest.md +3 -3
  377. package/api/@wtf/project-wpt/meta/functions/idOf.md +1 -1
  378. package/api/@wtf/project-wpt/meta/functions/metaOf.md +1 -1
  379. package/api/@wtf/project-wpt/meta/functions/runsOutsideWindow.md +1 -1
  380. package/api/@wtf/project-wpt/meta/functions/scriptPathsOf.md +1 -1
  381. package/api/@wtf/project-wpt/meta/functions/testsOf.md +1 -1
  382. package/api/@wtf/project-wpt/meta/type-aliases/Meta.md +6 -6
  383. package/api/@wtf/project-wpt/node/functions/nodeSystem.md +1 -1
  384. package/api/@wtf/project-wpt/node/type-aliases/NodeSystemPlatform.md +1 -1
  385. package/api/@wtf/project-wpt/node/variables/nodeFiles.md +1 -1
  386. package/api/@wtf/project-wpt/node/variables/nodeRealm.md +1 -1
  387. package/api/@wtf/project-wpt/node/variables/nodeRejections.md +1 -1
  388. package/api/@wtf/project-wpt/run/functions/runTest.md +1 -1
  389. package/api/@wtf/project-wpt/run/type-aliases/RunOptions.md +8 -8
  390. package/api/@wtf/project-wpt/run/type-aliases/RunPlatform.md +1 -1
  391. package/api/@wtf/project-wpt/run/variables/LONG_TIMEOUT.md +1 -1
  392. package/api/@wtf/project-wpt/run/variables/TIMEOUT.md +1 -1
  393. package/api/@wtf/project-wpt/run/variables/WPT_ORIGIN.md +1 -1
  394. package/api/@wtf/project-wpt/schema/type-aliases/WptConfig.md +2 -2
  395. package/api/@wtf/project-wpt/schema/type-aliases/WptSuiteConfig.md +2 -2
  396. package/api/@wtf/project-wpt/schema/variables/wptSchema.md +1 -1
  397. package/api/@wtf/project-wpt/suite/functions/wptSuite.md +1 -1
  398. package/api/@wtf/project-wpt/suite/type-aliases/WptSuiteOptions.md +8 -8
  399. package/api/README.md +1 -0
  400. package/api/llms.txt +1 -0
  401. package/api/trains.json +3 -0
  402. package/guides/bare.md +206 -0
  403. package/guides/getting-started.md +2 -1
  404. package/guides/testing.md +4 -0
  405. package/package.json +14 -13
package/api/llms.txt CHANGED
@@ -11,6 +11,7 @@ TypeScript from source; and the runner of a standard's Web Platform Tests.
11
11
  - The tests: [@wtf/project-vitest](@wtf/project-vitest/README.md) — `rootConfig`, `packageConfig`, `integrationConfig`, `fromDist` and `GUARD_TIMEOUT`, each config of the `platform` its config file builds, the guards' 30 seconds a test (`/config`); `childEnv` (`/process`); `browserConfig` and `browserRootConfig` (`/browser`); `storybookConfig` (`/storybook`).
12
12
  - Running TypeScript from source: [@wtf/project-resolve](@wtf/project-resolve/README.md) — the hook, registered (`/register`); `SOURCE_CONDITION`, `@wtf/source` (`/condition`); `sourcesHookOf` and `resolveTypeScript` (`/hooks`); `workspaceAt` and `workspaceOf`, the workspace a project is in, as its package manager reads it, and `workspaceRootOf`, `workspaceRootAbove` and `packagesOf` (`/workspace`); `nodePlatform` (`/node`); `withoutHook` (`/env`); `WorkspaceError` (`/errors`).
13
13
  - The Web Platform Tests: [@wtf/project-wpt](@wtf/project-wpt/README.md) — `wptSuite`, each subtest a test (`/suite`); `nodeSystem`, what it takes of Node (`/node`); `runTest` (`/run`); `checkoutWpt` and `checkoutTests` (`/checkout`); the expectations (`/expectations`).
14
+ - Tests on Bare: [@wtf/project-bare](@wtf/project-bare/README.md) — `bareTest`, the bundle and the run of each file, reported (`/test`); `bundleTests` (`/bundle`); `runBare` (`/run`); `testFilesOf` (`/node`); the runtime a bundle gets in place of `vitest` (`/shim`, `/expect`); `BARE_GLOBALS` (`/globals`); `NODE_MODULES` (`/modules`).
14
15
 
15
16
  ## The rules worth knowing
16
17
 
package/api/trains.json CHANGED
@@ -27,6 +27,9 @@
27
27
  "wpt": [
28
28
  "@wtf/project-wpt"
29
29
  ],
30
+ "bare": [
31
+ "@wtf/project-bare"
32
+ ],
30
33
  "astro": [
31
34
  "@wtf/project-astro"
32
35
  ],
package/guides/bare.md ADDED
@@ -0,0 +1,206 @@
1
+ # Tests on Bare
2
+
3
+ This guide shows you how to run your tests on [Bare](https://github.com/holepunchto/bare),
4
+ Holepunch's runtime, which Vitest cannot run on. You write the tests as you write every test, with
5
+ `describe`, `it` and `expect`; `@wtf/project-bare` bundles each file with its own runtime in place
6
+ of `vitest` and runs it under `bare`. By the end you have a `test:bare` script that exits non-zero
7
+ when a test fails, and a job that runs it in CI.
8
+
9
+ Use it where code must work on Bare as it does on Node and in a browser: a package that has
10
+ a provider for Bare, or a suite every implementation of an interface runs, as the kit's `-suite`
11
+ packages are. A suite written as `storeSuite('name', make)` over `vitest` runs on Bare with
12
+ nothing changed.
13
+
14
+ ## What you install
15
+
16
+ ```sh
17
+ pnpm add --save-dev @wtf/project-bare bare
18
+ pnpm add --save-dev bare-stream bare-encoding bare-abort-controller bare-events bare-crypto bare-performance
19
+ ```
20
+
21
+ `bare` is the runtime: the package installs a build of it for your system. The other packages are
22
+ Bare's modules, which Bare resolves from your project, never from this one. The six above install
23
+ the web standards Bare lacks, which every test bundle imports first. Install one more for each
24
+ Node module your tests or your code import, as the table below says.
25
+
26
+ ## Write a test
27
+
28
+ A test file for Bare is a test file. It imports from `vitest`, and the bundle gives it the runtime
29
+ of `@wtf/project-bare/shim` in `vitest`'s place:
30
+
31
+ ```ts
32
+ // test/store.bare.test.ts
33
+ import { describe, expect, it } from 'vitest'
34
+
35
+ describe('a store on Bare', () => {
36
+ it('has the streams Bare lacks, installed first', async () => {
37
+ const stream = ReadableStream.from([1, 2, 3])
38
+ const seen: number[] = []
39
+ for await (const value of stream) seen.push(value)
40
+ expect(seen).toEqual([1, 2, 3])
41
+ })
42
+ })
43
+ ```
44
+
45
+ Import the package under test by its name, as a consumer does, never by a path into `src`: the
46
+ bundle then takes its build, as every test of the repo does in CI, and your package builds
47
+ before the run.
48
+
49
+ ### What the runtime has
50
+
51
+ - `describe`, `it` and `test`, each with `skip`, `only`, `todo`, `skipIf`, `runIf`, `each` and
52
+ `for`; `it.fails`; `beforeAll`, `afterAll`, `beforeEach` and `afterEach`; `onTestFinished`, and
53
+ the `skip()` of a test's context.
54
+ - `expect`, with the matchers the kit's tests use, `.not`, `.rejects` and `.resolves`, the
55
+ asymmetric `expect.any`, `anything`, `objectContaining`, `arrayContaining`, `stringContaining`
56
+ and `stringMatching`, and `expect.fail`, `unreachable` and `poll`. A matcher it lacks is not
57
+ there to call, so the test fails with a `TypeError` that names it.
58
+ - `vi.fn`, `vi.spyOn`, `vi.waitFor`, `vi.stubGlobal` and `vi.restoreAllMocks`.
59
+
60
+ It has no fake timers, no `vi.mock`, no `vi.stubEnv`, no snapshots and no type tests, and a test
61
+ runs after the one before it, never at once with it.
62
+
63
+ Each test has 5000 ms and each hook 10 000 ms. A file's runtime is its own: a state one file sets
64
+ is not there in the next.
65
+
66
+ `import.meta.url` of a test file is its bundle's, not the file's. Read a file by a path from the
67
+ working folder, which is your project's.
68
+
69
+ ## What a bundle has
70
+
71
+ The bundle is one file of esbuild's, written to `node_modules/.cache/project-bare`, so Bare finds
72
+ your project's `node_modules` above it. It begins with:
73
+
74
+ - The globals Bare lacks, imported for their effect: the Streams standard (`bare-stream/global`),
75
+ `TextEncoder` (`bare-encoding/global`), `AbortSignal` (`bare-abort-controller/global`),
76
+ `EventTarget` (`bare-events/global`), `crypto` (`bare-crypto/global`) and `performance`
77
+ (`bare-performance/global`). Bare has `URL`, `structuredClone`, `Buffer` and the timers itself.
78
+ Name the ones you need in the `globals` option to take fewer or more.
79
+ - Your packages by their `bare` condition, before `node` and `default`: a package that has a
80
+ different file for Bare puts `bare` before `node` in its `exports`. Bare never reads
81
+ `@wtf/source` or `types`, nor does the bundle, so a package that exports only `@wtf/source`
82
+ does not resolve.
83
+
84
+ Node's modules, which a test or a package may import as `node:*`, stand in by Bare's, as
85
+ imports Bare resolves from your project:
86
+
87
+ | Node | Bare | Node | Bare |
88
+ | ------------------ | ------------------ | -------------------- | ----------------- |
89
+ | `node:fs` | `bare-fs` | `node:events` | `bare-events` |
90
+ | `node:fs/promises` | `bare-fs/promises` | `node:stream` | `bare-stream` |
91
+ | `node:path` | `bare-path` | `node:timers` | `bare-timers` |
92
+ | `node:os` | `bare-os` | `node:crypto` | `bare-crypto` |
93
+ | `node:url` | `bare-url` | `node:net` | `bare-net` |
94
+ | `node:buffer` | `bare-buffer` | `node:dgram` | `bare-dgram` |
95
+ | `node:process` | `bare-process` | `node:child_process` | `bare-subprocess` |
96
+
97
+ The rest are `assert` (`bare-assert`), `dns`, `http`, `https`, `module`, `querystring`,
98
+ `readline`, `string_decoder`, `tty`, `util` (`bare-utils`), `worker_threads` (`bare-worker`) and
99
+ `zlib`: `NODE_MODULES` of `@wtf/project-bare/modules` lists them. Each is Holepunch's, of its own
100
+ API shaped on Node's: close, not the same. A Node module with no Bare module is a build error;
101
+ map it by the `modules` option, or import a Bare module in its place. A Bare module your project
102
+ has not installed is a build error too, that names it.
103
+
104
+ ## Run them: the `test:bare` script
105
+
106
+ A package ships no command. The script is yours, a file of the repo that gives `bareTest` the
107
+ platform it builds, as the repo's config files do, and the files, and ends with its code:
108
+
109
+ ```ts
110
+ // scripts/test-bare.mjs
111
+ import { nodeStorage } from '@wtf/platform-fs-node/storage'
112
+ import { nodePlatform } from '@wtf/platform-node/platform'
113
+ import { testFilesOf } from '@wtf/project-bare/node'
114
+ import { bareTest } from '@wtf/project-bare/test'
115
+
116
+ const platform = nodePlatform({ fetch, storage: nodeStorage() })
117
+ const root = platform.dirs.cwd
118
+ const files = await testFilesOf(root, ['test/**/*.bare.test.ts'])
119
+ const { code } = await bareTest(platform, { root, files })
120
+ process.exitCode = code
121
+ ```
122
+
123
+ ```json
124
+ {
125
+ "scripts": {
126
+ "test:bare": "node scripts/test-bare.mjs"
127
+ }
128
+ }
129
+ ```
130
+
131
+ A script of your package.json finds `bare` in `node_modules/.bin`, which its `PATH` has; run it as
132
+ `pnpm run build && pnpm run test:bare`, because your tests import your packages' builds. It
133
+ bundles each file on its own, runs each under `bare` one after the other, prints what each
134
+ prints, and ends with 1 when a test failed, a file did not load, no test was registered, or
135
+ `bare` did not end in five minutes.
136
+
137
+ ```text
138
+ RUN test/store.bare.test.ts
139
+
140
+ ✓ a store on Bare > has the streams Bare lacks, installed first (1 ms)
141
+
142
+ Tests 1 passed (1)
143
+ Time 2 ms
144
+
145
+ Test Files 1 passed (1)
146
+ ```
147
+
148
+ A failure says what was expected and shows the value:
149
+
150
+ ```text
151
+ ✗ memoryStore, as a store > lists its keys in order (0 ms)
152
+ AssertionError: expected ["b", "a"] to equal ["a", "b"]
153
+ ```
154
+
155
+ ### The options
156
+
157
+ | Option | What it does |
158
+ | ------------ | ---------------------------------------------------------------------------------------------------------- |
159
+ | `root` | Your project's folder, which `bare` runs in and resolves Bare's modules from (required) |
160
+ | `files` | The test files, from `root` or absolute (required) |
161
+ | `globals` | The modules imported first: `BARE_GLOBALS` of `@wtf/project-bare/globals` by default |
162
+ | `modules` | Node modules by their name after `node:`, and the Bare module that stands in, over `NODE_MODULES` |
163
+ | `conditions` | Export conditions to take after `bare` |
164
+ | `external` | Specifiers to leave for Bare to resolve, beside `bare-*` and the mapped modules |
165
+ | `outDir` | Where the bundles are written, `node_modules/.cache/project-bare` by default: keep it under `node_modules` |
166
+ | `bare` | The command that starts Bare, `bare` by default |
167
+ | `timeout` | Milliseconds one file has, 300 000 by default; then it is killed |
168
+
169
+ `bundleTests` of `@wtf/project-bare/bundle` and `runBare` of `@wtf/project-bare/run` are the two
170
+ halves of `bareTest`, for a script that does one alone.
171
+
172
+ ## Run them in CI
173
+
174
+ The Node.js workspace component has a job for them, off by default. Turn it on, and tell it which
175
+ script to run; the job runs on what `node-build` built, after the install that brought `bare`:
176
+
177
+ ```yaml
178
+ include:
179
+ - component: $CI_SERVER_FQDN/wetryfun/devops/components/node/gitlab-ci-node@3
180
+ inputs:
181
+ bare-enabled: true
182
+ bare-args: run test:bare
183
+ ```
184
+
185
+ The job is `node-test-bare`. It needs `node-build`, as every test job does, and fails the pipeline
186
+ when `test:bare` exits non-zero. If your pipeline does not use the component, run the same command
187
+ after your build:
188
+
189
+ ```yaml
190
+ node-test-bare:
191
+ script:
192
+ - pnpm run test:bare
193
+ needs:
194
+ - node-build
195
+ ```
196
+
197
+ ## Where Bare differs
198
+
199
+ These are Bare's own, not this package's; a test that hits one needs the workaround, or the
200
+ code a provider of Bare:
201
+
202
+ - `ReadableStream` has no `pipeThrough`, and `pipeTo` takes no options.
203
+ - `bare-stream`'s `WritableStream` calls its sink's `close()` as it is constructed, not at
204
+ `writer.close()`: give a sink that closes a socket a lazy `close`.
205
+ - There is no `navigator.locks`; `memoryLocks()` is the one thread's.
206
+ - `bare-net` has no backpressure on its receiving side.
@@ -16,6 +16,7 @@ Each concern is a package of its own, so you install the ones you use:
16
16
  | `@wtf/project-vitest` | The Vitest configs (`./config`, `./process`, `./browser`, `./storybook`) |
17
17
  | `@wtf/project-typedoc` | The TypeDoc config for a docs package (`./config`, `./plugins`) |
18
18
  | `@wtf/project-wpt` | A standard's Web Platform Tests, run against your implementation, in Vitest |
19
+ | `@wtf/project-bare` | Your tests, run on Bare, which Vitest cannot run on (`./test`, `./bundle`) |
19
20
 
20
21
  ## Set up a new repo
21
22
 
@@ -48,7 +49,7 @@ The root's package.json runs everything from the root:
48
49
  "test": "NODE_OPTIONS=\"$NODE_OPTIONS --import=@wtf/project-resolve/register\" vitest run --configLoader native",
49
50
  "test:dist": "TEST_FROM=dist vitest run --configLoader native"
50
51
  },
51
- "engines": { "node": ">=24.15.0" }
52
+ "engines": { "node": ">=26" }
52
53
  }
53
54
  ```
54
55
 
package/guides/testing.md CHANGED
@@ -35,6 +35,7 @@ the second.
35
35
  | Unit | `test` | `test:dist` |
36
36
  | Browser | `test:browser` | `test:browser:dist` |
37
37
  | Integration | `test:integration` | `test:integration:dist` |
38
+ | Bare | | `test:bare` |
38
39
 
39
40
  The source script gives Node the resolve hook by `--import`. The build script sets
40
41
  `TEST_FROM=dist` and gives no hook. Both load the Vitest config with Node (`--configLoader
@@ -53,6 +54,9 @@ native`):
53
54
  }
54
55
  ```
55
56
 
57
+ `test:bare` has no pair: Bare cannot read a package's source, so it runs the build alone, and you
58
+ run `pnpm run build` before it. The [Bare guide](bare.md) shows its script.
59
+
56
60
  Leave out the pairs of the suites you don't have. A repo with no browser tests has no
57
61
  `test:browser` and no `test:browser:dist`.
58
62
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wtf/project-docs",
3
- "version": "5.3.2",
3
+ "version": "6.1.0",
4
4
  "description": "Guides and API reference for the @wtf/project packages: the shared TypeScript, oxlint, oxfmt, Vite, Vitest, TypeDoc and Astro configs of a pnpm workspace, the resolve hook that runs its TypeScript from source, the runner of the Web Platform Tests, the Astro integrations that make a site serve on GitLab Pages, and the loader of a project's wtf configuration.",
5
5
  "homepage": "https://gitlab.com/wetryfun/project/project/-/tree/main/packages/project-docs",
6
6
  "bugs": {
@@ -36,22 +36,23 @@
36
36
  "typedoc": "typedoc"
37
37
  },
38
38
  "devDependencies": {
39
- "@wtf/project-astro": "3.1.1",
40
- "@wtf/project-config": "3.0.2",
41
- "@wtf/project-oxfmt": "1.1.1",
42
- "@wtf/project-oxlint": "1.1.1",
43
- "@wtf/project-resolve": "1.0.0",
44
- "@wtf/project-storybook": "1.0.0",
45
- "@wtf/project-typedoc": "3.0.1",
46
- "@wtf/project-typescript": "1.0.0",
47
- "@wtf/project-vite": "2.0.1",
48
- "@wtf/project-vitest": "3.0.1",
49
- "@wtf/project-wpt": "2.0.1",
39
+ "@wtf/project-astro": "4.0.0",
40
+ "@wtf/project-bare": "1.0.0",
41
+ "@wtf/project-config": "4.0.0",
42
+ "@wtf/project-oxfmt": "2.0.0",
43
+ "@wtf/project-oxlint": "2.0.0",
44
+ "@wtf/project-resolve": "2.0.0",
45
+ "@wtf/project-storybook": "2.0.0",
46
+ "@wtf/project-typedoc": "4.0.0",
47
+ "@wtf/project-typescript": "2.0.0",
48
+ "@wtf/project-vite": "3.0.0",
49
+ "@wtf/project-vitest": "4.0.0",
50
+ "@wtf/project-wpt": "3.0.0",
50
51
  "typedoc": "0.28.20",
51
52
  "typedoc-plugin-llms-txt": "0.1.2",
52
53
  "typedoc-plugin-markdown": "4.13.1"
53
54
  },
54
55
  "engines": {
55
- "node": ">=24.15.0"
56
+ "node": ">=26"
56
57
  }
57
58
  }