@wtf/project-docs 2.3.1 → 4.0.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 (378) hide show
  1. package/api/.generated +14 -25
  2. package/api/@wtf/project-astro/README.md +42 -25
  3. package/api/@wtf/project-astro/config/README.md +9 -1
  4. package/api/@wtf/project-astro/config/functions/baseConfig.md +10 -6
  5. package/api/@wtf/project-astro/config/functions/baseOf.md +5 -5
  6. package/api/@wtf/project-astro/config/functions/siteOf.md +5 -5
  7. package/api/@wtf/project-astro/config/type-aliases/BaseOptions.md +21 -19
  8. package/api/@wtf/project-astro/config/type-aliases/Env.md +3 -3
  9. package/api/@wtf/project-astro/errors/classes/BrokenLinksError.md +5 -5
  10. package/api/@wtf/project-astro/errors/classes/InvalidRedirectError.md +6 -6
  11. package/api/@wtf/project-astro/errors/classes/RedirectedLinksError.md +5 -5
  12. package/api/@wtf/project-astro/errors/classes/SiteError.md +4 -4
  13. package/api/@wtf/project-astro/index/README.md +3 -1
  14. package/api/@wtf/project-astro/index/type-aliases/AstroPlatform.md +15 -0
  15. package/api/@wtf/project-astro/index/type-aliases/BrokenLink.md +3 -3
  16. package/api/@wtf/project-astro/index/type-aliases/IgnoredLine.md +4 -4
  17. package/api/@wtf/project-astro/index/type-aliases/RedirectInput.md +2 -2
  18. package/api/@wtf/project-astro/index/type-aliases/RedirectMatch.md +3 -3
  19. package/api/@wtf/project-astro/index/type-aliases/RedirectRule.md +5 -5
  20. package/api/@wtf/project-astro/index/type-aliases/RedirectStatus.md +1 -1
  21. package/api/@wtf/project-astro/index/type-aliases/RedirectedLink.md +2 -2
  22. package/api/@wtf/project-astro/index/type-aliases/Redirects.md +3 -3
  23. package/api/@wtf/project-astro/links/README.md +4 -0
  24. package/api/@wtf/project-astro/links/functions/brokenLinksIn.md +1 -1
  25. package/api/@wtf/project-astro/links/functions/links.md +15 -6
  26. package/api/@wtf/project-astro/links/functions/redirectedLinksIn.md +1 -1
  27. package/api/@wtf/project-astro/links/type-aliases/LinksOptions.md +23 -0
  28. package/api/@wtf/project-astro/links/variables/LINKS.md +1 -1
  29. package/api/@wtf/project-astro/pages/functions/fixSearchUrlsIn.md +1 -1
  30. package/api/@wtf/project-astro/pages/functions/moveConflictingPages.md +1 -1
  31. package/api/@wtf/project-astro/pages/functions/pages.md +9 -6
  32. package/api/@wtf/project-astro/pages/functions/prefixedLocaleOf.md +1 -1
  33. package/api/@wtf/project-astro/pages/functions/redirectBaseToLocaleIn.md +1 -1
  34. package/api/@wtf/project-astro/pages/functions/slashFolderLinksIn.md +1 -1
  35. package/api/@wtf/project-astro/pages/type-aliases/I18n.md +1 -1
  36. package/api/@wtf/project-astro/pages/type-aliases/PagesOptions.md +2 -2
  37. package/api/@wtf/project-astro/pages/variables/PAGES.md +1 -1
  38. package/api/@wtf/project-astro/preview/README.md +7 -4
  39. package/api/@wtf/project-astro/preview/functions/files.md +1 -1
  40. package/api/@wtf/project-astro/preview/functions/listen.md +1 -1
  41. package/api/@wtf/project-astro/preview/functions/notFound.md +1 -1
  42. package/api/@wtf/project-astro/preview/functions/pagesOf.md +1 -1
  43. package/api/@wtf/project-astro/preview/functions/previewOf.md +6 -5
  44. package/api/@wtf/project-astro/preview/type-aliases/FilesOptions.md +2 -2
  45. package/api/@wtf/project-astro/preview/type-aliases/Handler.md +1 -1
  46. package/api/@wtf/project-astro/preview/type-aliases/ListenOptions.md +4 -4
  47. package/api/@wtf/project-astro/preview/type-aliases/Listening.md +5 -5
  48. package/api/@wtf/project-astro/preview/type-aliases/Pages.md +3 -3
  49. package/api/@wtf/project-astro/preview/type-aliases/Preview.md +4 -4
  50. package/api/@wtf/project-astro/preview/type-aliases/PreviewOptions.md +8 -7
  51. package/api/@wtf/project-astro/redirects/functions/formatRedirects.md +1 -1
  52. package/api/@wtf/project-astro/redirects/functions/matchRedirect.md +1 -1
  53. package/api/@wtf/project-astro/redirects/functions/parseRedirects.md +1 -1
  54. package/api/@wtf/project-astro/redirects/variables/MAX_PARTS.md +1 -1
  55. package/api/@wtf/project-astro/redirects/variables/MAX_RULES.md +1 -1
  56. package/api/@wtf/project-astro/redirects/variables/MAX_SIZE.md +1 -1
  57. package/api/@wtf/project-astro/schema/README.md +7 -3
  58. package/api/@wtf/project-astro/schema/functions/astroSchemaWith.md +3 -3
  59. package/api/@wtf/project-astro/schema/type-aliases/AstroSection.md +11 -0
  60. package/api/@wtf/project-astro/schema/type-aliases/JsonSchema.md +12 -12
  61. package/api/@wtf/project-astro/schema/type-aliases/OptionsSchema.md +1 -1
  62. package/api/@wtf/project-astro/schema/variables/astroProperties.md +4 -3
  63. package/api/@wtf/project-astro/schema/variables/astroSchema.md +5 -5
  64. package/api/@wtf/project-config/README.md +40 -35
  65. package/api/@wtf/project-config/define/functions/defineConfig.md +1 -1
  66. package/api/@wtf/project-config/env/README.md +2 -2
  67. package/api/@wtf/project-config/env/functions/envNameOf.md +1 -1
  68. package/api/@wtf/project-config/env/functions/envPrefixOf.md +1 -1
  69. package/api/@wtf/project-config/env/functions/jsonSchemaOf.md +1 -1
  70. package/api/@wtf/project-config/env/functions/variablesOf.md +1 -1
  71. package/api/@wtf/project-config/env/functions/withEnvironment.md +1 -1
  72. package/api/@wtf/project-config/env/type-aliases/Environment.md +1 -1
  73. package/api/@wtf/project-config/env/type-aliases/EnvironmentValue.md +3 -3
  74. package/api/@wtf/project-config/env/type-aliases/WithEnvironment.md +3 -3
  75. package/api/@wtf/project-config/errors/README.md +3 -5
  76. package/api/@wtf/project-config/errors/classes/ConfigError.md +4 -5
  77. package/api/@wtf/project-config/errors/classes/ConfigFileMismatchError.md +6 -6
  78. package/api/@wtf/project-config/errors/classes/ConfigInCodeError.md +5 -5
  79. package/api/@wtf/project-config/errors/classes/ConfigPathError.md +5 -5
  80. package/api/@wtf/project-config/errors/classes/EnvPlaceholderUnsetError.md +6 -6
  81. package/api/@wtf/project-config/errors/classes/InvalidConfigFileError.md +5 -5
  82. package/api/@wtf/project-config/errors/classes/InvalidSectionError.md +7 -7
  83. package/api/@wtf/project-config/errors/classes/NamedError.md +12 -12
  84. package/api/@wtf/project-config/errors/classes/NoConfigFileError.md +5 -5
  85. package/api/@wtf/project-config/errors/classes/NoConfigValueError.md +6 -6
  86. package/api/@wtf/project-config/errors/classes/SyncSchemaError.md +6 -6
  87. package/api/@wtf/project-config/errors/classes/UnwritableConfigFileError.md +5 -5
  88. package/api/@wtf/project-config/errors/type-aliases/NamedErrorCode.md +1 -1
  89. package/api/@wtf/project-config/errors/type-aliases/NamedErrorDetails.md +9 -9
  90. package/api/@wtf/project-config/index/README.md +1 -3
  91. package/api/@wtf/project-config/index/type-aliases/ConfigDefaults.md +3 -3
  92. package/api/@wtf/project-config/index/type-aliases/ConfigEnvironment.md +4 -4
  93. package/api/@wtf/project-config/index/type-aliases/ConfigIssue.md +3 -3
  94. package/api/@wtf/project-config/index/type-aliases/ConfigNames.md +4 -4
  95. package/api/@wtf/project-config/index/type-aliases/ConfigPath.md +1 -1
  96. package/api/@wtf/project-config/index/type-aliases/ConfigPlatform.md +4 -4
  97. package/api/@wtf/project-config/index/type-aliases/ConfigSection.md +1 -1
  98. package/api/@wtf/project-config/index/type-aliases/ConfigSource.md +3 -3
  99. package/api/@wtf/project-config/index/type-aliases/ConfigWrite.md +10 -10
  100. package/api/@wtf/project-config/index/type-aliases/ImportModule.md +1 -1
  101. package/api/@wtf/project-config/index/type-aliases/JsonSchema.md +1 -1
  102. package/api/@wtf/project-config/index/type-aliases/LocatedConfig.md +4 -4
  103. package/api/@wtf/project-config/index/type-aliases/NamespaceConfig.md +2 -2
  104. package/api/@wtf/project-config/index/type-aliases/ResolvedConfig.md +9 -9
  105. package/api/@wtf/project-config/index/type-aliases/SectionSchema.md +1 -1
  106. package/api/@wtf/project-config/index/type-aliases/SectionsOf.md +1 -1
  107. package/api/@wtf/project-config/index/type-aliases/ValidateSection.md +1 -1
  108. package/api/@wtf/project-config/load/README.md +14 -11
  109. package/api/@wtf/project-config/load/functions/ignoredWarning.md +1 -1
  110. package/api/@wtf/project-config/load/functions/importFileModule.md +1 -1
  111. package/api/@wtf/project-config/load/functions/loadConfig.md +10 -11
  112. package/api/@wtf/project-config/load/type-aliases/LoadLayers.md +5 -5
  113. package/api/@wtf/project-config/load/type-aliases/LoadOptions.md +5 -4
  114. package/api/@wtf/project-config/load/type-aliases/LoadPlatform.md +15 -0
  115. package/api/@wtf/project-config/locate/README.md +6 -7
  116. package/api/@wtf/project-config/locate/functions/configFilesOf.md +1 -1
  117. package/api/@wtf/project-config/locate/functions/configNamesOf.md +1 -1
  118. package/api/@wtf/project-config/locate/functions/jsonFilesOf.md +3 -3
  119. package/api/@wtf/project-config/locate/functions/locateConfig.md +1 -1
  120. package/api/@wtf/project-config/locate/functions/projectRootOf.md +1 -1
  121. package/api/@wtf/project-config/locate/type-aliases/LocateNames.md +2 -2
  122. package/api/@wtf/project-config/locate/type-aliases/LocateOptions.md +3 -3
  123. package/api/@wtf/project-config/locate/type-aliases/NamespaceNames.md +2 -2
  124. package/api/@wtf/project-config/locate/variables/DEFAULT_NAMESPACE.md +1 -1
  125. package/api/@wtf/project-config/named/README.md +2 -2
  126. package/api/@wtf/project-config/named/functions/factoryOf.md +1 -1
  127. package/api/@wtf/project-config/named/functions/namedSchema.md +1 -1
  128. package/api/@wtf/project-config/named/functions/namedSetSchema.md +1 -1
  129. package/api/@wtf/project-config/named/functions/resolveNamed.md +1 -1
  130. package/api/@wtf/project-config/named/functions/resolveNamedSet.md +1 -1
  131. package/api/@wtf/project-config/named/type-aliases/LoadModule.md +3 -1
  132. package/api/@wtf/project-config/named/type-aliases/ModuleReference.md +3 -3
  133. package/api/@wtf/project-config/named/type-aliases/NamedCheckOptions.md +5 -5
  134. package/api/@wtf/project-config/named/type-aliases/NamedEntries.md +1 -1
  135. package/api/@wtf/project-config/named/type-aliases/NamedFactory.md +1 -1
  136. package/api/@wtf/project-config/named/type-aliases/NamedOptions.md +1 -1
  137. package/api/@wtf/project-config/named/type-aliases/NamedReference.md +1 -1
  138. package/api/@wtf/project-config/named/type-aliases/NamedResolveOptions.md +3 -3
  139. package/api/@wtf/project-config/named/type-aliases/NamedSchema.md +1 -1
  140. package/api/@wtf/project-config/named/type-aliases/NamedSchemaOptions.md +4 -4
  141. package/api/@wtf/project-config/named/type-aliases/NamedSet.md +1 -1
  142. package/api/@wtf/project-config/named/type-aliases/NamedSetOptions.md +2 -2
  143. package/api/@wtf/project-config/named/type-aliases/NamedSetSchemaOptions.md +3 -3
  144. package/api/@wtf/project-config/named/type-aliases/NamedSets.md +1 -1
  145. package/api/@wtf/project-config/named/type-aliases/NamedUse.md +1 -1
  146. package/api/@wtf/project-config/path/functions/configPathOf.md +1 -1
  147. package/api/@wtf/project-config/path/functions/textOfConfigPath.md +1 -1
  148. package/api/@wtf/project-config/path/functions/valueAt.md +1 -1
  149. package/api/@wtf/project-config/placeholder/functions/expandPlaceholders.md +1 -1
  150. package/api/@wtf/project-config/placeholder/functions/expandString.md +1 -1
  151. package/api/@wtf/project-config/schema/functions/namespaceSchema.md +1 -1
  152. package/api/@wtf/project-config/schema/functions/sectionIdOf.md +1 -1
  153. package/api/@wtf/project-config/schema/type-aliases/NamespaceSchemaOptions.md +3 -3
  154. package/api/@wtf/project-config/schema/variables/JSON_SCHEMA_DRAFT.md +1 -1
  155. package/api/@wtf/project-config/section/README.md +11 -8
  156. package/api/@wtf/project-config/section/functions/issuesOf.md +1 -1
  157. package/api/@wtf/project-config/section/functions/issuesOfSync.md +1 -1
  158. package/api/@wtf/project-config/section/functions/mergeSection.md +1 -1
  159. package/api/@wtf/project-config/section/functions/sectionOf.md +10 -10
  160. package/api/@wtf/project-config/section/type-aliases/Checked.md +3 -3
  161. package/api/@wtf/project-config/write/README.md +5 -4
  162. package/api/@wtf/project-config/write/functions/setConfigValue.md +1 -1
  163. package/api/@wtf/project-config/write/functions/unsetConfigValue.md +1 -1
  164. package/api/@wtf/project-config/write/type-aliases/WriteOptions.md +2 -2
  165. package/api/@wtf/project-oxfmt/README.md +5 -2
  166. package/api/@wtf/project-oxfmt/config/functions/oxfmtConfig.md +1 -1
  167. package/api/@wtf/project-oxfmt/config/type-aliases/OxfmtOptions.md +1 -1
  168. package/api/@wtf/project-oxfmt/config/variables/OXFMT_DEFAULTS.md +6 -6
  169. package/api/@wtf/project-oxfmt/config/variables/default.md +1 -1
  170. package/api/@wtf/project-oxfmt/schema/README.md +5 -2
  171. package/api/@wtf/project-oxfmt/schema/variables/oxfmtSchema.md +1 -1
  172. package/api/@wtf/project-oxlint/README.md +5 -2
  173. package/api/@wtf/project-oxlint/config/functions/oxlintConfig.md +1 -1
  174. package/api/@wtf/project-oxlint/config/type-aliases/OxlintOptions.md +1 -1
  175. package/api/@wtf/project-oxlint/config/variables/OXLINT_DEFAULTS.md +17 -17
  176. package/api/@wtf/project-oxlint/config/variables/default.md +1 -1
  177. package/api/@wtf/project-oxlint/schema/README.md +5 -2
  178. package/api/@wtf/project-oxlint/schema/variables/oxlintSchema.md +1 -1
  179. package/api/@wtf/project-resolve/condition/variables/SOURCE_CONDITION.md +1 -1
  180. package/api/@wtf/project-resolve/env/functions/isHook.md +1 -1
  181. package/api/@wtf/project-resolve/env/functions/optionsWithoutHook.md +1 -1
  182. package/api/@wtf/project-resolve/env/functions/withoutHook.md +1 -1
  183. package/api/@wtf/project-resolve/env/type-aliases/Env.md +1 -1
  184. package/api/@wtf/project-resolve/errors/classes/ResolveError.md +4 -4
  185. package/api/@wtf/project-resolve/errors/classes/UnreadableWorkspaceError.md +6 -6
  186. package/api/@wtf/project-resolve/errors/classes/WorkspaceError.md +5 -5
  187. package/api/@wtf/project-resolve/hooks/functions/candidatesOf.md +1 -1
  188. package/api/@wtf/project-resolve/hooks/functions/sourcesHookOf.md +1 -1
  189. package/api/@wtf/project-resolve/hooks/functions/sourcesOf.md +1 -1
  190. package/api/@wtf/project-resolve/hooks/variables/resolveTypeScript.md +1 -1
  191. package/api/@wtf/project-resolve/node/functions/nodePlatform.md +5 -5
  192. package/api/@wtf/project-resolve/register/variables/REGISTERED.md +1 -1
  193. package/api/@wtf/project-resolve/workspace/functions/filesOf.md +1 -1
  194. package/api/@wtf/project-resolve/workspace/functions/packagesOf.md +1 -1
  195. package/api/@wtf/project-resolve/workspace/functions/workspaceAt.md +1 -1
  196. package/api/@wtf/project-resolve/workspace/functions/workspaceOf.md +1 -1
  197. package/api/@wtf/project-resolve/workspace/functions/workspaceRootAbove.md +1 -1
  198. package/api/@wtf/project-resolve/workspace/functions/workspaceRootOf.md +1 -1
  199. package/api/@wtf/project-resolve/workspace/type-aliases/Agent.md +1 -1
  200. package/api/@wtf/project-resolve/workspace/type-aliases/DirectoryEntry.md +4 -4
  201. package/api/@wtf/project-resolve/workspace/type-aliases/FileContents.md +3 -3
  202. package/api/@wtf/project-resolve/workspace/type-aliases/PackageManager.md +4 -4
  203. package/api/@wtf/project-resolve/workspace/type-aliases/PackageManagerName.md +1 -1
  204. package/api/@wtf/project-resolve/workspace/type-aliases/ProcessWorkspaceOptions.md +1 -1
  205. package/api/@wtf/project-resolve/workspace/type-aliases/Workspace.md +5 -5
  206. package/api/@wtf/project-resolve/workspace/type-aliases/WorkspaceDirectoryHandle.md +6 -6
  207. package/api/@wtf/project-resolve/workspace/type-aliases/WorkspaceFileHandle.md +3 -3
  208. package/api/@wtf/project-resolve/workspace/type-aliases/WorkspaceFiles.md +6 -6
  209. package/api/@wtf/project-resolve/workspace/type-aliases/WorkspaceOptions.md +2 -2
  210. package/api/@wtf/project-resolve/workspace/type-aliases/WorkspacePackage.md +4 -4
  211. package/api/@wtf/project-resolve/workspace/type-aliases/WorkspacePaths.md +7 -7
  212. package/api/@wtf/project-typedoc/README.md +17 -3
  213. package/api/@wtf/project-typedoc/config/README.md +20 -4
  214. package/api/@wtf/project-typedoc/config/functions/gitRevisionOf.md +6 -6
  215. package/api/@wtf/project-typedoc/config/functions/typedocConfig.md +5 -5
  216. package/api/@wtf/project-typedoc/config/type-aliases/RevisionSources.md +7 -7
  217. package/api/@wtf/project-typedoc/config/type-aliases/TypedocConfig.md +1 -1
  218. package/api/@wtf/project-typedoc/config/type-aliases/TypedocOptions.md +8 -6
  219. package/api/@wtf/project-typedoc/config/type-aliases/TypedocPlatform.md +18 -0
  220. package/api/@wtf/project-typedoc/plugins/README.md +0 -1
  221. package/api/@wtf/project-typedoc/plugins/functions/cleanGeneratedMarkdown.md +1 -1
  222. package/api/@wtf/project-typedoc/plugins/functions/linkTrackedSources.md +2 -2
  223. package/api/@wtf/project-typedoc/plugins/functions/preventMediaFiles.md +1 -1
  224. package/api/@wtf/project-typedoc/plugins/type-aliases/CleanGeneratedMarkdownOptions.md +15 -3
  225. package/api/@wtf/project-typedoc/plugins/type-aliases/LinkTrackedSourcesOptions.md +9 -9
  226. package/api/@wtf/project-typedoc/plugins/type-aliases/PreventMediaFilesOptions.md +23 -3
  227. package/api/@wtf/project-typedoc/plugins/type-aliases/TypedocPlugin.md +1 -1
  228. package/api/@wtf/project-typedoc/schema/README.md +11 -2
  229. package/api/@wtf/project-typedoc/schema/type-aliases/TypedocSection.md +19 -0
  230. package/api/@wtf/project-typedoc/schema/variables/typedocSchema.md +6 -5
  231. package/api/@wtf/project-vite/README.md +20 -11
  232. package/api/@wtf/project-vite/config/README.md +11 -4
  233. package/api/@wtf/project-vite/config/functions/baseConfig.md +14 -9
  234. package/api/@wtf/project-vite/config/functions/buildsSite.md +1 -1
  235. package/api/@wtf/project-vite/config/functions/compress.md +1 -1
  236. package/api/@wtf/project-vite/config/functions/conditionsOf.md +8 -7
  237. package/api/@wtf/project-vite/config/functions/fromDist.md +22 -0
  238. package/api/@wtf/project-vite/config/type-aliases/BaseOptions.md +15 -2
  239. package/api/@wtf/project-vite/config/type-aliases/CompressOptions.md +4 -4
  240. package/api/@wtf/project-vite/config/variables/CLIENT_CONDITIONS.md +1 -1
  241. package/api/@wtf/project-vite/config/variables/COMPRESSIBLE.md +1 -1
  242. package/api/@wtf/project-vite/config/variables/THRESHOLD.md +1 -1
  243. package/api/@wtf/project-vite/schema/README.md +10 -3
  244. package/api/@wtf/project-vite/schema/type-aliases/ViteSection.md +11 -0
  245. package/api/@wtf/project-vite/schema/variables/viteSchema.md +5 -4
  246. package/api/@wtf/project-vitest/README.md +34 -16
  247. package/api/@wtf/project-vitest/browser/README.md +2 -1
  248. package/api/@wtf/project-vitest/browser/functions/browserConfig.md +6 -6
  249. package/api/@wtf/project-vitest/browser/functions/browserRootConfig.md +2 -2
  250. package/api/@wtf/project-vitest/browser/type-aliases/BrowserOptions.md +8 -6
  251. package/api/@wtf/project-vitest/config/README.md +17 -1
  252. package/api/@wtf/project-vitest/config/functions/fromDist.md +22 -0
  253. package/api/@wtf/project-vitest/config/functions/integrationConfig.md +2 -2
  254. package/api/@wtf/project-vitest/config/functions/packageConfig.md +17 -10
  255. package/api/@wtf/project-vitest/config/functions/rootConfig.md +5 -2
  256. package/api/@wtf/project-vitest/config/type-aliases/PackageOptions.md +18 -0
  257. package/api/@wtf/project-vitest/config/type-aliases/RootConfigOptions.md +2 -2
  258. package/api/@wtf/project-vitest/config/type-aliases/RootOptions.md +32 -7
  259. package/api/@wtf/project-vitest/config/type-aliases/VitestPlatform.md +26 -0
  260. package/api/@wtf/project-vitest/config/variables/GUARD_TIMEOUT.md +1 -1
  261. package/api/@wtf/project-vitest/config/variables/integration.md +10 -10
  262. package/api/@wtf/project-vitest/process/README.md +3 -3
  263. package/api/@wtf/project-vitest/process/functions/childEnv.md +6 -6
  264. package/api/@wtf/project-vitest/process/type-aliases/Env.md +1 -1
  265. package/api/@wtf/project-vitest/schema/README.md +14 -3
  266. package/api/@wtf/project-vitest/schema/type-aliases/VitestSection.md +12 -0
  267. package/api/@wtf/project-vitest/schema/variables/vitestSchema.md +6 -5
  268. package/api/@wtf/project-vitest/storybook/functions/storybookConfig.md +6 -4
  269. package/api/@wtf/project-vitest/storybook/type-aliases/StorybookOptions.md +3 -3
  270. package/api/@wtf/project-wpt/README.md +27 -19
  271. package/api/@wtf/project-wpt/builtins/functions/builtins.md +1 -1
  272. package/api/@wtf/project-wpt/builtins/functions/intrinsics.md +1 -1
  273. package/api/@wtf/project-wpt/checkout/README.md +3 -2
  274. package/api/@wtf/project-wpt/checkout/functions/checkoutFolderOf.md +1 -1
  275. package/api/@wtf/project-wpt/checkout/functions/checkoutTests.md +1 -1
  276. package/api/@wtf/project-wpt/checkout/functions/checkoutWpt.md +1 -1
  277. package/api/@wtf/project-wpt/checkout/functions/execOf.md +28 -0
  278. package/api/@wtf/project-wpt/checkout/functions/fileOf.md +1 -1
  279. package/api/@wtf/project-wpt/checkout/type-aliases/CheckedOutTests.md +3 -3
  280. package/api/@wtf/project-wpt/checkout/type-aliases/CheckoutOptions.md +12 -12
  281. package/api/@wtf/project-wpt/checkout/type-aliases/CheckoutTestsOptions.md +2 -2
  282. package/api/@wtf/project-wpt/checkout/variables/HARNESS.md +1 -1
  283. package/api/@wtf/project-wpt/checkout/variables/REWRITES.md +1 -1
  284. package/api/@wtf/project-wpt/checkout/variables/WPT_REPOSITORY.md +1 -1
  285. package/api/@wtf/project-wpt/errors/classes/HarnessFailedError.md +4 -4
  286. package/api/@wtf/project-wpt/errors/classes/InvalidCommitError.md +4 -4
  287. package/api/@wtf/project-wpt/errors/classes/InvalidExpectationsError.md +4 -4
  288. package/api/@wtf/project-wpt/errors/classes/NoSuiteError.md +4 -4
  289. package/api/@wtf/project-wpt/errors/classes/NotInWptError.md +5 -5
  290. package/api/@wtf/project-wpt/errors/classes/StaleExpectationError.md +4 -4
  291. package/api/@wtf/project-wpt/errors/classes/SubtestFailedError.md +4 -4
  292. package/api/@wtf/project-wpt/errors/classes/UnexpectedPassError.md +4 -4
  293. package/api/@wtf/project-wpt/errors/classes/WptError.md +4 -4
  294. package/api/@wtf/project-wpt/errors/classes/WptFetchError.md +4 -4
  295. package/api/@wtf/project-wpt/expectations/functions/checkHarness.md +1 -1
  296. package/api/@wtf/project-wpt/expectations/functions/checkSubtest.md +1 -1
  297. package/api/@wtf/project-wpt/expectations/functions/expectationOf.md +1 -1
  298. package/api/@wtf/project-wpt/expectations/functions/expectationsIssues.md +1 -1
  299. package/api/@wtf/project-wpt/expectations/functions/readExpectations.md +6 -4
  300. package/api/@wtf/project-wpt/expectations/functions/staleOf.md +1 -1
  301. package/api/@wtf/project-wpt/expectations/type-aliases/ReadExpectations.md +3 -3
  302. package/api/@wtf/project-wpt/index/README.md +2 -5
  303. package/api/@wtf/project-wpt/index/type-aliases/CreateRealm.md +1 -1
  304. package/api/@wtf/project-wpt/index/type-aliases/Exec.md +3 -3
  305. package/api/@wtf/project-wpt/index/type-aliases/Expectations.md +1 -1
  306. package/api/@wtf/project-wpt/index/type-aliases/FileExpectation.md +4 -4
  307. package/api/@wtf/project-wpt/index/type-aliases/FileResult.md +4 -4
  308. package/api/@wtf/project-wpt/index/type-aliases/Globals.md +1 -1
  309. package/api/@wtf/project-wpt/index/type-aliases/HarnessResult.md +4 -4
  310. package/api/@wtf/project-wpt/index/type-aliases/HarnessStatus.md +1 -1
  311. package/api/@wtf/project-wpt/index/type-aliases/HoldRejections.md +1 -1
  312. package/api/@wtf/project-wpt/index/type-aliases/Realm.md +3 -3
  313. package/api/@wtf/project-wpt/index/type-aliases/SubtestResult.md +5 -5
  314. package/api/@wtf/project-wpt/index/type-aliases/SubtestStatus.md +1 -1
  315. package/api/@wtf/project-wpt/index/type-aliases/WptFile.md +3 -3
  316. package/api/@wtf/project-wpt/index/type-aliases/WptFiles.md +9 -9
  317. package/api/@wtf/project-wpt/index/type-aliases/WptPaths.md +4 -4
  318. package/api/@wtf/project-wpt/index/type-aliases/WptPlatform.md +10 -60
  319. package/api/@wtf/project-wpt/index/type-aliases/WptSystem.md +8 -8
  320. package/api/@wtf/project-wpt/index/type-aliases/WptTest.md +3 -3
  321. package/api/@wtf/project-wpt/meta/functions/idOf.md +1 -1
  322. package/api/@wtf/project-wpt/meta/functions/metaOf.md +1 -1
  323. package/api/@wtf/project-wpt/meta/functions/runsOutsideWindow.md +1 -1
  324. package/api/@wtf/project-wpt/meta/functions/scriptPathsOf.md +1 -1
  325. package/api/@wtf/project-wpt/meta/functions/testsOf.md +1 -1
  326. package/api/@wtf/project-wpt/meta/type-aliases/Meta.md +6 -6
  327. package/api/@wtf/project-wpt/node/README.md +16 -8
  328. package/api/@wtf/project-wpt/node/functions/nodeSystem.md +9 -3
  329. package/api/@wtf/project-wpt/node/type-aliases/NodeSystemPlatform.md +12 -0
  330. package/api/@wtf/project-wpt/node/variables/nodeFiles.md +1 -1
  331. package/api/@wtf/project-wpt/node/variables/nodeRealm.md +1 -1
  332. package/api/@wtf/project-wpt/node/variables/nodeRejections.md +1 -1
  333. package/api/@wtf/project-wpt/run/functions/runTest.md +1 -1
  334. package/api/@wtf/project-wpt/run/type-aliases/RunOptions.md +10 -9
  335. package/api/@wtf/project-wpt/run/type-aliases/RunPlatform.md +3 -3
  336. package/api/@wtf/project-wpt/run/variables/LONG_TIMEOUT.md +1 -1
  337. package/api/@wtf/project-wpt/run/variables/TIMEOUT.md +1 -1
  338. package/api/@wtf/project-wpt/run/variables/WPT_ORIGIN.md +1 -1
  339. package/api/@wtf/project-wpt/schema/README.md +6 -3
  340. package/api/@wtf/project-wpt/schema/type-aliases/WptConfig.md +2 -2
  341. package/api/@wtf/project-wpt/schema/type-aliases/WptSuiteConfig.md +2 -2
  342. package/api/@wtf/project-wpt/schema/variables/wptSchema.md +1 -1
  343. package/api/@wtf/project-wpt/suite/README.md +6 -2
  344. package/api/@wtf/project-wpt/suite/functions/wptSuite.md +1 -1
  345. package/api/@wtf/project-wpt/suite/type-aliases/WptSuiteOptions.md +8 -8
  346. package/api/llms.txt +8 -3
  347. package/guides/astro.md +48 -23
  348. package/guides/config.md +33 -32
  349. package/guides/getting-started.md +8 -2
  350. package/guides/presets.md +11 -2
  351. package/guides/vite.md +20 -10
  352. package/guides/vitest.md +54 -27
  353. package/package.json +7 -7
  354. package/api/@wtf/project-config/errors/classes/SyncConfigInCodeError.md +0 -177
  355. package/api/@wtf/project-config/index/type-aliases/ConfigSyncPlatform.md +0 -33
  356. package/api/@wtf/project-config/index/type-aliases/SyncFiles.md +0 -55
  357. package/api/@wtf/project-config/load/functions/loadConfigSync.md +0 -25
  358. package/api/@wtf/project-config/load/type-aliases/LoadSyncOptions.md +0 -11
  359. package/api/@wtf/project-config/locate/functions/locateConfigSync.md +0 -23
  360. package/api/@wtf/project-config/locate/functions/projectRootOfSync.md +0 -23
  361. package/api/@wtf/project-config/locate/type-aliases/LocateSyncOptions.md +0 -17
  362. package/api/@wtf/project-config/node/README.md +0 -29
  363. package/api/@wtf/project-config/node/functions/loadConfig.md +0 -24
  364. package/api/@wtf/project-config/node/functions/loadConfigSync.md +0 -24
  365. package/api/@wtf/project-config/node/functions/nodeConfigPlatform.md +0 -16
  366. package/api/@wtf/project-config/node/functions/nodeLoadModule.md +0 -32
  367. package/api/@wtf/project-config/node/functions/nodeSyncPlatform.md +0 -16
  368. package/api/@wtf/project-config/section/functions/sectionOfSync.md +0 -35
  369. package/api/@wtf/project-typedoc/config/variables/nodeRun.md +0 -33
  370. package/api/@wtf/project-typedoc/plugins/type-aliases/Run.md +0 -25
  371. package/api/@wtf/project-vite/config/variables/FROM_DIST.md +0 -11
  372. package/api/@wtf/project-vitest/config/variables/FROM_DIST.md +0 -11
  373. package/api/@wtf/project-wpt/index/type-aliases/ClearTimeout.md +0 -21
  374. package/api/@wtf/project-wpt/index/type-aliases/Env.md +0 -11
  375. package/api/@wtf/project-wpt/index/type-aliases/Performance.md +0 -35
  376. package/api/@wtf/project-wpt/index/type-aliases/SetTimeout.md +0 -22
  377. package/api/@wtf/project-wpt/node/functions/nodePlatform.md +0 -18
  378. package/api/@wtf/project-wpt/node/variables/nodeExec.md +0 -11
@@ -6,7 +6,7 @@
6
6
  type CompressOptions = object;
7
7
  ```
8
8
 
9
- Defined in: [packages/project-vite/src/config.ts:73](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-vite/src/config.ts#L73)
9
+ Defined in: [packages/project-vite/src/config.ts:84](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-vite/src/config.ts#L84)
10
10
 
11
11
  How a site's build writes its copies, by [compress](../functions/compress.md).
12
12
 
@@ -18,7 +18,7 @@ How a site's build writes its copies, by [compress](../functions/compress.md).
18
18
  readonly optional encodings?: readonly ("br" | "gz")[];
19
19
  ```
20
20
 
21
- Defined in: [packages/project-vite/src/config.ts:79](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-vite/src/config.ts#L79)
21
+ Defined in: [packages/project-vite/src/config.ts:90](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-vite/src/config.ts#L90)
22
22
 
23
23
  The copies it writes: `br` and `gz`, both, by default.
24
24
 
@@ -30,7 +30,7 @@ The copies it writes: `br` and `gz`, both, by default.
30
30
  readonly optional extensions?: readonly string[];
31
31
  ```
32
32
 
33
- Defined in: [packages/project-vite/src/config.ts:77](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-vite/src/config.ts#L77)
33
+ Defined in: [packages/project-vite/src/config.ts:88](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-vite/src/config.ts#L88)
34
34
 
35
35
  The extensions of the files it compresses: [COMPRESSIBLE](../variables/COMPRESSIBLE.md) by default.
36
36
 
@@ -42,6 +42,6 @@ The extensions of the files it compresses: [COMPRESSIBLE](../variables/COMPRESSI
42
42
  readonly optional threshold?: number;
43
43
  ```
44
44
 
45
- Defined in: [packages/project-vite/src/config.ts:75](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-vite/src/config.ts#L75)
45
+ Defined in: [packages/project-vite/src/config.ts:86](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-vite/src/config.ts#L86)
46
46
 
47
47
  The least a file is, in bytes, to be compressed: [THRESHOLD](../variables/THRESHOLD.md) by default.
@@ -6,7 +6,7 @@
6
6
  const CLIENT_CONDITIONS: readonly string[];
7
7
  ```
8
8
 
9
- Defined in: [packages/project-vite/src/config.ts:47](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-vite/src/config.ts#L47)
9
+ Defined in: [packages/project-vite/src/config.ts:58](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-vite/src/config.ts#L58)
10
10
 
11
11
  The conditions a browser's modules resolve by, as Vite's own default, `defaultClientConditions`
12
12
  of `vite`, has them: written here, as the config imports nothing of Vite when it runs, only its
@@ -6,7 +6,7 @@
6
6
  const COMPRESSIBLE: readonly string[];
7
7
  ```
8
8
 
9
- Defined in: [packages/project-vite/src/config.ts:54](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-vite/src/config.ts#L54)
9
+ Defined in: [packages/project-vite/src/config.ts:65](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-vite/src/config.ts#L65)
10
10
 
11
11
  The extensions of the files whose copies a site's build writes: text, as scripts, styles, pages,
12
12
  data, maps and SVG are, and WebAssembly. Each other is compressed already, as an image, a font
@@ -6,6 +6,6 @@
6
6
  const THRESHOLD: 1024 = 1024;
7
7
  ```
8
8
 
9
- Defined in: [packages/project-vite/src/config.ts:70](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-vite/src/config.ts#L70)
9
+ Defined in: [packages/project-vite/src/config.ts:81](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-vite/src/config.ts#L81)
10
10
 
11
11
  The least a file is, in bytes, to be compressed: below it, the headers cost more than it saves.
@@ -7,15 +7,22 @@ that checks them and gives their JSON Schema, so a repo can keep them in its con
7
7
  the `vite` section of `wtf.config.json`, check them, and spread them into `baseConfig()`.
8
8
 
9
9
  ```ts
10
- import { loadConfig } from '@wtf/project-config/node'
10
+ import { nodeStorage } from '@wtf/platform-fs-node/storage'
11
+ import { nodePlatform } from '@wtf/platform-node/platform'
12
+ import { loadConfig } from '@wtf/project-config/load'
11
13
  import { sectionOf } from '@wtf/project-config/section'
12
14
  import { baseConfig } from '@wtf/project-vite/config'
13
15
  import { viteSchema } from '@wtf/project-vite/schema'
14
16
 
15
- const config = await loadConfig()
16
- export default baseConfig({ ...(await sectionOf(config, 'vite', viteSchema)) })
17
+ const platform = nodePlatform({ fetch, storage: nodeStorage() })
18
+ const config = await loadConfig({ platform })
19
+ export default baseConfig({ platform, ...(await sectionOf(config, 'vite', viteSchema)) })
17
20
  ```
18
21
 
22
+ ## Type Aliases
23
+
24
+ - [ViteSection](type-aliases/ViteSection.md)
25
+
19
26
  ## Variables
20
27
 
21
28
  - [viteSchema](variables/viteSchema.md)
@@ -0,0 +1,11 @@
1
+ [Documentation](../../../../README.md) / [@wtf/project-vite](../../README.md) / [schema](../README.md) / ViteSection
2
+
3
+ # Type Alias: ViteSection
4
+
5
+ ```ts
6
+ type ViteSection = Omit<BaseOptions, "platform">;
7
+ ```
8
+
9
+ Defined in: [packages/project-vite/src/schema.ts:61](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-vite/src/schema.ts#L61)
10
+
11
+ The options of `baseConfig()` of ./config a configuration holds: each but the platform.
@@ -3,10 +3,11 @@
3
3
  # Variable: viteSchema
4
4
 
5
5
  ```ts
6
- const viteSchema: StandardSchemaV1<BaseOptions> & StandardJSONSchemaV1<BaseOptions>;
6
+ const viteSchema: StandardSchemaV1<ViteSection> & StandardJSONSchemaV1<ViteSection>;
7
7
  ```
8
8
 
9
- Defined in: [packages/project-vite/src/schema.ts:61](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-vite/src/schema.ts#L61)
9
+ Defined in: [packages/project-vite/src/schema.ts:68](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-vite/src/schema.ts#L68)
10
10
 
11
- The schema of the options of `baseConfig()` of ./config, `BaseOptions`: `compress`, `false` or
12
- the `threshold`, `extensions` and `encodings` of a site's compressed copies.
11
+ The schema of the options of `baseConfig()` of ./config a configuration holds, `ViteSection`:
12
+ `compress`, `false` or the `threshold`, `extensions` and `encodings` of a site's compressed
13
+ copies. The platform is the config file's own, never a value of JSON.
@@ -9,39 +9,50 @@ the same version, and `playwright` are optional peers, for coverage and for brow
9
9
  names each at its root by the one exact version, `5.0.5`, since the configs run in the Vitest that
10
10
  runs them. Vite comes from [`@wtf/project-vite`](../project-vite/README.md), a dependency.
11
11
 
12
- | Subpath | What you get |
13
- | ------------- | ----------------------------------------------------------------------------------------------------- |
14
- | `./config` | `rootConfig()`, `packageConfig()`, `integrationConfig()`, `integration`, `FROM_DIST`, `GUARD_TIMEOUT` |
15
- | `./process` | `childEnv()`: the environment for a process a test starts, without the resolve hook |
16
- | `./browser` | `browserConfig()` and `browserRootConfig()`: browser tests, in Chromium |
17
- | `./storybook` | `storybookConfig()`: for a package whose stories are its tests, each in Chromium |
18
- | `./schema` | `vitestSchema`: the Standard Schema of the options of `rootConfig()`, which gives their JSON Schema |
12
+ | Subpath | What you get |
13
+ | ------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
14
+ | `./config` | `rootConfig()`, `packageConfig()`, `integrationConfig()`, `integration`, `fromDist(env)`, `GUARD_TIMEOUT`, the type `VitestPlatform` |
15
+ | `./process` | `childEnv(env)`: the environment for a process a test starts, without the resolve hook |
16
+ | `./browser` | `browserConfig()` and `browserRootConfig()`: browser tests, in Chromium |
17
+ | `./storybook` | `storybookConfig()`: for a package whose stories are its tests, each in Chromium |
18
+ | `./schema` | `vitestSchema`: the Standard Schema of the options of `rootConfig()`, which gives their JSON Schema |
19
19
 
20
20
  ```ts
21
21
  // vitest.config.ts, at the root
22
+ import { nodeStorage } from '@wtf/platform-fs-node/storage'
23
+ import { nodePlatform } from '@wtf/platform-node/platform'
22
24
  import { rootConfig } from '@wtf/project-vitest/config'
23
25
 
24
- export default rootConfig()
26
+ const platform = nodePlatform({ fetch, storage: nodeStorage() })
27
+ export default rootConfig({ platform, argv: process.argv })
25
28
  ```
26
29
 
27
30
  ```ts
28
31
  // packages/core/vitest.config.ts
32
+ import { nodeStorage } from '@wtf/platform-fs-node/storage'
33
+ import { nodePlatform } from '@wtf/platform-node/platform'
29
34
  import { packageConfig } from '@wtf/project-vitest/config'
30
35
 
31
- export default packageConfig()
36
+ export default packageConfig({ platform: nodePlatform({ fetch, storage: nodeStorage() }) })
32
37
  ```
33
38
 
34
- `packageConfig(test, config)` takes the test options, and a Vite config to merge, such as
35
- `{ resolve: { dedupe: ['react'] } }`.
39
+ Each config file is the entry point: it builds Node's platform and gives it to the config, which
40
+ reads nothing of the process itself. The config reads `CI` and `TEST_FROM` of the platform's `env`,
41
+ the workspace of its `dirs.cwd`, by its `navigator.storage` and `path`; the root's takes the
42
+ arguments of the process, `argv`, too, whose `--project` filters its coverage reads.
43
+
44
+ `packageConfig({ platform, ...test }, config)` takes the platform and the test options, and a Vite
45
+ config to merge, such as `{ resolve: { dedupe: ['react'] } }`.
36
46
 
37
47
  The guards, in the root's `root` project, get 30 seconds per test, `GUARD_TIMEOUT`, the same as a
38
- package's tests, instead of Vitest's 5. Pass another with `rootConfig({ testTimeout: 60_000 })`.
48
+ package's tests, instead of Vitest's 5. Pass another with
49
+ `rootConfig({ platform, argv, testTimeout: 60_000 })`.
39
50
 
40
51
  When tests run from source, Vite resolves each workspace package through an alias from each export
41
52
  to its `@wtf/source`, and each test worker registers `@wtf/project-resolve`'s resolve hook, in
42
53
  Node's environment or in jsdom's. See the [tests guide](../../../guides/vitest.md).
43
54
 
44
- A package whose stories are its tests runs them with `storybookConfig({ storybook })` from
55
+ A package whose stories are its tests runs them with `storybookConfig({ platform, storybook })` from
45
56
  `./storybook`. It is a `browserConfig()` named `storybook`, whose tests are the stories that
46
57
  `@storybook/addon-vitest`'s plugin, `storybookTest()`, finds in the package's `.storybook`. The repo
47
58
  installs the addon at its Storybook's version; nothing here depends on Storybook.
@@ -55,13 +66,20 @@ of the repo's `wtf` configuration, load it with
55
66
 
56
67
  ```ts
57
68
  // vitest.config.ts, at the root
58
- import { loadConfig } from '@wtf/project-config/node'
69
+ import { nodeStorage } from '@wtf/platform-fs-node/storage'
70
+ import { nodePlatform } from '@wtf/platform-node/platform'
71
+ import { loadConfig } from '@wtf/project-config/load'
59
72
  import { sectionOf } from '@wtf/project-config/section'
60
73
  import { rootConfig } from '@wtf/project-vitest/config'
61
74
  import { vitestSchema } from '@wtf/project-vitest/schema'
62
75
 
63
- const config = await loadConfig()
64
- export default rootConfig({ ...(await sectionOf(config, 'vitest', vitestSchema)) })
76
+ const platform = nodePlatform({ fetch, storage: nodeStorage() })
77
+ const config = await loadConfig({ platform })
78
+ export default rootConfig({
79
+ platform,
80
+ argv: process.argv,
81
+ ...(await sectionOf(config, 'vitest', vitestSchema))
82
+ })
65
83
  ```
66
84
 
67
85
  ```json
@@ -9,7 +9,8 @@ Chromium by Playwright, and `browserRootConfig()` for the root's, which runs eve
9
9
  one process (`pnpm test:browser`).
10
10
 
11
11
  The tests read the workspace's packages as the unit suite's do: from their source by default,
12
- or, with `TEST_FROM=dist`, from what the build wrote.
12
+ or, with `TEST_FROM=dist`, from what the build wrote. Each config takes the platform it is of, as
13
+ those of ./config do, and reads nothing of the process.
13
14
 
14
15
  This module imports `@vitest/browser-playwright` when it loads, an optional peer: a repo with
15
16
  tests of the browser installs it, with `playwright` at the version of the browsers its CI's image
@@ -3,10 +3,10 @@
3
3
  # Function: browserConfig()
4
4
 
5
5
  ```ts
6
- function browserConfig(__namedParameters?): Promise<UserConfig>;
6
+ function browserConfig(__namedParameters): Promise<UserConfig>;
7
7
  ```
8
8
 
9
- Defined in: [packages/project-vitest/src/browser.ts:83](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-vitest/src/browser.ts#L83)
9
+ Defined in: [packages/project-vitest/src/browser.ts:90](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-vitest/src/browser.ts#L90)
10
10
 
11
11
  The Vitest config of one package's tests of the browser, its vitest.browser.config.ts: each
12
12
  `*.browser.test.ts` or `*.browser.test.tsx` of test/, in a headless Chromium by Playwright, with
@@ -20,12 +20,12 @@ The workspace's packages resolve as the unit suite's do (see `packageConfig`): t
20
20
  vite's aliases, or, with `TEST_FROM=dist`, to their build. With no setup file: the resolve hook
21
21
  of Node, which `packageConfig` registers in a worker, has no place in a browser.
22
22
 
23
- A package gives only what is its own: its `name`, the files it tests if not those, its `plugins`
24
- and `alias`es, its `setupFiles`, and any option of its tests over the config's, its `browser`
25
- over the config's one option at a time.
23
+ A package gives the platform the config is of, and only what is its own: its `name`, the files
24
+ it tests if not those, its `plugins` and `alias`es, its `setupFiles`, and any option of its tests
25
+ over the config's, its `browser` over the config's one option at a time.
26
26
 
27
27
  ```ts
28
- export default browserConfig({ name: 'elements:browser' })
28
+ export default browserConfig({ platform, name: 'elements:browser' })
29
29
  ```
30
30
 
31
31
  ## Parameters
@@ -3,10 +3,10 @@
3
3
  # Function: browserRootConfig()
4
4
 
5
5
  ```ts
6
- function browserRootConfig(options?): Promise<UserConfig>;
6
+ function browserRootConfig(options): Promise<UserConfig>;
7
7
  ```
8
8
 
9
- Defined in: [packages/project-vitest/src/browser.ts:145](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-vitest/src/browser.ts#L145)
9
+ Defined in: [packages/project-vitest/src/browser.ts:153](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-vitest/src/browser.ts#L153)
10
10
 
11
11
  The Vitest config of the root's tests of the browser, vitest.browser.config.ts: each package's
12
12
  vitest.browser.config.ts a project, in one process (`pnpm test:browser`), apart from the unit
@@ -6,15 +6,17 @@
6
6
  type BrowserOptions = Omit<NonNullable<ViteUserConfig["test"]>, "alias"> & object;
7
7
  ```
8
8
 
9
- Defined in: [packages/project-vitest/src/browser.ts:38](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-vitest/src/browser.ts#L38)
9
+ Defined in: [packages/project-vitest/src/browser.ts:41](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-vitest/src/browser.ts#L41)
10
10
 
11
- What a package gives [browserConfig](../functions/browserConfig.md): its tests' options over the config's, such as its
12
- `name`, its `include` or its `setupFiles`; and of Vite, its own `plugins`, as a dev server's
13
- endpoints the tests fetch, and its own `alias`es, as `@` for its src, added to the workspace's.
11
+ What a package gives [browserConfig](../functions/browserConfig.md): the platform the config is of; its tests' options
12
+ over the config's, such as its `name`, its `include` or its `setupFiles`; and of Vite, its own
13
+ `plugins`, as a dev server's endpoints the tests fetch, and its own `alias`es, as `@` for its
14
+ src, added to the workspace's.
14
15
 
15
16
  ## Type Declaration
16
17
 
17
18
  | Name | Type | Description | Defined in |
18
19
  | ------ | ------ | ------ | ------ |
19
- | `alias?` | `NonNullable`\<`NonNullable`\<`ViteUserConfig`\[`"resolve"`\]\>\[`"alias"`\]\> | Vite's aliases of the package, as `resolve.alias` has them, before the workspace's. | [packages/project-vitest/src/browser.ts:42](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-vitest/src/browser.ts#L42) |
20
- | `plugins?` | `NonNullable`\<`ViteUserConfig`\[`"plugins"`\]\> | Vite's plugins of the package, after the config's own. | [packages/project-vitest/src/browser.ts:40](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-vitest/src/browser.ts#L40) |
20
+ | `alias?` | `NonNullable`\<`NonNullable`\<`ViteUserConfig`\[`"resolve"`\]\>\[`"alias"`\]\> | Vite's aliases of the package, as `resolve.alias` has them, before the workspace's. | [packages/project-vitest/src/browser.ts:47](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-vitest/src/browser.ts#L47) |
21
+ | `platform` | [`VitestPlatform`](../../config/type-aliases/VitestPlatform.md) | The platform the config is of, as `packageConfig` of ./config takes it. | [packages/project-vitest/src/browser.ts:43](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-vitest/src/browser.ts#L43) |
22
+ | `plugins?` | `NonNullable`\<`ViteUserConfig`\[`"plugins"`\]\> | Vite's plugins of the package, after the config's own. | [packages/project-vitest/src/browser.ts:45](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-vitest/src/browser.ts#L45) |
@@ -11,19 +11,35 @@ vitest.integration.config.ts, and `integration`, what a package's own integratio
11
11
  The tests read the workspace's packages from their source, with no build first (`test`); or
12
12
  from what the build wrote, with `TEST_FROM=dist` (`test:dist`), each as it is published.
13
13
 
14
+ Each config takes the platform it is of, and reads nothing of the process: the config file, its
15
+ entry point, builds it, and gives the root's the arguments of the process too.
16
+
17
+ ```ts
18
+ // vitest.config.ts of the root
19
+ import { nodeStorage } from '@wtf/platform-fs-node/storage'
20
+ import { nodePlatform } from '@wtf/platform-node/platform'
21
+
22
+ import { rootConfig } from '@wtf/project-vitest/config'
23
+
24
+ const platform = nodePlatform({ fetch, storage: nodeStorage() })
25
+ export default rootConfig({ platform, argv: process.argv })
26
+ ```
27
+
14
28
  ## Type Aliases
15
29
 
30
+ - [PackageOptions](type-aliases/PackageOptions.md)
16
31
  - [RootConfigOptions](type-aliases/RootConfigOptions.md)
17
32
  - [RootOptions](type-aliases/RootOptions.md)
33
+ - [VitestPlatform](type-aliases/VitestPlatform.md)
18
34
 
19
35
  ## Variables
20
36
 
21
- - [FROM\_DIST](variables/FROM_DIST.md)
22
37
  - [GUARD\_TIMEOUT](variables/GUARD_TIMEOUT.md)
23
38
  - [integration](variables/integration.md)
24
39
 
25
40
  ## Functions
26
41
 
42
+ - [fromDist](functions/fromDist.md)
27
43
  - [integrationConfig](functions/integrationConfig.md)
28
44
  - [packageConfig](functions/packageConfig.md)
29
45
  - [rootConfig](functions/rootConfig.md)
@@ -0,0 +1,22 @@
1
+ [Documentation](../../../../README.md) / [@wtf/project-vitest](../../README.md) / [config](../README.md) / fromDist
2
+
3
+ # Function: fromDist()
4
+
5
+ ```ts
6
+ function fromDist(env): boolean;
7
+ ```
8
+
9
+ Defined in: [packages/project-vitest/src/suite.ts:87](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-vitest/src/suite.ts#L87)
10
+
11
+ Whether the tests read the workspace's packages from what the build wrote, of the environment
12
+ `env`: `TEST_FROM=dist`.
13
+
14
+ ## Parameters
15
+
16
+ | Parameter | Type |
17
+ | ------ | ------ |
18
+ | `env` | `Readonly`\<`Record`\<`string`, `string` \| `undefined`\>\> |
19
+
20
+ ## Returns
21
+
22
+ `boolean`
@@ -3,10 +3,10 @@
3
3
  # Function: integrationConfig()
4
4
 
5
5
  ```ts
6
- function integrationConfig(options?): Promise<UserConfig>;
6
+ function integrationConfig(options): Promise<UserConfig>;
7
7
  ```
8
8
 
9
- Defined in: [packages/project-vitest/src/config.ts:147](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-vitest/src/config.ts#L147)
9
+ Defined in: [packages/project-vitest/src/config.ts:184](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-vitest/src/config.ts#L184)
10
10
 
11
11
  The Vitest config of the root's integration suite, vitest.integration.config.ts: each package's
12
12
  vitest.integration.config.ts a project (`pnpm test:integration`), apart from the unit suite, as
@@ -3,28 +3,35 @@
3
3
  # Function: packageConfig()
4
4
 
5
5
  ```ts
6
- function packageConfig(test?, config?): Promise<UserConfig>;
6
+ function packageConfig(__namedParameters, config?): Promise<UserConfig>;
7
7
  ```
8
8
 
9
- Defined in: [packages/project-vitest/src/config.ts:81](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-vitest/src/config.ts#L81)
9
+ Defined in: [packages/project-vitest/src/config.ts:118](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-vitest/src/config.ts#L118)
10
10
 
11
11
  The Vitest config of one package, a project of the root's run: its tests against the source of
12
- every package, or against their build (see [FROM\_DIST](../variables/FROM_DIST.md)). A package gives only what differs,
13
- such as the files it tests, or a jsdom `environment`: by `test`, each option over this one's;
14
- and by `config`, a config of Vite merged into this one, as Vite's `mergeConfig` merges them: its
15
- aliases first, so they win, and its other lists after these, as of `server.fs.allow` or
16
- `test.server.deps.inline`. Its tests are each `*.test.ts` of test/, but the integration suite's
17
- and the browser's.
12
+ every package, or against their build, as the environment of its `platform` says (see
13
+ [fromDist](fromDist.md)). A package gives only what differs, such as the files it tests, or a jsdom
14
+ `environment`: beside the `platform`, each option of its tests over this one's; and by `config`,
15
+ a config of Vite merged into this one, as Vite's `mergeConfig` merges them: its aliases first, so
16
+ they win, and its other lists after these, as of `server.fs.allow` or `test.server.deps.inline`.
17
+ Its tests are each `*.test.ts` of test/, but the integration suite's and the browser's.
18
18
 
19
19
  ```ts
20
- export default packageConfig({ environment: 'jsdom' }, { resolve: { dedupe: ['react'] } })
20
+ import { nodeStorage } from '@wtf/platform-fs-node/storage'
21
+ import { nodePlatform } from '@wtf/platform-node/platform'
22
+
23
+ const platform = nodePlatform({ fetch, storage: nodeStorage() })
24
+ export default packageConfig(
25
+ { platform, environment: 'jsdom' },
26
+ { resolve: { dedupe: ['react'] } }
27
+ )
21
28
  ```
22
29
 
23
30
  ## Parameters
24
31
 
25
32
  | Parameter | Type |
26
33
  | ------ | ------ |
27
- | `test` | `InlineConfig` |
34
+ | `__namedParameters` | [`PackageOptions`](../type-aliases/PackageOptions.md) |
28
35
  | `config` | `UserConfig` |
29
36
 
30
37
  ## Returns
@@ -3,10 +3,10 @@
3
3
  # Function: rootConfig()
4
4
 
5
5
  ```ts
6
- function rootConfig(__namedParameters?): Promise<UserConfig>;
6
+ function rootConfig(__namedParameters): Promise<UserConfig>;
7
7
  ```
8
8
 
9
- Defined in: [packages/project-vitest/src/config.ts:116](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-vitest/src/config.ts#L116)
9
+ Defined in: [packages/project-vitest/src/config.ts:156](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-vitest/src/config.ts#L156)
10
10
 
11
11
  The Vitest config of the root: each package's vitest.config.ts a project, in one process
12
12
  (`pnpm test`), and the `root` project of the repo's guards, test/. One JUnit report in CI, and
@@ -18,6 +18,9 @@ by default: it has its own resolution, so the plugin of the build and each alias
18
18
  once. A guard has [GUARD\_TIMEOUT](../variables/GUARD_TIMEOUT.md), 30 seconds, as a package's test has, and not Vitest's
19
19
  5: `testTimeout` gives another.
20
20
 
21
+ It takes the platform it is of, and the arguments of the process of Vitest's CLI, whose
22
+ `--project` filters the coverage reads, as the config file gives them: `process.argv`.
23
+
21
24
  ## Parameters
22
25
 
23
26
  | Parameter | Type |
@@ -0,0 +1,18 @@
1
+ [Documentation](../../../../README.md) / [@wtf/project-vitest](../../README.md) / [config](../README.md) / PackageOptions
2
+
3
+ # Type Alias: PackageOptions
4
+
5
+ ```ts
6
+ type PackageOptions = NonNullable<ViteUserConfig["test"]> & object;
7
+ ```
8
+
9
+ Defined in: [packages/project-vitest/src/config.ts:93](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-vitest/src/config.ts#L93)
10
+
11
+ What [packageConfig](../functions/packageConfig.md) takes: the platform the config is of, and its tests' options over the
12
+ config's, as the files it tests, or a jsdom `environment`.
13
+
14
+ ## Type Declaration
15
+
16
+ | Name | Type | Description | Defined in |
17
+ | ------ | ------ | ------ | ------ |
18
+ | `platform` | [`VitestPlatform`](VitestPlatform.md) | The platform the config is of: the root's, as [rootConfig](../functions/rootConfig.md) takes it. | [packages/project-vitest/src/config.ts:95](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-vitest/src/config.ts#L95) |
@@ -6,7 +6,7 @@
6
6
  type RootConfigOptions = RootOptions & object;
7
7
  ```
8
8
 
9
- Defined in: [packages/project-vitest/src/config.ts:39](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-vitest/src/config.ts#L39)
9
+ Defined in: [packages/project-vitest/src/config.ts:53](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-vitest/src/config.ts#L53)
10
10
 
11
11
  What [rootConfig](../functions/rootConfig.md) takes: the options of a root config, and the timeout of its guards.
12
12
 
@@ -14,4 +14,4 @@ What [rootConfig](../functions/rootConfig.md) takes: the options of a root confi
14
14
 
15
15
  | Name | Type | Description | Defined in |
16
16
  | ------ | ------ | ------ | ------ |
17
- | `testTimeout?` | `number` | The time a test of the `root` project, the guards in test/, takes before it fails, in milliseconds: [GUARD\_TIMEOUT](../variables/GUARD_TIMEOUT.md) by default. Each package's tests take their own config's, as `packageConfig` gives it. | [packages/project-vitest/src/config.ts:45](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-vitest/src/config.ts#L45) |
17
+ | `testTimeout?` | `number` | The time a test of the `root` project, the guards in test/, takes before it fails, in milliseconds: [GUARD\_TIMEOUT](../variables/GUARD_TIMEOUT.md) by default. Each package's tests take their own config's, as `packageConfig` gives it. | [packages/project-vitest/src/config.ts:59](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-vitest/src/config.ts#L59) |
@@ -6,19 +6,32 @@
6
6
  type RootOptions = object;
7
7
  ```
8
8
 
9
- Defined in: [packages/project-vitest/src/suite.ts:32](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-vitest/src/suite.ts#L32)
9
+ Defined in: [packages/project-vitest/src/suite.ts:43](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-vitest/src/suite.ts#L43)
10
10
 
11
11
  What the root config of a suite, `rootConfig`, `integrationConfig` or `browserRootConfig`, takes.
12
12
 
13
13
  ## Properties
14
14
 
15
+ ### argv
16
+
17
+ ```ts
18
+ readonly argv: readonly string[];
19
+ ```
20
+
21
+ Defined in: [packages/project-vitest/src/suite.ts:50](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-vitest/src/suite.ts#L50)
22
+
23
+ The arguments of the process of Vitest's CLI, which loads the config, as `process.argv`: its
24
+ `--project` filters say which projects the coverage measures from.
25
+
26
+ ***
27
+
15
28
  ### coverage?
16
29
 
17
30
  ```ts
18
31
  readonly optional coverage?: object;
19
32
  ```
20
33
 
21
- Defined in: [packages/project-vitest/src/suite.ts:46](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-vitest/src/suite.ts#L46)
34
+ Defined in: [packages/project-vitest/src/suite.ts:64](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-vitest/src/suite.ts#L64)
22
35
 
23
36
  What `--coverage` measures: by default each source in the `src` of every package of
24
37
  `folders`, so a module no test loads counts, at 0%; a pattern of `include` replaces it. It
@@ -45,7 +58,7 @@ readonly optional include?: readonly string[];
45
58
  readonly optional folders?: readonly string[];
46
59
  ```
47
60
 
48
- Defined in: [packages/project-vitest/src/suite.ts:39](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-vitest/src/suite.ts#L39)
61
+ Defined in: [packages/project-vitest/src/suite.ts:57](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-vitest/src/suite.ts#L57)
49
62
 
50
63
  The folders of the workspace that hold its packages, each package a project by its config
51
64
  file: `['packages']` by default.
@@ -58,20 +71,32 @@ file: `['packages']` by default.
58
71
  readonly optional junit?: string;
59
72
  ```
60
73
 
61
- Defined in: [packages/project-vitest/src/suite.ts:62](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-vitest/src/suite.ts#L62)
74
+ Defined in: [packages/project-vitest/src/suite.ts:80](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-vitest/src/suite.ts#L80)
62
75
 
63
76
  The path of the JUnit report, from the root, of a repo that keeps it apart from the coverage:
64
77
  the suite's own, as `test-results.xml`, in `reportsDirectory` by default.
65
78
 
66
79
  ***
67
80
 
81
+ ### platform
82
+
83
+ ```ts
84
+ readonly platform: VitestPlatform;
85
+ ```
86
+
87
+ Defined in: [packages/project-vitest/src/suite.ts:45](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-vitest/src/suite.ts#L45)
88
+
89
+ The platform the config is of ([VitestPlatform](VitestPlatform.md)).
90
+
91
+ ***
92
+
68
93
  ### projects?
69
94
 
70
95
  ```ts
71
96
  readonly optional projects?: any[];
72
97
  ```
73
98
 
74
- Defined in: [packages/project-vitest/src/suite.ts:34](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-vitest/src/suite.ts#L34)
99
+ Defined in: [packages/project-vitest/src/suite.ts:52](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-vitest/src/suite.ts#L52)
75
100
 
76
101
  Projects of the run besides each package's, added after them.
77
102
 
@@ -83,7 +108,7 @@ Projects of the run besides each package's, added after them.
83
108
  readonly optional reportsDirectory?: string;
84
109
  ```
85
110
 
86
- Defined in: [packages/project-vitest/src/suite.ts:57](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-vitest/src/suite.ts#L57)
111
+ Defined in: [packages/project-vitest/src/suite.ts:75](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-vitest/src/suite.ts#L75)
87
112
 
88
113
  Where the JUnit report and the coverage go: `reports` by default.
89
114
 
@@ -95,7 +120,7 @@ Where the JUnit report and the coverage go: `reports` by default.
95
120
  readonly optional skip?: readonly string[];
96
121
  ```
97
122
 
98
- Defined in: [packages/project-vitest/src/suite.ts:55](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-vitest/src/suite.ts#L55)
123
+ Defined in: [packages/project-vitest/src/suite.ts:73](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-vitest/src/suite.ts#L73)
99
124
 
100
125
  The packages of `folders` the run leaves out, each by its folder from the root, as
101
126
  `packages/site`: no project of it runs, and the coverage measures none of its sources. None by
@@ -0,0 +1,26 @@
1
+ [Documentation](../../../../README.md) / [@wtf/project-vitest](../../README.md) / [config](../README.md) / VitestPlatform
2
+
3
+ # Type Alias: VitestPlatform
4
+
5
+ ```ts
6
+ type VitestPlatform = Pick<Platform, "env"> & object;
7
+ ```
8
+
9
+ Defined in: [packages/project-vitest/src/suite.ts:29](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-vitest/src/suite.ts#L29)
10
+
11
+ The platform a config of Vitest is of, which the config file, its entry point, builds and gives
12
+ it, as `nodePlatform()` of `@wtf/platform-node/platform` makes Node's: its environment, `env`,
13
+ whose `CI` and `TEST_FROM` it reads; the folder Vitest runs in, `dirs.cwd`, whose workspace it
14
+ reads; and the file system and the paths it reads the workspace by, `navigator.storage` and
15
+ `path`, as the readers of `@wtf/project-resolve/workspace` take them. A storage whose handles say
16
+ their real path, by a `realpath()` of their own, as `nodePlatform()` of
17
+ `@wtf/project-resolve/node` gives, lets a config serve a package linked from another folder by
18
+ its real path; of one that says none, as the File System Standard's, the path is the one given.
19
+
20
+ ## Type Declaration
21
+
22
+ | Name | Type | Defined in |
23
+ | ------ | ------ | ------ |
24
+ | `dirs` | `Pick`\<`Dirs`, `"cwd"`\> | [packages/project-vitest/src/suite.ts:32](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-vitest/src/suite.ts#L32) |
25
+ | `navigator` | `WorkspaceOptions`\[`"platform"`\]\[`"navigator"`\] | [packages/project-vitest/src/suite.ts:30](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-vitest/src/suite.ts#L30) |
26
+ | `path` | `WorkspaceOptions`\[`"platform"`\]\[`"path"`\] & `Pick`\<`Path`, `"fromFileUrl"` \| `"extname"`\> | [packages/project-vitest/src/suite.ts:31](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-vitest/src/suite.ts#L31) |
@@ -6,7 +6,7 @@
6
6
  const GUARD_TIMEOUT: 30000 = 30_000;
7
7
  ```
8
8
 
9
- Defined in: [packages/project-vitest/src/config.ts:36](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-vitest/src/config.ts#L36)
9
+ Defined in: [packages/project-vitest/src/config.ts:50](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-vitest/src/config.ts#L50)
10
10
 
11
11
  The time a test of the `root` project, the repo's guards, takes before it fails, by default: 30
12
12
  seconds, as a package's. A guard that reads the whole workspace, each tsconfig and each