@modern-js/module-tools-docs 2.0.2 → 2.2.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 (313) hide show
  1. package/doc_build/api/config/build-config.html +332 -0
  2. package/doc_build/api/config/build-preset.html +43 -0
  3. package/doc_build/api/config/design-system.html +103 -0
  4. package/doc_build/api/config/plugins.html +7 -0
  5. package/doc_build/api/config/testing.html +21 -0
  6. package/doc_build/api/index.html +1 -0
  7. package/doc_build/api/plugin-api/plugin-hooks.html +113 -0
  8. package/doc_build/en/api/config/build-config.html +316 -0
  9. package/doc_build/en/api/config/build-preset.html +43 -0
  10. package/doc_build/en/api/config/design-system.html +117 -0
  11. package/doc_build/en/api/config/plugins.html +7 -0
  12. package/doc_build/en/api/config/testing.html +21 -0
  13. package/doc_build/en/api/index.html +1 -0
  14. package/doc_build/en/api/plugin-api/plugin-hooks.html +113 -0
  15. package/doc_build/en/guide/advance/asset.html +25 -0
  16. package/doc_build/en/guide/advance/build-umd.html +32 -0
  17. package/doc_build/en/guide/advance/copy.html +42 -0
  18. package/doc_build/en/guide/advance/external-dependency.html +31 -0
  19. package/doc_build/en/guide/advance/in-depth-about-build.html +112 -0
  20. package/doc_build/en/guide/advance/in-depth-about-dev-command.html +12 -0
  21. package/doc_build/en/guide/advance/theme-config.html +29 -0
  22. package/doc_build/en/guide/basic/before-getting-started.html +89 -0
  23. package/doc_build/en/guide/basic/command-preview.html +63 -0
  24. package/doc_build/en/guide/basic/modify-output-product.html +98 -0
  25. package/doc_build/en/guide/basic/publish-your-project.html +50 -0
  26. package/doc_build/en/guide/basic/test-your-project.html +31 -0
  27. package/doc_build/en/guide/basic/use-micro-generator.html +29 -0
  28. package/doc_build/en/guide/basic/using-storybook.html +66 -0
  29. package/doc_build/en/guide/best-practices/components.html +111 -0
  30. package/doc_build/en/guide/intro/getting-started.html +36 -0
  31. package/doc_build/en/guide/intro/welcome.html +13 -0
  32. package/doc_build/en/guide/intro/why-module-engineering-solution.html +9 -0
  33. package/doc_build/en/index.html +1 -0
  34. package/doc_build/en/plugins/guide/getting-started.html +15 -0
  35. package/doc_build/en/plugins/guide/plugin-object.html +14 -0
  36. package/doc_build/en/plugins/guide/setup-function.html +30 -0
  37. package/doc_build/en/plugins/official-list/overview.html +3 -0
  38. package/doc_build/guide/advance/asset.html +25 -0
  39. package/doc_build/guide/advance/build-umd.html +32 -0
  40. package/doc_build/guide/advance/copy.html +42 -0
  41. package/doc_build/guide/advance/external-dependency.html +31 -0
  42. package/doc_build/guide/advance/in-depth-about-build.html +112 -0
  43. package/doc_build/guide/advance/in-depth-about-dev-command.html +14 -0
  44. package/doc_build/guide/advance/theme-config.html +28 -0
  45. package/doc_build/guide/basic/before-getting-started.html +89 -0
  46. package/doc_build/guide/basic/command-preview.html +63 -0
  47. package/doc_build/guide/basic/modify-output-product.html +97 -0
  48. package/doc_build/guide/basic/publish-your-project.html +52 -0
  49. package/doc_build/guide/basic/test-your-project.html +32 -0
  50. package/doc_build/guide/basic/use-micro-generator.html +27 -0
  51. package/doc_build/guide/basic/using-storybook.html +67 -0
  52. package/doc_build/guide/best-practices/components.html +111 -0
  53. package/doc_build/guide/intro/getting-started.html +39 -0
  54. package/doc_build/guide/intro/welcome.html +13 -0
  55. package/doc_build/guide/intro/why-module-engineering-solution.html +9 -0
  56. package/doc_build/index.html +1 -0
  57. package/doc_build/plugins/guide/getting-started.html +15 -0
  58. package/doc_build/plugins/guide/plugin-object.html +14 -0
  59. package/doc_build/plugins/guide/setup-function.html +30 -0
  60. package/doc_build/plugins/official-list/overview.html +3 -0
  61. package/doc_build/static/css/main.edaad072.css +1 -0
  62. package/doc_build/static/js/1607.70af642a.js +2 -0
  63. package/doc_build/static/js/1607.70af642a.js.LICENSE.txt +23 -0
  64. package/doc_build/static/js/async/3799.e31e8293.js +1 -0
  65. package/doc_build/static/js/async/8652.6fbf1cb7.js +1 -0
  66. package/doc_build/static/js/async/en_api_config_build-config.367a5701.js +1 -0
  67. package/doc_build/static/js/async/en_api_config_build-preset.0d78b268.js +1 -0
  68. package/doc_build/static/js/async/en_api_config_design-system.b28d6723.js +1 -0
  69. package/doc_build/static/js/async/en_api_config_plugins.fc95fb77.js +1 -0
  70. package/doc_build/static/js/async/en_api_config_testing.8bc7f316.js +1 -0
  71. package/doc_build/static/js/async/en_api_index.669f0a56.js +1 -0
  72. package/doc_build/static/js/async/en_api_plugin-api_plugin-hooks.60d0260c.js +1 -0
  73. package/doc_build/static/js/async/en_guide_advance_asset.5ff1d623.js +1 -0
  74. package/doc_build/static/js/async/en_guide_advance_build-umd.c254ed46.js +1 -0
  75. package/doc_build/static/js/async/en_guide_advance_copy.45c0a51d.js +1 -0
  76. package/doc_build/static/js/async/en_guide_advance_external-dependency.a52d3247.js +1 -0
  77. package/doc_build/static/js/async/en_guide_advance_in-depth-about-build.51bf3569.js +1 -0
  78. package/doc_build/static/js/async/en_guide_advance_in-depth-about-dev-command.aec0b4e1.js +1 -0
  79. package/doc_build/static/js/async/en_guide_advance_theme-config.db0ad9fc.js +1 -0
  80. package/doc_build/static/js/async/en_guide_basic_before-getting-started.a22fc49a.js +1 -0
  81. package/doc_build/static/js/async/en_guide_basic_command-preview.1707ed29.js +1 -0
  82. package/doc_build/static/js/async/en_guide_basic_modify-output-product.ad453d13.js +1 -0
  83. package/doc_build/static/js/async/en_guide_basic_publish-your-project.08c5112f.js +1 -0
  84. package/doc_build/static/js/async/en_guide_basic_test-your-project.f5f6b204.js +1 -0
  85. package/doc_build/static/js/async/en_guide_basic_use-micro-generator.56325139.js +1 -0
  86. package/doc_build/static/js/async/en_guide_basic_using-storybook.9d721554.js +1 -0
  87. package/doc_build/static/js/async/en_guide_best-practices_components.45155af9.js +1 -0
  88. package/doc_build/static/js/async/en_guide_intro_getting-started.f8682be3.js +1 -0
  89. package/doc_build/static/js/async/en_guide_intro_welcome.9cc45924.js +1 -0
  90. package/doc_build/static/js/async/en_guide_intro_why-module-engineering-solution.7f2dae5c.js +1 -0
  91. package/doc_build/static/js/async/en_index.7bd869c4.js +1 -0
  92. package/doc_build/static/js/async/en_plugins_guide_getting-started.b850249c.js +1 -0
  93. package/doc_build/static/js/async/en_plugins_guide_plugin-object.bf6c6221.js +1 -0
  94. package/doc_build/static/js/async/en_plugins_guide_setup-function.80a2bd97.js +1 -0
  95. package/doc_build/static/js/async/en_plugins_official-list_overview.84e5cea0.js +1 -0
  96. package/doc_build/static/js/async/zh_api_config_build-config.048fd5ec.js +1 -0
  97. package/doc_build/static/js/async/zh_api_config_build-preset.7c13584d.js +1 -0
  98. package/doc_build/static/js/async/zh_api_config_design-system.1eecd474.js +1 -0
  99. package/doc_build/static/js/async/zh_api_config_plugins.c22dc4be.js +1 -0
  100. package/doc_build/static/js/async/zh_api_config_testing.a9888eed.js +1 -0
  101. package/doc_build/static/js/async/zh_api_index.22957707.js +1 -0
  102. package/doc_build/static/js/async/zh_api_plugin-api_plugin-hooks.a4d81bf6.js +1 -0
  103. package/doc_build/static/js/async/zh_guide_advance_asset.5b936003.js +1 -0
  104. package/doc_build/static/js/async/zh_guide_advance_build-umd.b6d541ff.js +1 -0
  105. package/doc_build/static/js/async/zh_guide_advance_copy.21a1aea4.js +1 -0
  106. package/doc_build/static/js/async/zh_guide_advance_external-dependency.c7cf5d4b.js +1 -0
  107. package/doc_build/static/js/async/zh_guide_advance_in-depth-about-build.64e795f3.js +1 -0
  108. package/doc_build/static/js/async/zh_guide_advance_in-depth-about-dev-command.168ce7dd.js +1 -0
  109. package/doc_build/static/js/async/zh_guide_advance_theme-config.b9570109.js +1 -0
  110. package/doc_build/static/js/async/zh_guide_basic_before-getting-started.6b06b54a.js +1 -0
  111. package/doc_build/static/js/async/zh_guide_basic_command-preview.1199124a.js +1 -0
  112. package/doc_build/static/js/async/zh_guide_basic_modify-output-product.8ccbc8d1.js +1 -0
  113. package/doc_build/static/js/async/zh_guide_basic_publish-your-project.bf11b1c4.js +1 -0
  114. package/doc_build/static/js/async/zh_guide_basic_test-your-project.ae52c47a.js +1 -0
  115. package/doc_build/static/js/async/zh_guide_basic_use-micro-generator.a091d57d.js +1 -0
  116. package/doc_build/static/js/async/zh_guide_basic_using-storybook.27829e44.js +1 -0
  117. package/doc_build/static/js/async/zh_guide_best-practices_components.7454d916.js +1 -0
  118. package/doc_build/static/js/async/zh_guide_intro_getting-started.a4c00d9a.js +1 -0
  119. package/doc_build/static/js/async/zh_guide_intro_welcome.71c3fe16.js +1 -0
  120. package/doc_build/static/js/async/zh_guide_intro_why-module-engineering-solution.6f8b5ff6.js +1 -0
  121. package/doc_build/static/js/async/zh_index.c19f9dcf.js +1 -0
  122. package/doc_build/static/js/async/zh_plugins_guide_getting-started.099dfaea.js +1 -0
  123. package/doc_build/static/js/async/zh_plugins_guide_plugin-object.963289d5.js +1 -0
  124. package/doc_build/static/js/async/zh_plugins_guide_setup-function.67d07b91.js +1 -0
  125. package/doc_build/static/js/async/zh_plugins_official-list_overview.a7635714.js +1 -0
  126. package/doc_build/static/js/lib-lodash.c5845536.js +1 -0
  127. package/doc_build/static/js/lib-polyfill.b3038509.js +1 -0
  128. package/doc_build/static/js/lib-react.d41ace5e.js +2 -0
  129. package/doc_build/static/js/lib-react.d41ace5e.js.LICENSE.txt +29 -0
  130. package/doc_build/static/js/main.2d3257a4.js +1 -0
  131. package/doc_build/static/search_index.json +1 -0
  132. package/docs/en/api/config/build-config.md +15 -5
  133. package/docs/en/api/config/build-preset.md +3 -2
  134. package/docs/en/api/config/design-system.md +623 -615
  135. package/docs/en/api/config/plugins.md +2 -2
  136. package/docs/en/api/config/testing.md +2 -1
  137. package/docs/en/guide/advance/asset.mdx +0 -4
  138. package/docs/en/guide/advance/build-umd.mdx +3 -3
  139. package/docs/en/guide/advance/in-depth-about-build.md +14 -13
  140. package/docs/en/guide/advance/in-depth-about-dev-command.md +2 -1
  141. package/docs/en/guide/basic/before-getting-started.md +16 -9
  142. package/docs/en/guide/basic/command-preview.md +2 -2
  143. package/docs/en/guide/basic/modify-output-product.md +65 -69
  144. package/docs/en/guide/basic/test-your-project.mdx +1 -3
  145. package/docs/en/guide/basic/use-micro-generator.md +4 -0
  146. package/docs/en/guide/basic/using-storybook.mdx +1 -13
  147. package/docs/en/plugins/guide/getting-started.mdx +2 -2
  148. package/docs/en/plugins/guide/plugin-object.mdx +5 -5
  149. package/docs/zh/api/config/build-config.md +18 -6
  150. package/docs/zh/api/config/build-preset.md +3 -2
  151. package/docs/zh/api/config/design-system.md +2 -2
  152. package/docs/zh/api/config/plugins.md +2 -2
  153. package/docs/zh/api/config/testing.md +3 -2
  154. package/docs/zh/guide/advance/asset.mdx +0 -5
  155. package/docs/zh/guide/advance/build-umd.mdx +3 -3
  156. package/docs/zh/guide/advance/in-depth-about-build.md +14 -13
  157. package/docs/zh/guide/advance/in-depth-about-dev-command.md +2 -1
  158. package/docs/zh/guide/basic/before-getting-started.md +15 -8
  159. package/docs/zh/guide/basic/command-preview.md +2 -2
  160. package/docs/zh/guide/basic/modify-output-product.md +17 -19
  161. package/docs/zh/guide/basic/test-your-project.mdx +1 -3
  162. package/docs/zh/guide/basic/use-micro-generator.md +5 -1
  163. package/docs/zh/guide/basic/using-storybook.mdx +9 -19
  164. package/docs/zh/guide/intro/getting-started.md +1 -1
  165. package/docs/zh/plugins/guide/getting-started.mdx +2 -2
  166. package/docs/zh/plugins/guide/plugin-object.mdx +5 -5
  167. package/modern.config.ts +11 -5
  168. package/package.json +3 -3
  169. package/LICENSE +0 -144
  170. package/doc_build/html/main/index.html +0 -16
  171. package/doc_build/route.json +0 -10
  172. package/doc_build/static/css/main.css +0 -3370
  173. package/doc_build/static/css/main.css.map +0 -1
  174. package/doc_build/static/css/vendors-node_modules_pnpm_remix-run_router_1_2_0_node_modules_remix-run_router_dist_router_js-9d5e9c.css +0 -85
  175. package/doc_build/static/css/vendors-node_modules_pnpm_remix-run_router_1_2_0_node_modules_remix-run_router_dist_router_js-9d5e9c.css.map +0 -1
  176. package/doc_build/static/js/async/api_.js +0 -56
  177. package/doc_build/static/js/async/api_.js.map +0 -1
  178. package/doc_build/static/js/async/api_config_build-config.js +0 -11309
  179. package/doc_build/static/js/async/api_config_build-config.js.map +0 -1
  180. package/doc_build/static/js/async/api_config_build-preset.js +0 -7849
  181. package/doc_build/static/js/async/api_config_build-preset.js.map +0 -1
  182. package/doc_build/static/js/async/api_config_design-system.js +0 -48708
  183. package/doc_build/static/js/async/api_config_design-system.js.map +0 -1
  184. package/doc_build/static/js/async/api_config_plugins.js +0 -1492
  185. package/doc_build/static/js/async/api_config_plugins.js.map +0 -1
  186. package/doc_build/static/js/async/api_config_testing.js +0 -2130
  187. package/doc_build/static/js/async/api_config_testing.js.map +0 -1
  188. package/doc_build/static/js/async/api_plugin-api_plugin-hooks.js +0 -14394
  189. package/doc_build/static/js/async/api_plugin-api_plugin-hooks.js.map +0 -1
  190. package/doc_build/static/js/async/en_.js +0 -85
  191. package/doc_build/static/js/async/en_.js.map +0 -1
  192. package/doc_build/static/js/async/en_api_.js +0 -55
  193. package/doc_build/static/js/async/en_api_.js.map +0 -1
  194. package/doc_build/static/js/async/en_api_config_build-config.js +0 -8363
  195. package/doc_build/static/js/async/en_api_config_build-config.js.map +0 -1
  196. package/doc_build/static/js/async/en_api_config_build-preset.js +0 -7845
  197. package/doc_build/static/js/async/en_api_config_build-preset.js.map +0 -1
  198. package/doc_build/static/js/async/en_api_config_design-system.js +0 -16345
  199. package/doc_build/static/js/async/en_api_config_design-system.js.map +0 -1
  200. package/doc_build/static/js/async/en_api_config_plugins.js +0 -1492
  201. package/doc_build/static/js/async/en_api_config_plugins.js.map +0 -1
  202. package/doc_build/static/js/async/en_api_config_testing.js +0 -2137
  203. package/doc_build/static/js/async/en_api_config_testing.js.map +0 -1
  204. package/doc_build/static/js/async/en_api_plugin-api_plugin-hooks.js +0 -14362
  205. package/doc_build/static/js/async/en_api_plugin-api_plugin-hooks.js.map +0 -1
  206. package/doc_build/static/js/async/en_guide_advance_asset.js +0 -3997
  207. package/doc_build/static/js/async/en_guide_advance_asset.js.map +0 -1
  208. package/doc_build/static/js/async/en_guide_advance_build-umd.js +0 -9861
  209. package/doc_build/static/js/async/en_guide_advance_build-umd.js.map +0 -1
  210. package/doc_build/static/js/async/en_guide_advance_copy.js +0 -6539
  211. package/doc_build/static/js/async/en_guide_advance_copy.js.map +0 -1
  212. package/doc_build/static/js/async/en_guide_advance_external-dependency.js +0 -3810
  213. package/doc_build/static/js/async/en_guide_advance_external-dependency.js.map +0 -1
  214. package/doc_build/static/js/async/en_guide_advance_in-depth-about-build.js +0 -5046
  215. package/doc_build/static/js/async/en_guide_advance_in-depth-about-build.js.map +0 -1
  216. package/doc_build/static/js/async/en_guide_advance_in-depth-about-dev-command.js +0 -150
  217. package/doc_build/static/js/async/en_guide_advance_in-depth-about-dev-command.js.map +0 -1
  218. package/doc_build/static/js/async/en_guide_advance_theme-config.js +0 -2484
  219. package/doc_build/static/js/async/en_guide_advance_theme-config.js.map +0 -1
  220. package/doc_build/static/js/async/en_guide_basic_before-getting-started.js +0 -3671
  221. package/doc_build/static/js/async/en_guide_basic_before-getting-started.js.map +0 -1
  222. package/doc_build/static/js/async/en_guide_basic_command-preview.js +0 -3961
  223. package/doc_build/static/js/async/en_guide_basic_command-preview.js.map +0 -1
  224. package/doc_build/static/js/async/en_guide_basic_modify-output-product.js +0 -2970
  225. package/doc_build/static/js/async/en_guide_basic_modify-output-product.js.map +0 -1
  226. package/doc_build/static/js/async/en_guide_basic_publish-your-project.js +0 -2182
  227. package/doc_build/static/js/async/en_guide_basic_publish-your-project.js.map +0 -1
  228. package/doc_build/static/js/async/en_guide_basic_test-your-project.js +0 -3892
  229. package/doc_build/static/js/async/en_guide_basic_test-your-project.js.map +0 -1
  230. package/doc_build/static/js/async/en_guide_basic_use-micro-generator.js +0 -168
  231. package/doc_build/static/js/async/en_guide_basic_use-micro-generator.js.map +0 -1
  232. package/doc_build/static/js/async/en_guide_basic_using-storybook.js +0 -4762
  233. package/doc_build/static/js/async/en_guide_basic_using-storybook.js.map +0 -1
  234. package/doc_build/static/js/async/en_guide_best-practices_components.js +0 -21388
  235. package/doc_build/static/js/async/en_guide_best-practices_components.js.map +0 -1
  236. package/doc_build/static/js/async/en_guide_intro_getting-started.js +0 -1906
  237. package/doc_build/static/js/async/en_guide_intro_getting-started.js.map +0 -1
  238. package/doc_build/static/js/async/en_guide_intro_welcome.js +0 -148
  239. package/doc_build/static/js/async/en_guide_intro_welcome.js.map +0 -1
  240. package/doc_build/static/js/async/en_guide_intro_why-module-engineering-solution.js +0 -92
  241. package/doc_build/static/js/async/en_guide_intro_why-module-engineering-solution.js.map +0 -1
  242. package/doc_build/static/js/async/en_plugins_guide_getting-started.js +0 -2560
  243. package/doc_build/static/js/async/en_plugins_guide_getting-started.js.map +0 -1
  244. package/doc_build/static/js/async/en_plugins_guide_plugin-object.js +0 -4177
  245. package/doc_build/static/js/async/en_plugins_guide_plugin-object.js.map +0 -1
  246. package/doc_build/static/js/async/en_plugins_guide_setup-function.js +0 -3819
  247. package/doc_build/static/js/async/en_plugins_guide_setup-function.js.map +0 -1
  248. package/doc_build/static/js/async/en_plugins_official-list_overview.js +0 -70
  249. package/doc_build/static/js/async/en_plugins_official-list_overview.js.map +0 -1
  250. package/doc_build/static/js/async/guide_advance_asset.js +0 -3997
  251. package/doc_build/static/js/async/guide_advance_asset.js.map +0 -1
  252. package/doc_build/static/js/async/guide_advance_build-umd.js +0 -9863
  253. package/doc_build/static/js/async/guide_advance_build-umd.js.map +0 -1
  254. package/doc_build/static/js/async/guide_advance_copy.js +0 -6539
  255. package/doc_build/static/js/async/guide_advance_copy.js.map +0 -1
  256. package/doc_build/static/js/async/guide_advance_external-dependency.js +0 -3812
  257. package/doc_build/static/js/async/guide_advance_external-dependency.js.map +0 -1
  258. package/doc_build/static/js/async/guide_advance_in-depth-about-build.js +0 -5046
  259. package/doc_build/static/js/async/guide_advance_in-depth-about-build.js.map +0 -1
  260. package/doc_build/static/js/async/guide_advance_in-depth-about-dev-command.js +0 -152
  261. package/doc_build/static/js/async/guide_advance_in-depth-about-dev-command.js.map +0 -1
  262. package/doc_build/static/js/async/guide_advance_theme-config.js +0 -2475
  263. package/doc_build/static/js/async/guide_advance_theme-config.js.map +0 -1
  264. package/doc_build/static/js/async/guide_basic_before-getting-started.js +0 -3662
  265. package/doc_build/static/js/async/guide_basic_before-getting-started.js.map +0 -1
  266. package/doc_build/static/js/async/guide_basic_command-preview.js +0 -3793
  267. package/doc_build/static/js/async/guide_basic_command-preview.js.map +0 -1
  268. package/doc_build/static/js/async/guide_basic_modify-output-product.js +0 -2949
  269. package/doc_build/static/js/async/guide_basic_modify-output-product.js.map +0 -1
  270. package/doc_build/static/js/async/guide_basic_publish-your-project.js +0 -2243
  271. package/doc_build/static/js/async/guide_basic_publish-your-project.js.map +0 -1
  272. package/doc_build/static/js/async/guide_basic_test-your-project.js +0 -3892
  273. package/doc_build/static/js/async/guide_basic_test-your-project.js.map +0 -1
  274. package/doc_build/static/js/async/guide_basic_use-micro-generator.js +0 -172
  275. package/doc_build/static/js/async/guide_basic_use-micro-generator.js.map +0 -1
  276. package/doc_build/static/js/async/guide_basic_using-storybook.js +0 -4762
  277. package/doc_build/static/js/async/guide_basic_using-storybook.js.map +0 -1
  278. package/doc_build/static/js/async/guide_best-practices_components.js +0 -21088
  279. package/doc_build/static/js/async/guide_best-practices_components.js.map +0 -1
  280. package/doc_build/static/js/async/guide_intro_getting-started.js +0 -1782
  281. package/doc_build/static/js/async/guide_intro_getting-started.js.map +0 -1
  282. package/doc_build/static/js/async/guide_intro_welcome.js +0 -148
  283. package/doc_build/static/js/async/guide_intro_welcome.js.map +0 -1
  284. package/doc_build/static/js/async/guide_intro_why-module-engineering-solution.js +0 -92
  285. package/doc_build/static/js/async/guide_intro_why-module-engineering-solution.js.map +0 -1
  286. package/doc_build/static/js/async/index.js +0 -85
  287. package/doc_build/static/js/async/index.js.map +0 -1
  288. package/doc_build/static/js/async/packages_cli_doc-core_src_theme-default_components_Search_logic_search_ts.js +0 -447
  289. package/doc_build/static/js/async/packages_cli_doc-core_src_theme-default_components_Search_logic_search_ts.js.map +0 -1
  290. package/doc_build/static/js/async/plugins_guide_getting-started.js +0 -2608
  291. package/doc_build/static/js/async/plugins_guide_getting-started.js.map +0 -1
  292. package/doc_build/static/js/async/plugins_guide_plugin-object.js +0 -4173
  293. package/doc_build/static/js/async/plugins_guide_plugin-object.js.map +0 -1
  294. package/doc_build/static/js/async/plugins_guide_setup-function.js +0 -3819
  295. package/doc_build/static/js/async/plugins_guide_setup-function.js.map +0 -1
  296. package/doc_build/static/js/async/plugins_official-list_overview.js +0 -70
  297. package/doc_build/static/js/async/plugins_official-list_overview.js.map +0 -1
  298. package/doc_build/static/js/async/vendors-node_modules_pnpm_code-hike_mdx_0_7_4_react_18_2_0_node_modules_code-hike_mdx_dist_co-06dd41.js +0 -6656
  299. package/doc_build/static/js/async/vendors-node_modules_pnpm_code-hike_mdx_0_7_4_react_18_2_0_node_modules_code-hike_mdx_dist_co-06dd41.js.map +0 -1
  300. package/doc_build/static/js/async/vendors-node_modules_pnpm_flexsearch_0_6_32_node_modules_flexsearch_dist_flexsearch_min_js.js +0 -54
  301. package/doc_build/static/js/async/vendors-node_modules_pnpm_flexsearch_0_6_32_node_modules_flexsearch_dist_flexsearch_min_js.js.map +0 -1
  302. package/doc_build/static/js/builder-runtime.js +0 -1375
  303. package/doc_build/static/js/builder-runtime.js.map +0 -1
  304. package/doc_build/static/js/lib-lodash.js +0 -4907
  305. package/doc_build/static/js/lib-lodash.js.map +0 -1
  306. package/doc_build/static/js/lib-polyfill.js +0 -24769
  307. package/doc_build/static/js/lib-polyfill.js.map +0 -1
  308. package/doc_build/static/js/lib-react.js +0 -39510
  309. package/doc_build/static/js/lib-react.js.map +0 -1
  310. package/doc_build/static/js/main.js +0 -9237
  311. package/doc_build/static/js/main.js.map +0 -1
  312. package/doc_build/static/js/vendors-node_modules_pnpm_remix-run_router_1_2_0_node_modules_remix-run_router_dist_router_js-9d5e9c.js +0 -8532
  313. package/doc_build/static/js/vendors-node_modules_pnpm_remix-run_router_1_2_0_node_modules_remix-run_router_dist_router_js-9d5e9c.js.map +0 -1
@@ -1,3892 +0,0 @@
1
- "use strict";
2
- (self["webpackChunk_modern_js_module_tools_docs"] = self["webpackChunk_modern_js_module_tools_docs"] || []).push([["en_guide_basic_test-your-project"],{
3
-
4
- /***/ "./docs/en/guide/basic/test-your-project.mdx":
5
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6
-
7
- __webpack_require__.r(__webpack_exports__);
8
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9
- /* harmony export */ "CH": function() { return /* binding */ CH; },
10
- /* harmony export */ "chCodeConfig": function() { return /* binding */ chCodeConfig; },
11
- /* harmony export */ "content": function() { return /* binding */ content; },
12
- /* harmony export */ "frontmatter": function() { return /* binding */ frontmatter; },
13
- /* harmony export */ "title": function() { return /* binding */ title; },
14
- /* harmony export */ "toc": function() { return /* binding */ toc; }
15
- /* harmony export */ });
16
- /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js");
17
- /* harmony import */ var _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../node_modules/.pnpm/@code-hike+mdx@0.7.4_react@18.2.0/node_modules/@code-hike/mdx/dist/components.esm.mjs");
18
- /*@jsxRuntime automatic @jsxImportSource react*/
19
- /*链接待补充*/
20
-
21
-
22
- var CH = {
23
- annotations: _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__.annotations,
24
- Code: _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__.Code,
25
- Spotlight: _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__.Spotlight,
26
- CodeSlot: _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__.CodeSlot
27
- };
28
- var chCodeConfig = {
29
- "staticMediaQuery": "not screen, (max-width: 768px)",
30
- "theme": {
31
- "name": "nord",
32
- "type": "dark",
33
- "semanticHighlighting": true,
34
- "colors": {
35
- "focusBorder": "#3b4252",
36
- "foreground": "#d8dee9",
37
- "activityBar.background": "#2e3440",
38
- "activityBar.dropBackground": "#3b4252",
39
- "activityBar.foreground": "#d8dee9",
40
- "activityBar.activeBorder": "#88c0d0",
41
- "activityBar.activeBackground": "#3b4252",
42
- "activityBarBadge.background": "#88c0d0",
43
- "activityBarBadge.foreground": "#2e3440",
44
- "badge.foreground": "#2e3440",
45
- "badge.background": "#88c0d0",
46
- "button.background": "#88c0d0ee",
47
- "button.foreground": "#2e3440",
48
- "button.hoverBackground": "#88c0d0",
49
- "button.secondaryBackground": "#434c5e",
50
- "button.secondaryForeground": "#d8dee9",
51
- "button.secondaryHoverBackground": "#4c566a",
52
- "charts.red": "#bf616a",
53
- "charts.blue": "#81a1c1",
54
- "charts.yellow": "#ebcb8b",
55
- "charts.orange": "#d08770",
56
- "charts.green": "#a3be8c",
57
- "charts.purple": "#b48ead",
58
- "charts.foreground": "#d8dee9",
59
- "charts.lines": "#88c0d0",
60
- "debugConsole.infoForeground": "#88c0d0",
61
- "debugConsole.warningForeground": "#ebcb8b",
62
- "debugConsole.errorForeground": "#bf616a",
63
- "debugConsole.sourceForeground": "#616e88",
64
- "debugConsoleInputIcon.foreground": "#81a1c1",
65
- "debugExceptionWidget.background": "#4c566a",
66
- "debugExceptionWidget.border": "#2e3440",
67
- "debugToolBar.background": "#3b4252",
68
- "descriptionForeground": "#d8dee9e6",
69
- "diffEditor.insertedTextBackground": "#81a1c133",
70
- "diffEditor.removedTextBackground": "#bf616a4d",
71
- "dropdown.background": "#3b4252",
72
- "dropdown.border": "#3b4252",
73
- "dropdown.foreground": "#d8dee9",
74
- "editorActiveLineNumber.foreground": "#d8dee9cc",
75
- "editorCursor.foreground": "#d8dee9",
76
- "editorHint.border": "#ebcb8b00",
77
- "editorHint.foreground": "#ebcb8b",
78
- "editorIndentGuide.background": "#434c5eb3",
79
- "editorIndentGuide.activeBackground": "#4c566a",
80
- "editorInlayHint.background": "#434c5e",
81
- "editorInlayHint.foreground": "#d8dee9",
82
- "editorLineNumber.foreground": "#4c566a",
83
- "editorLineNumber.activeForeground": "#d8dee9",
84
- "editorWhitespace.foreground": "#4c566ab3",
85
- "editorWidget.background": "#2e3440",
86
- "editorWidget.border": "#3b4252",
87
- "editor.background": "#2e3440",
88
- "editor.foreground": "#d8dee9",
89
- "editor.hoverHighlightBackground": "#3b4252",
90
- "editor.findMatchBackground": "#88c0d066",
91
- "editor.findMatchHighlightBackground": "#88c0d033",
92
- "editor.findRangeHighlightBackground": "#88c0d033",
93
- "editor.lineHighlightBackground": "#3b4252",
94
- "editor.lineHighlightBorder": "#3b4252",
95
- "editor.inactiveSelectionBackground": "#434c5ecc",
96
- "editor.inlineValuesBackground": "#4c566a",
97
- "editor.inlineValuesForeground": "#eceff4",
98
- "editor.selectionBackground": "#434c5ecc",
99
- "editor.selectionHighlightBackground": "#434c5ecc",
100
- "editor.rangeHighlightBackground": "#434c5e52",
101
- "editor.wordHighlightBackground": "#81a1c166",
102
- "editor.wordHighlightStrongBackground": "#81a1c199",
103
- "editor.stackFrameHighlightBackground": "#5e81ac",
104
- "editor.focusedStackFrameHighlightBackground": "#5e81ac",
105
- "editorError.foreground": "#bf616a",
106
- "editorError.border": "#bf616a00",
107
- "editorWarning.foreground": "#ebcb8b",
108
- "editorWarning.border": "#ebcb8b00",
109
- "editorBracketMatch.background": "#2e344000",
110
- "editorBracketMatch.border": "#88c0d0",
111
- "editorBracketHighlight.foreground1": "#8fbcbb",
112
- "editorBracketHighlight.foreground2": "#88c0d0",
113
- "editorBracketHighlight.foreground3": "#81a1c1",
114
- "editorBracketHighlight.foreground4": "#5e81ac",
115
- "editorBracketHighlight.foreground5": "#8fbcbb",
116
- "editorBracketHighlight.foreground6": "#88c0d0",
117
- "editorBracketHighlight.unexpectedBracket.foreground": "#bf616a",
118
- "editorCodeLens.foreground": "#4c566a",
119
- "editorGroup.background": "#2e3440",
120
- "editorGroup.border": "#3b425201",
121
- "editorGroup.dropBackground": "#3b425299",
122
- "editorGroupHeader.border": "#3b425200",
123
- "editorGroupHeader.noTabsBackground": "#2e3440",
124
- "editorGroupHeader.tabsBackground": "#2e3440",
125
- "editorGroupHeader.tabsBorder": "#3b425200",
126
- "editorGutter.background": "#2e3440",
127
- "editorGutter.modifiedBackground": "#ebcb8b",
128
- "editorGutter.addedBackground": "#a3be8c",
129
- "editorGutter.deletedBackground": "#bf616a",
130
- "editorHoverWidget.background": "#3b4252",
131
- "editorHoverWidget.border": "#3b4252",
132
- "editorLink.activeForeground": "#88c0d0",
133
- "editorMarkerNavigation.background": "#5e81acc0",
134
- "editorMarkerNavigationError.background": "#bf616ac0",
135
- "editorMarkerNavigationWarning.background": "#ebcb8bc0",
136
- "editorOverviewRuler.border": "#3b4252",
137
- "editorOverviewRuler.currentContentForeground": "#3b4252",
138
- "editorOverviewRuler.incomingContentForeground": "#3b4252",
139
- "editorOverviewRuler.findMatchForeground": "#88c0d066",
140
- "editorOverviewRuler.rangeHighlightForeground": "#88c0d066",
141
- "editorOverviewRuler.selectionHighlightForeground": "#88c0d066",
142
- "editorOverviewRuler.wordHighlightForeground": "#88c0d066",
143
- "editorOverviewRuler.wordHighlightStrongForeground": "#88c0d066",
144
- "editorOverviewRuler.modifiedForeground": "#ebcb8b",
145
- "editorOverviewRuler.addedForeground": "#a3be8c",
146
- "editorOverviewRuler.deletedForeground": "#bf616a",
147
- "editorOverviewRuler.errorForeground": "#bf616a",
148
- "editorOverviewRuler.warningForeground": "#ebcb8b",
149
- "editorOverviewRuler.infoForeground": "#81a1c1",
150
- "editorRuler.foreground": "#434c5e",
151
- "editorSuggestWidget.background": "#2e3440",
152
- "editorSuggestWidget.border": "#3b4252",
153
- "editorSuggestWidget.foreground": "#d8dee9",
154
- "editorSuggestWidget.focusHighlightForeground": "#88c0d0",
155
- "editorSuggestWidget.highlightForeground": "#88c0d0",
156
- "editorSuggestWidget.selectedBackground": "#434c5e",
157
- "editorSuggestWidget.selectedForeground": "#d8dee9",
158
- "extensionButton.prominentForeground": "#d8dee9",
159
- "extensionButton.prominentBackground": "#434c5e",
160
- "extensionButton.prominentHoverBackground": "#4c566a",
161
- "errorForeground": "#bf616a",
162
- "gitDecoration.modifiedResourceForeground": "#ebcb8b",
163
- "gitDecoration.deletedResourceForeground": "#bf616a",
164
- "gitDecoration.untrackedResourceForeground": "#a3be8c",
165
- "gitDecoration.ignoredResourceForeground": "#d8dee966",
166
- "gitDecoration.conflictingResourceForeground": "#5e81ac",
167
- "gitDecoration.submoduleResourceForeground": "#8fbcbb",
168
- "gitDecoration.stageDeletedResourceForeground": "#bf616a",
169
- "gitDecoration.stageModifiedResourceForeground": "#ebcb8b",
170
- "input.background": "#3b4252",
171
- "input.foreground": "#d8dee9",
172
- "input.placeholderForeground": "#d8dee999",
173
- "input.border": "#3b4252",
174
- "inputOption.activeBackground": "#5e81ac",
175
- "inputOption.activeBorder": "#5e81ac",
176
- "inputOption.activeForeground": "#eceff4",
177
- "inputValidation.errorBackground": "#bf616a",
178
- "inputValidation.errorBorder": "#bf616a",
179
- "inputValidation.infoBackground": "#81a1c1",
180
- "inputValidation.infoBorder": "#81a1c1",
181
- "inputValidation.warningBackground": "#d08770",
182
- "inputValidation.warningBorder": "#d08770",
183
- "keybindingLabel.background": "#4c566a",
184
- "keybindingLabel.border": "#4c566a",
185
- "keybindingLabel.bottomBorder": "#4c566a",
186
- "keybindingLabel.foreground": "#d8dee9",
187
- "list.activeSelectionBackground": "#88c0d0",
188
- "list.activeSelectionForeground": "#2e3440",
189
- "list.inactiveSelectionBackground": "#434c5e",
190
- "list.inactiveSelectionForeground": "#d8dee9",
191
- "list.inactiveFocusBackground": "#434c5ecc",
192
- "list.hoverForeground": "#eceff4",
193
- "list.focusForeground": "#d8dee9",
194
- "list.focusBackground": "#88c0d099",
195
- "list.focusHighlightForeground": "#eceff4",
196
- "list.hoverBackground": "#3b4252",
197
- "list.dropBackground": "#88c0d099",
198
- "list.highlightForeground": "#88c0d0",
199
- "list.errorForeground": "#bf616a",
200
- "list.warningForeground": "#ebcb8b",
201
- "merge.currentHeaderBackground": "#81a1c166",
202
- "merge.currentContentBackground": "#81a1c14d",
203
- "merge.incomingHeaderBackground": "#8fbcbb66",
204
- "merge.incomingContentBackground": "#8fbcbb4d",
205
- "merge.border": "#3b425200",
206
- "minimap.background": "#2e3440",
207
- "minimap.errorHighlight": "#bf616acc",
208
- "minimap.findMatchHighlight": "#88c0d0",
209
- "minimap.selectionHighlight": "#88c0d0cc",
210
- "minimap.warningHighlight": "#ebcb8bcc",
211
- "minimapGutter.addedBackground": "#a3be8c",
212
- "minimapGutter.deletedBackground": "#bf616a",
213
- "minimapGutter.modifiedBackground": "#ebcb8b",
214
- "minimapSlider.activeBackground": "#434c5eaa",
215
- "minimapSlider.background": "#434c5e99",
216
- "minimapSlider.hoverBackground": "#434c5eaa",
217
- "notification.background": "#3b4252",
218
- "notification.buttonBackground": "#434c5e",
219
- "notification.buttonForeground": "#d8dee9",
220
- "notification.buttonHoverBackground": "#4c566a",
221
- "notification.errorBackground": "#bf616a",
222
- "notification.errorForeground": "#2e3440",
223
- "notification.foreground": "#d8dee9",
224
- "notification.infoBackground": "#88c0d0",
225
- "notification.infoForeground": "#2e3440",
226
- "notification.warningBackground": "#ebcb8b",
227
- "notification.warningForeground": "#2e3440",
228
- "notificationCenter.border": "#3b425200",
229
- "notificationCenterHeader.background": "#2e3440",
230
- "notificationCenterHeader.foreground": "#88c0d0",
231
- "notificationLink.foreground": "#88c0d0",
232
- "notifications.background": "#3b4252",
233
- "notifications.border": "#2e3440",
234
- "notifications.foreground": "#d8dee9",
235
- "notificationToast.border": "#3b425200",
236
- "panel.background": "#2e3440",
237
- "panel.border": "#3b4252",
238
- "panelTitle.activeBorder": "#88c0d000",
239
- "panelTitle.activeForeground": "#88c0d0",
240
- "panelTitle.inactiveForeground": "#d8dee9",
241
- "peekView.border": "#4c566a",
242
- "peekViewEditor.background": "#2e3440",
243
- "peekViewEditorGutter.background": "#2e3440",
244
- "peekViewEditor.matchHighlightBackground": "#88c0d04d",
245
- "peekViewResult.background": "#2e3440",
246
- "peekViewResult.fileForeground": "#88c0d0",
247
- "peekViewResult.lineForeground": "#d8dee966",
248
- "peekViewResult.matchHighlightBackground": "#88c0d0cc",
249
- "peekViewResult.selectionBackground": "#434c5e",
250
- "peekViewResult.selectionForeground": "#d8dee9",
251
- "peekViewTitle.background": "#3b4252",
252
- "peekViewTitleDescription.foreground": "#d8dee9",
253
- "peekViewTitleLabel.foreground": "#88c0d0",
254
- "pickerGroup.border": "#3b4252",
255
- "pickerGroup.foreground": "#88c0d0",
256
- "progressBar.background": "#88c0d0",
257
- "quickInputList.focusBackground": "#88c0d0",
258
- "quickInputList.focusForeground": "#2e3440",
259
- "sash.hoverBorder": "#88c0d0",
260
- "scrollbar.shadow": "#00000066",
261
- "scrollbarSlider.activeBackground": "#434c5eaa",
262
- "scrollbarSlider.background": "#434c5e99",
263
- "scrollbarSlider.hoverBackground": "#434c5eaa",
264
- "selection.background": "#88c0d099",
265
- "sideBar.background": "#2e3440",
266
- "sideBar.foreground": "#d8dee9",
267
- "sideBar.border": "#3b4252",
268
- "sideBarSectionHeader.background": "#3b4252",
269
- "sideBarSectionHeader.foreground": "#d8dee9",
270
- "sideBarTitle.foreground": "#d8dee9",
271
- "statusBar.background": "#3b4252",
272
- "statusBar.debuggingBackground": "#5e81ac",
273
- "statusBar.debuggingForeground": "#d8dee9",
274
- "statusBar.noFolderForeground": "#d8dee9",
275
- "statusBar.noFolderBackground": "#3b4252",
276
- "statusBar.foreground": "#d8dee9",
277
- "statusBarItem.activeBackground": "#4c566a",
278
- "statusBarItem.hoverBackground": "#434c5e",
279
- "statusBarItem.prominentBackground": "#3b4252",
280
- "statusBarItem.prominentHoverBackground": "#434c5e",
281
- "statusBarItem.errorBackground": "#3b4252",
282
- "statusBarItem.errorForeground": "#bf616a",
283
- "statusBarItem.warningBackground": "#ebcb8b",
284
- "statusBarItem.warningForeground": "#2e3440",
285
- "statusBar.border": "#3b425200",
286
- "tab.activeBackground": "#3b4252",
287
- "tab.activeForeground": "#d8dee9",
288
- "tab.border": "#3b425200",
289
- "tab.activeBorder": "#88c0d000",
290
- "tab.unfocusedActiveBorder": "#88c0d000",
291
- "tab.inactiveBackground": "#2e3440",
292
- "tab.inactiveForeground": "#d8dee966",
293
- "tab.unfocusedActiveForeground": "#d8dee999",
294
- "tab.unfocusedInactiveForeground": "#d8dee966",
295
- "tab.hoverBackground": "#3b4252cc",
296
- "tab.unfocusedHoverBackground": "#3b4252b3",
297
- "tab.hoverBorder": "#88c0d000",
298
- "tab.unfocusedHoverBorder": "#88c0d000",
299
- "tab.activeBorderTop": "#88c0d000",
300
- "tab.unfocusedActiveBorderTop": "#88c0d000",
301
- "tab.lastPinnedBorder": "#4c566a",
302
- "terminal.background": "#2e3440",
303
- "terminal.foreground": "#d8dee9",
304
- "terminal.ansiBlack": "#3b4252",
305
- "terminal.ansiRed": "#bf616a",
306
- "terminal.ansiGreen": "#a3be8c",
307
- "terminal.ansiYellow": "#ebcb8b",
308
- "terminal.ansiBlue": "#81a1c1",
309
- "terminal.ansiMagenta": "#b48ead",
310
- "terminal.ansiCyan": "#88c0d0",
311
- "terminal.ansiWhite": "#e5e9f0",
312
- "terminal.ansiBrightBlack": "#4c566a",
313
- "terminal.ansiBrightRed": "#bf616a",
314
- "terminal.ansiBrightGreen": "#a3be8c",
315
- "terminal.ansiBrightYellow": "#ebcb8b",
316
- "terminal.ansiBrightBlue": "#81a1c1",
317
- "terminal.ansiBrightMagenta": "#b48ead",
318
- "terminal.ansiBrightCyan": "#8fbcbb",
319
- "terminal.ansiBrightWhite": "#eceff4",
320
- "terminal.tab.activeBorder": "#88c0d0",
321
- "textBlockQuote.background": "#3b4252",
322
- "textBlockQuote.border": "#81a1c1",
323
- "textCodeBlock.background": "#4c566a",
324
- "textLink.activeForeground": "#88c0d0",
325
- "textLink.foreground": "#88c0d0",
326
- "textPreformat.foreground": "#8fbcbb",
327
- "textSeparator.foreground": "#eceff4",
328
- "titleBar.activeBackground": "#2e3440",
329
- "titleBar.activeForeground": "#d8dee9",
330
- "titleBar.border": "#2e344000",
331
- "titleBar.inactiveBackground": "#2e3440",
332
- "titleBar.inactiveForeground": "#d8dee966",
333
- "tree.indentGuidesStroke": "#616e88",
334
- "walkThrough.embeddedEditorBackground": "#2e3440",
335
- "welcomePage.buttonBackground": "#434c5e",
336
- "welcomePage.buttonHoverBackground": "#4c566a",
337
- "widget.shadow": "#00000066"
338
- },
339
- "tokenColors": [{
340
- "settings": {
341
- "foreground": "#d8dee9ff",
342
- "background": "#2e3440ff"
343
- }
344
- }, {
345
- "scope": "emphasis",
346
- "settings": {
347
- "fontStyle": "italic"
348
- }
349
- }, {
350
- "scope": "strong",
351
- "settings": {
352
- "fontStyle": "bold"
353
- }
354
- }, {
355
- "name": "Comment",
356
- "scope": "comment",
357
- "settings": {
358
- "foreground": "#616E88"
359
- }
360
- }, {
361
- "name": "Constant Character",
362
- "scope": "constant.character",
363
- "settings": {
364
- "foreground": "#EBCB8B"
365
- }
366
- }, {
367
- "name": "Constant Character Escape",
368
- "scope": "constant.character.escape",
369
- "settings": {
370
- "foreground": "#EBCB8B"
371
- }
372
- }, {
373
- "name": "Constant Language",
374
- "scope": "constant.language",
375
- "settings": {
376
- "foreground": "#81A1C1"
377
- }
378
- }, {
379
- "name": "Constant Numeric",
380
- "scope": "constant.numeric",
381
- "settings": {
382
- "foreground": "#B48EAD"
383
- }
384
- }, {
385
- "name": "Constant Regexp",
386
- "scope": "constant.regexp",
387
- "settings": {
388
- "foreground": "#EBCB8B"
389
- }
390
- }, {
391
- "name": "Entity Name Class/Type",
392
- "scope": ["entity.name.class", "entity.name.type.class"],
393
- "settings": {
394
- "foreground": "#8FBCBB"
395
- }
396
- }, {
397
- "name": "Entity Name Function",
398
- "scope": "entity.name.function",
399
- "settings": {
400
- "foreground": "#88C0D0"
401
- }
402
- }, {
403
- "name": "Entity Name Tag",
404
- "scope": "entity.name.tag",
405
- "settings": {
406
- "foreground": "#81A1C1"
407
- }
408
- }, {
409
- "name": "Entity Other Attribute Name",
410
- "scope": "entity.other.attribute-name",
411
- "settings": {
412
- "foreground": "#8FBCBB"
413
- }
414
- }, {
415
- "name": "Entity Other Inherited Class",
416
- "scope": "entity.other.inherited-class",
417
- "settings": {
418
- "fontStyle": "bold",
419
- "foreground": "#8FBCBB"
420
- }
421
- }, {
422
- "name": "Invalid Deprecated",
423
- "scope": "invalid.deprecated",
424
- "settings": {
425
- "foreground": "#D8DEE9",
426
- "background": "#EBCB8B"
427
- }
428
- }, {
429
- "name": "Invalid Illegal",
430
- "scope": "invalid.illegal",
431
- "settings": {
432
- "foreground": "#D8DEE9",
433
- "background": "#BF616A"
434
- }
435
- }, {
436
- "name": "Keyword",
437
- "scope": "keyword",
438
- "settings": {
439
- "foreground": "#81A1C1"
440
- }
441
- }, {
442
- "name": "Keyword Operator",
443
- "scope": "keyword.operator",
444
- "settings": {
445
- "foreground": "#81A1C1"
446
- }
447
- }, {
448
- "name": "Keyword Other New",
449
- "scope": "keyword.other.new",
450
- "settings": {
451
- "foreground": "#81A1C1"
452
- }
453
- }, {
454
- "name": "Markup Bold",
455
- "scope": "markup.bold",
456
- "settings": {
457
- "fontStyle": "bold"
458
- }
459
- }, {
460
- "name": "Markup Changed",
461
- "scope": "markup.changed",
462
- "settings": {
463
- "foreground": "#EBCB8B"
464
- }
465
- }, {
466
- "name": "Markup Deleted",
467
- "scope": "markup.deleted",
468
- "settings": {
469
- "foreground": "#BF616A"
470
- }
471
- }, {
472
- "name": "Markup Inserted",
473
- "scope": "markup.inserted",
474
- "settings": {
475
- "foreground": "#A3BE8C"
476
- }
477
- }, {
478
- "name": "Meta Preprocessor",
479
- "scope": "meta.preprocessor",
480
- "settings": {
481
- "foreground": "#5E81AC"
482
- }
483
- }, {
484
- "name": "Punctuation",
485
- "scope": "punctuation",
486
- "settings": {
487
- "foreground": "#ECEFF4"
488
- }
489
- }, {
490
- "name": "Punctuation Definition Parameters",
491
- "scope": ["punctuation.definition.method-parameters", "punctuation.definition.function-parameters", "punctuation.definition.parameters"],
492
- "settings": {
493
- "foreground": "#ECEFF4"
494
- }
495
- }, {
496
- "name": "Punctuation Definition Tag",
497
- "scope": "punctuation.definition.tag",
498
- "settings": {
499
- "foreground": "#81A1C1"
500
- }
501
- }, {
502
- "name": "Punctuation Definition Comment",
503
- "scope": ["punctuation.definition.comment", "punctuation.end.definition.comment", "punctuation.start.definition.comment"],
504
- "settings": {
505
- "foreground": "#616E88"
506
- }
507
- }, {
508
- "name": "Punctuation Section",
509
- "scope": "punctuation.section",
510
- "settings": {
511
- "foreground": "#ECEFF4"
512
- }
513
- }, {
514
- "name": "Punctuation Section Embedded",
515
- "scope": ["punctuation.section.embedded.begin", "punctuation.section.embedded.end"],
516
- "settings": {
517
- "foreground": "#81A1C1"
518
- }
519
- }, {
520
- "name": "Punctuation Terminator",
521
- "scope": "punctuation.terminator",
522
- "settings": {
523
- "foreground": "#81A1C1"
524
- }
525
- }, {
526
- "name": "Punctuation Variable",
527
- "scope": "punctuation.definition.variable",
528
- "settings": {
529
- "foreground": "#81A1C1"
530
- }
531
- }, {
532
- "name": "Storage",
533
- "scope": "storage",
534
- "settings": {
535
- "foreground": "#81A1C1"
536
- }
537
- }, {
538
- "name": "String",
539
- "scope": "string",
540
- "settings": {
541
- "foreground": "#A3BE8C"
542
- }
543
- }, {
544
- "name": "String Regexp",
545
- "scope": "string.regexp",
546
- "settings": {
547
- "foreground": "#EBCB8B"
548
- }
549
- }, {
550
- "name": "Support Class",
551
- "scope": "support.class",
552
- "settings": {
553
- "foreground": "#8FBCBB"
554
- }
555
- }, {
556
- "name": "Support Constant",
557
- "scope": "support.constant",
558
- "settings": {
559
- "foreground": "#81A1C1"
560
- }
561
- }, {
562
- "name": "Support Function",
563
- "scope": "support.function",
564
- "settings": {
565
- "foreground": "#88C0D0"
566
- }
567
- }, {
568
- "name": "Support Function Construct",
569
- "scope": "support.function.construct",
570
- "settings": {
571
- "foreground": "#81A1C1"
572
- }
573
- }, {
574
- "name": "Support Type",
575
- "scope": "support.type",
576
- "settings": {
577
- "foreground": "#8FBCBB"
578
- }
579
- }, {
580
- "name": "Support Type Exception",
581
- "scope": "support.type.exception",
582
- "settings": {
583
- "foreground": "#8FBCBB"
584
- }
585
- }, {
586
- "name": "Token Debug",
587
- "scope": "token.debug-token",
588
- "settings": {
589
- "foreground": "#b48ead"
590
- }
591
- }, {
592
- "name": "Token Error",
593
- "scope": "token.error-token",
594
- "settings": {
595
- "foreground": "#bf616a"
596
- }
597
- }, {
598
- "name": "Token Info",
599
- "scope": "token.info-token",
600
- "settings": {
601
- "foreground": "#88c0d0"
602
- }
603
- }, {
604
- "name": "Token Warning",
605
- "scope": "token.warn-token",
606
- "settings": {
607
- "foreground": "#ebcb8b"
608
- }
609
- }, {
610
- "name": "Variable",
611
- "scope": "variable.other",
612
- "settings": {
613
- "foreground": "#D8DEE9"
614
- }
615
- }, {
616
- "name": "Variable Language",
617
- "scope": "variable.language",
618
- "settings": {
619
- "foreground": "#81A1C1"
620
- }
621
- }, {
622
- "name": "Variable Parameter",
623
- "scope": "variable.parameter",
624
- "settings": {
625
- "foreground": "#D8DEE9"
626
- }
627
- }, {
628
- "name": "[C/CPP] Punctuation Separator Pointer-Access",
629
- "scope": "punctuation.separator.pointer-access.c",
630
- "settings": {
631
- "foreground": "#81A1C1"
632
- }
633
- }, {
634
- "name": "[C/CPP] Meta Preprocessor Include",
635
- "scope": ["source.c meta.preprocessor.include", "source.c string.quoted.other.lt-gt.include"],
636
- "settings": {
637
- "foreground": "#8FBCBB"
638
- }
639
- }, {
640
- "name": "[C/CPP] Conditional Directive",
641
- "scope": ["source.cpp keyword.control.directive.conditional", "source.cpp punctuation.definition.directive", "source.c keyword.control.directive.conditional", "source.c punctuation.definition.directive"],
642
- "settings": {
643
- "foreground": "#5E81AC",
644
- "fontStyle": "bold"
645
- }
646
- }, {
647
- "name": "[CSS] Constant Other Color RGB Value",
648
- "scope": "source.css constant.other.color.rgb-value",
649
- "settings": {
650
- "foreground": "#B48EAD"
651
- }
652
- }, {
653
- "name": "[CSS](Function) Meta Property-Value",
654
- "scope": "source.css meta.property-value",
655
- "settings": {
656
- "foreground": "#88C0D0"
657
- }
658
- }, {
659
- "name": "[CSS] Media Queries",
660
- "scope": ["source.css keyword.control.at-rule.media", "source.css keyword.control.at-rule.media punctuation.definition.keyword"],
661
- "settings": {
662
- "foreground": "#D08770"
663
- }
664
- }, {
665
- "name": "[CSS] Punctuation Definition Keyword",
666
- "scope": "source.css punctuation.definition.keyword",
667
- "settings": {
668
- "foreground": "#81A1C1"
669
- }
670
- }, {
671
- "name": "[CSS] Support Type Property Name",
672
- "scope": "source.css support.type.property-name",
673
- "settings": {
674
- "foreground": "#D8DEE9"
675
- }
676
- }, {
677
- "name": "[diff] Meta Range Context",
678
- "scope": "source.diff meta.diff.range.context",
679
- "settings": {
680
- "foreground": "#8FBCBB"
681
- }
682
- }, {
683
- "name": "[diff] Meta Header From-File",
684
- "scope": "source.diff meta.diff.header.from-file",
685
- "settings": {
686
- "foreground": "#8FBCBB"
687
- }
688
- }, {
689
- "name": "[diff] Punctuation Definition From-File",
690
- "scope": "source.diff punctuation.definition.from-file",
691
- "settings": {
692
- "foreground": "#8FBCBB"
693
- }
694
- }, {
695
- "name": "[diff] Punctuation Definition Range",
696
- "scope": "source.diff punctuation.definition.range",
697
- "settings": {
698
- "foreground": "#8FBCBB"
699
- }
700
- }, {
701
- "name": "[diff] Punctuation Definition Separator",
702
- "scope": "source.diff punctuation.definition.separator",
703
- "settings": {
704
- "foreground": "#81A1C1"
705
- }
706
- }, {
707
- "name": "[Elixir](JakeBecker.elixir-ls) module names",
708
- "scope": "entity.name.type.module.elixir",
709
- "settings": {
710
- "foreground": "#8FBCBB"
711
- }
712
- }, {
713
- "name": "[Elixir](JakeBecker.elixir-ls) module attributes",
714
- "scope": "variable.other.readwrite.module.elixir",
715
- "settings": {
716
- "foreground": "#D8DEE9",
717
- "fontStyle": "bold"
718
- }
719
- }, {
720
- "name": "[Elixir](JakeBecker.elixir-ls) atoms",
721
- "scope": "constant.other.symbol.elixir",
722
- "settings": {
723
- "foreground": "#D8DEE9",
724
- "fontStyle": "bold"
725
- }
726
- }, {
727
- "name": "[Elixir](JakeBecker.elixir-ls) modules",
728
- "scope": "variable.other.constant.elixir",
729
- "settings": {
730
- "foreground": "#8FBCBB"
731
- }
732
- }, {
733
- "name": "[Go] String Format Placeholder",
734
- "scope": "source.go constant.other.placeholder.go",
735
- "settings": {
736
- "foreground": "#EBCB8B"
737
- }
738
- }, {
739
- "name": "[Java](JavaDoc) Comment Block Documentation HTML Entities",
740
- "scope": "source.java comment.block.documentation.javadoc punctuation.definition.entity.html",
741
- "settings": {
742
- "foreground": "#81A1C1"
743
- }
744
- }, {
745
- "name": "[Java](JavaDoc) Constant Other",
746
- "scope": "source.java constant.other",
747
- "settings": {
748
- "foreground": "#D8DEE9"
749
- }
750
- }, {
751
- "name": "[Java](JavaDoc) Keyword Other Documentation",
752
- "scope": "source.java keyword.other.documentation",
753
- "settings": {
754
- "foreground": "#8FBCBB"
755
- }
756
- }, {
757
- "name": "[Java](JavaDoc) Keyword Other Documentation Author",
758
- "scope": "source.java keyword.other.documentation.author.javadoc",
759
- "settings": {
760
- "foreground": "#8FBCBB"
761
- }
762
- }, {
763
- "name": "[Java](JavaDoc) Keyword Other Documentation Directive/Custom",
764
- "scope": ["source.java keyword.other.documentation.directive", "source.java keyword.other.documentation.custom"],
765
- "settings": {
766
- "foreground": "#8FBCBB"
767
- }
768
- }, {
769
- "name": "[Java](JavaDoc) Keyword Other Documentation See",
770
- "scope": "source.java keyword.other.documentation.see.javadoc",
771
- "settings": {
772
- "foreground": "#8FBCBB"
773
- }
774
- }, {
775
- "name": "[Java] Meta Method-Call",
776
- "scope": "source.java meta.method-call meta.method",
777
- "settings": {
778
- "foreground": "#88C0D0"
779
- }
780
- }, {
781
- "name": "[Java](JavaDoc) Meta Tag Template Link",
782
- "scope": ["source.java meta.tag.template.link.javadoc", "source.java string.other.link.title.javadoc"],
783
- "settings": {
784
- "foreground": "#8FBCBB"
785
- }
786
- }, {
787
- "name": "[Java](JavaDoc) Meta Tag Template Value",
788
- "scope": "source.java meta.tag.template.value.javadoc",
789
- "settings": {
790
- "foreground": "#88C0D0"
791
- }
792
- }, {
793
- "name": "[Java](JavaDoc) Punctuation Definition Keyword",
794
- "scope": "source.java punctuation.definition.keyword.javadoc",
795
- "settings": {
796
- "foreground": "#8FBCBB"
797
- }
798
- }, {
799
- "name": "[Java](JavaDoc) Punctuation Definition Tag",
800
- "scope": ["source.java punctuation.definition.tag.begin.javadoc", "source.java punctuation.definition.tag.end.javadoc"],
801
- "settings": {
802
- "foreground": "#616E88"
803
- }
804
- }, {
805
- "name": "[Java] Storage Modifier Import",
806
- "scope": "source.java storage.modifier.import",
807
- "settings": {
808
- "foreground": "#8FBCBB"
809
- }
810
- }, {
811
- "name": "[Java] Storage Modifier Package",
812
- "scope": "source.java storage.modifier.package",
813
- "settings": {
814
- "foreground": "#8FBCBB"
815
- }
816
- }, {
817
- "name": "[Java] Storage Type",
818
- "scope": "source.java storage.type",
819
- "settings": {
820
- "foreground": "#8FBCBB"
821
- }
822
- }, {
823
- "name": "[Java] Storage Type Annotation",
824
- "scope": "source.java storage.type.annotation",
825
- "settings": {
826
- "foreground": "#D08770"
827
- }
828
- }, {
829
- "name": "[Java] Storage Type Generic",
830
- "scope": "source.java storage.type.generic",
831
- "settings": {
832
- "foreground": "#8FBCBB"
833
- }
834
- }, {
835
- "name": "[Java] Storage Type Primitive",
836
- "scope": "source.java storage.type.primitive",
837
- "settings": {
838
- "foreground": "#81A1C1"
839
- }
840
- }, {
841
- "name": "[JavaScript] Decorator",
842
- "scope": ["source.js punctuation.decorator", "source.js meta.decorator variable.other.readwrite", "source.js meta.decorator entity.name.function"],
843
- "settings": {
844
- "foreground": "#D08770"
845
- }
846
- }, {
847
- "name": "[JavaScript] Meta Object-Literal Key",
848
- "scope": "source.js meta.object-literal.key",
849
- "settings": {
850
- "foreground": "#88C0D0"
851
- }
852
- }, {
853
- "name": "[JavaScript](JSDoc) Storage Type Class",
854
- "scope": "source.js storage.type.class.jsdoc",
855
- "settings": {
856
- "foreground": "#8FBCBB"
857
- }
858
- }, {
859
- "name": "[JavaScript] String Template Literals Punctuation",
860
- "scope": ["source.js string.quoted.template punctuation.quasi.element.begin", "source.js string.quoted.template punctuation.quasi.element.end", "source.js string.template punctuation.definition.template-expression"],
861
- "settings": {
862
- "foreground": "#81A1C1"
863
- }
864
- }, {
865
- "name": "[JavaScript] Interpolated String Template Punctuation Functions",
866
- "scope": "source.js string.quoted.template meta.method-call.with-arguments",
867
- "settings": {
868
- "foreground": "#ECEFF4"
869
- }
870
- }, {
871
- "name": "[JavaScript] String Template Literal Variable",
872
- "scope": ["source.js string.template meta.template.expression support.variable.property", "source.js string.template meta.template.expression variable.other.object"],
873
- "settings": {
874
- "foreground": "#D8DEE9"
875
- }
876
- }, {
877
- "name": "[JavaScript] Support Type Primitive",
878
- "scope": "source.js support.type.primitive",
879
- "settings": {
880
- "foreground": "#81A1C1"
881
- }
882
- }, {
883
- "name": "[JavaScript] Variable Other Object",
884
- "scope": "source.js variable.other.object",
885
- "settings": {
886
- "foreground": "#D8DEE9"
887
- }
888
- }, {
889
- "name": "[JavaScript] Variable Other Read-Write Alias",
890
- "scope": "source.js variable.other.readwrite.alias",
891
- "settings": {
892
- "foreground": "#8FBCBB"
893
- }
894
- }, {
895
- "name": "[JavaScript] Parentheses in Template Strings",
896
- "scope": ["source.js meta.embedded.line meta.brace.square", "source.js meta.embedded.line meta.brace.round", "source.js string.quoted.template meta.brace.square", "source.js string.quoted.template meta.brace.round"],
897
- "settings": {
898
- "foreground": "#ECEFF4"
899
- }
900
- }, {
901
- "name": "[HTML] Constant Character Entity",
902
- "scope": "text.html.basic constant.character.entity.html",
903
- "settings": {
904
- "foreground": "#EBCB8B"
905
- }
906
- }, {
907
- "name": "[HTML] Constant Other Inline-Data",
908
- "scope": "text.html.basic constant.other.inline-data",
909
- "settings": {
910
- "foreground": "#D08770",
911
- "fontStyle": "italic"
912
- }
913
- }, {
914
- "name": "[HTML] Meta Tag SGML Doctype",
915
- "scope": "text.html.basic meta.tag.sgml.doctype",
916
- "settings": {
917
- "foreground": "#5E81AC"
918
- }
919
- }, {
920
- "name": "[HTML] Punctuation Definition Entity",
921
- "scope": "text.html.basic punctuation.definition.entity",
922
- "settings": {
923
- "foreground": "#81A1C1"
924
- }
925
- }, {
926
- "name": "[INI] Entity Name Section Group-Title",
927
- "scope": "source.properties entity.name.section.group-title.ini",
928
- "settings": {
929
- "foreground": "#88C0D0"
930
- }
931
- }, {
932
- "name": "[INI] Punctuation Separator Key-Value",
933
- "scope": "source.properties punctuation.separator.key-value.ini",
934
- "settings": {
935
- "foreground": "#81A1C1"
936
- }
937
- }, {
938
- "name": "[Markdown] Markup Fenced Code Block",
939
- "scope": ["text.html.markdown markup.fenced_code.block", "text.html.markdown markup.fenced_code.block punctuation.definition"],
940
- "settings": {
941
- "foreground": "#8FBCBB"
942
- }
943
- }, {
944
- "name": "[Markdown] Markup Heading",
945
- "scope": "markup.heading",
946
- "settings": {
947
- "foreground": "#88C0D0"
948
- }
949
- }, {
950
- "name": "[Markdown] Markup Inline",
951
- "scope": ["text.html.markdown markup.inline.raw", "text.html.markdown markup.inline.raw punctuation.definition.raw"],
952
- "settings": {
953
- "foreground": "#8FBCBB"
954
- }
955
- }, {
956
- "name": "[Markdown] Markup Italic",
957
- "scope": "text.html.markdown markup.italic",
958
- "settings": {
959
- "fontStyle": "italic"
960
- }
961
- }, {
962
- "name": "[Markdown] Markup Link",
963
- "scope": "text.html.markdown markup.underline.link",
964
- "settings": {
965
- "fontStyle": "underline"
966
- }
967
- }, {
968
- "name": "[Markdown] Markup List Numbered/Unnumbered",
969
- "scope": "text.html.markdown beginning.punctuation.definition.list",
970
- "settings": {
971
- "foreground": "#81A1C1"
972
- }
973
- }, {
974
- "name": "[Markdown] Markup Quote Punctuation Definition",
975
- "scope": "text.html.markdown beginning.punctuation.definition.quote",
976
- "settings": {
977
- "foreground": "#8FBCBB"
978
- }
979
- }, {
980
- "name": "[Markdown] Markup Quote Punctuation Definition",
981
- "scope": "text.html.markdown markup.quote",
982
- "settings": {
983
- "foreground": "#616E88"
984
- }
985
- }, {
986
- "name": "[Markdown] Markup Math Constant",
987
- "scope": "text.html.markdown constant.character.math.tex",
988
- "settings": {
989
- "foreground": "#81A1C1"
990
- }
991
- }, {
992
- "name": "[Markdown] Markup Math Definition Marker",
993
- "scope": ["text.html.markdown punctuation.definition.math.begin", "text.html.markdown punctuation.definition.math.end"],
994
- "settings": {
995
- "foreground": "#5E81AC"
996
- }
997
- }, {
998
- "name": "[Markdown] Markup Math Function Definition Marker",
999
- "scope": "text.html.markdown punctuation.definition.function.math.tex",
1000
- "settings": {
1001
- "foreground": "#88C0D0"
1002
- }
1003
- }, {
1004
- "name": "[Markdown] Markup Math Operator",
1005
- "scope": "text.html.markdown punctuation.math.operator.latex",
1006
- "settings": {
1007
- "foreground": "#81A1C1"
1008
- }
1009
- }, {
1010
- "name": "[Markdown] Punctuation Definition Heading",
1011
- "scope": "text.html.markdown punctuation.definition.heading",
1012
- "settings": {
1013
- "foreground": "#81A1C1"
1014
- }
1015
- }, {
1016
- "name": "[Markdown] Punctuation Definition Constant/String",
1017
- "scope": ["text.html.markdown punctuation.definition.constant", "text.html.markdown punctuation.definition.string"],
1018
- "settings": {
1019
- "foreground": "#81A1C1"
1020
- }
1021
- }, {
1022
- "name": "[Markdown] String Other Link Description/Title",
1023
- "scope": ["text.html.markdown constant.other.reference.link", "text.html.markdown string.other.link.description", "text.html.markdown string.other.link.title"],
1024
- "settings": {
1025
- "foreground": "#88C0D0"
1026
- }
1027
- }, {
1028
- "name": "[Perl] Perl Sigils",
1029
- "scope": "source.perl punctuation.definition.variable",
1030
- "settings": {
1031
- "foreground": "#D8DEE9"
1032
- }
1033
- }, {
1034
- "name": "[PHP] Meta Function-Call Object",
1035
- "scope": ["source.php meta.function-call", "source.php meta.function-call.object"],
1036
- "settings": {
1037
- "foreground": "#88C0D0"
1038
- }
1039
- }, {
1040
- "name": "[Python] Decorator",
1041
- "scope": ["source.python entity.name.function.decorator", "source.python meta.function.decorator support.type"],
1042
- "settings": {
1043
- "foreground": "#D08770"
1044
- }
1045
- }, {
1046
- "name": "[Python] Function Call",
1047
- "scope": "source.python meta.function-call.generic",
1048
- "settings": {
1049
- "foreground": "#88C0D0"
1050
- }
1051
- }, {
1052
- "name": "[Python] Support Type",
1053
- "scope": "source.python support.type",
1054
- "settings": {
1055
- "foreground": "#88C0D0"
1056
- }
1057
- }, {
1058
- "name": "[Python] Function Parameter",
1059
- "scope": ["source.python variable.parameter.function.language"],
1060
- "settings": {
1061
- "foreground": "#D8DEE9"
1062
- }
1063
- }, {
1064
- "name": "[Python] Function Parameter Special",
1065
- "scope": ["source.python meta.function.parameters variable.parameter.function.language.special.self"],
1066
- "settings": {
1067
- "foreground": "#81A1C1"
1068
- }
1069
- }, {
1070
- "name": "[Rust] Entity types",
1071
- "scope": "source.rust entity.name.type",
1072
- "settings": {
1073
- "foreground": "#8FBCBB"
1074
- }
1075
- }, {
1076
- "name": "[Rust] Macro",
1077
- "scope": "source.rust meta.macro entity.name.function",
1078
- "settings": {
1079
- "fontStyle": "bold",
1080
- "foreground": "#88C0D0"
1081
- }
1082
- }, {
1083
- "name": "[Rust] Attributes",
1084
- "scope": ["source.rust meta.attribute", "source.rust meta.attribute punctuation", "source.rust meta.attribute keyword.operator"],
1085
- "settings": {
1086
- "foreground": "#5E81AC"
1087
- }
1088
- }, {
1089
- "name": "[Rust] Traits",
1090
- "scope": "source.rust entity.name.type.trait",
1091
- "settings": {
1092
- "fontStyle": "bold"
1093
- }
1094
- }, {
1095
- "name": "[Rust] Interpolation Bracket Curly",
1096
- "scope": "source.rust punctuation.definition.interpolation",
1097
- "settings": {
1098
- "foreground": "#EBCB8B"
1099
- }
1100
- }, {
1101
- "name": "[SCSS] Punctuation Definition Interpolation Bracket Curly",
1102
- "scope": ["source.css.scss punctuation.definition.interpolation.begin.bracket.curly", "source.css.scss punctuation.definition.interpolation.end.bracket.curly"],
1103
- "settings": {
1104
- "foreground": "#81A1C1"
1105
- }
1106
- }, {
1107
- "name": "[SCSS] Variable Interpolation",
1108
- "scope": "source.css.scss variable.interpolation",
1109
- "settings": {
1110
- "foreground": "#D8DEE9",
1111
- "fontStyle": "italic"
1112
- }
1113
- }, {
1114
- "name": "[TypeScript] Decorators",
1115
- "scope": ["source.ts punctuation.decorator", "source.ts meta.decorator variable.other.readwrite", "source.ts meta.decorator entity.name.function", "source.tsx punctuation.decorator", "source.tsx meta.decorator variable.other.readwrite", "source.tsx meta.decorator entity.name.function"],
1116
- "settings": {
1117
- "foreground": "#D08770"
1118
- }
1119
- }, {
1120
- "name": "[TypeScript] Object-literal keys",
1121
- "scope": ["source.ts meta.object-literal.key", "source.tsx meta.object-literal.key"],
1122
- "settings": {
1123
- "foreground": "#D8DEE9"
1124
- }
1125
- }, {
1126
- "name": "[TypeScript] Object-literal functions",
1127
- "scope": ["source.ts meta.object-literal.key entity.name.function", "source.tsx meta.object-literal.key entity.name.function"],
1128
- "settings": {
1129
- "foreground": "#88C0D0"
1130
- }
1131
- }, {
1132
- "name": "[TypeScript] Type/Class",
1133
- "scope": ["source.ts support.class", "source.ts support.type", "source.ts entity.name.type", "source.ts entity.name.class", "source.tsx support.class", "source.tsx support.type", "source.tsx entity.name.type", "source.tsx entity.name.class"],
1134
- "settings": {
1135
- "foreground": "#8FBCBB"
1136
- }
1137
- }, {
1138
- "name": "[TypeScript] Static Class Support",
1139
- "scope": ["source.ts support.constant.math", "source.ts support.constant.dom", "source.ts support.constant.json", "source.tsx support.constant.math", "source.tsx support.constant.dom", "source.tsx support.constant.json"],
1140
- "settings": {
1141
- "foreground": "#8FBCBB"
1142
- }
1143
- }, {
1144
- "name": "[TypeScript] Variables",
1145
- "scope": ["source.ts support.variable", "source.tsx support.variable"],
1146
- "settings": {
1147
- "foreground": "#D8DEE9"
1148
- }
1149
- }, {
1150
- "name": "[TypeScript] Parentheses in Template Strings",
1151
- "scope": ["source.ts meta.embedded.line meta.brace.square", "source.ts meta.embedded.line meta.brace.round", "source.tsx meta.embedded.line meta.brace.square", "source.tsx meta.embedded.line meta.brace.round"],
1152
- "settings": {
1153
- "foreground": "#ECEFF4"
1154
- }
1155
- }, {
1156
- "name": "[XML] Entity Name Tag Namespace",
1157
- "scope": "text.xml entity.name.tag.namespace",
1158
- "settings": {
1159
- "foreground": "#8FBCBB"
1160
- }
1161
- }, {
1162
- "name": "[XML] Keyword Other Doctype",
1163
- "scope": "text.xml keyword.other.doctype",
1164
- "settings": {
1165
- "foreground": "#5E81AC"
1166
- }
1167
- }, {
1168
- "name": "[XML] Meta Tag Preprocessor",
1169
- "scope": "text.xml meta.tag.preprocessor entity.name.tag",
1170
- "settings": {
1171
- "foreground": "#5E81AC"
1172
- }
1173
- }, {
1174
- "name": "[XML] Entity Name Tag Namespace",
1175
- "scope": ["text.xml string.unquoted.cdata", "text.xml string.unquoted.cdata punctuation.definition.string"],
1176
- "settings": {
1177
- "foreground": "#D08770",
1178
- "fontStyle": "italic"
1179
- }
1180
- }, {
1181
- "name": "[YAML] Entity Name Tag",
1182
- "scope": "source.yaml entity.name.tag",
1183
- "settings": {
1184
- "foreground": "#8FBCBB"
1185
- }
1186
- }]
1187
- },
1188
- "autoImport": true,
1189
- "showCopyButton": true,
1190
- "skipLanguages": [],
1191
- "filepath": "/Users/bytedance/modern.js/website/module-tools/docs/en/guide/basic/test-your-project.mdx"
1192
- };
1193
- var frontmatter = {
1194
- "sidebar_position": 6
1195
- };
1196
- var toc = [{
1197
- "id": "prerequisites-and-conventions",
1198
- "text": "Prerequisites and conventions",
1199
- "depth": 2
1200
- }, {
1201
- "id": "run-the-tests",
1202
- "text": "Run the tests",
1203
- "depth": 2
1204
- }, {
1205
- "id": "usage-configuration",
1206
- "text": "Usage Configuration",
1207
- "depth": 2
1208
- }, {
1209
- "id": "test-example",
1210
- "text": "Test example",
1211
- "depth": 2
1212
- }, {
1213
- "id": "common-modules",
1214
- "text": "Common modules",
1215
- "depth": 3
1216
- }, {
1217
- "id": "components",
1218
- "text": "Components",
1219
- "depth": 3
1220
- }];
1221
- var title = "Testing Projects";
1222
- var content = "\"---\\nsidebar_position: 6\\n---\\n\\n# Testing Projects\\n\\nThis chapter will describe how to test modules.\\n\\n## Prerequisites and conventions\\n\\nTo use the testing functionality of the project, you need to make sure that the project contains the following dependencies:\\n\\n- `\\\"@modern-js/plugin-testing\\\"`\\n\\nIn the module engineering scheme, the following conventions are in place for test cases, or files for writing tests:\\n\\n- The `tests` directory in the project directory is the directory for test cases and test files, **no support for changing the directory for running test cases**.\\n- Files with the suffix `.test.[tj]sx?` are automatically recognized as test files by default.\\n- Other `. [tj]sx?` suffixes are recognized as normal files that can be used as test `utils` files or for other purposes.\\n\\n## Run the tests\\n\\nOnce the dependencies are prepared and we know where to write the test cases, we can execute the tests with the following command:\\n\\n```bash\\nmodern test\\n\\n// Update snapshot\\nmodern test --updateSnapshot\\n```\\n\\nAfter execution, you will see the results of the test:\\n\\n![test-result](https://lf3-static.bytednsdoc.com/obj/eden-cn/uhbfnupenuhf/test-result.png)\\n\\n## Usage Configuration\\n\\nThe Module Engineering Program provides the following configurations for testing.\\n\\n- [`testing`](/api/config/testing)\\n\\nYou can add it in `modern.config.(j|t)s`.\\n\\n## Test example\\n\\n### Common modules\\n\\nFor common modules, we can use the test function as follows:\\n\\n<CH.Spotlight>\\n\\n```typescript ./src/index.ts\\nexport default function () {\\n return 'hello world';\\n}\\n```\\n\\n---\\n\\nFirst is the code of the module.\\n\\n```typescript ./src/index.ts\\nexport default function () {\\n return 'hello world';\\n}\\n```\\n\\n---\\n\\nThen in the test file, we can do this.\\n\\nWhere `@` points to the source directory, defined in `tests/tsconfig.json` in the initialization project.\\n\\n```typescript ./tests/index.test.ts\\nimport main from '@/index';\\n\\ndescribe('default cases', () => {\\n test('Have returns', () => {\\n const drink = jest.fn(main);\\n drink();\\n expect(drink).toHaveReturned();\\n });\\n});\\n```\\n\\n---\\n\\nFinally we can execute `modern test`.\\n\\n```bash\\npnpm test\\n## or\\nyarn test\\n## or\\nnpm run test\\n```\\n\\n</CH.Spotlight>\\n\\n### Components\\n\\n{/* 链接待补充 */}\\n\\nFor components, Modern.js's Runtime API provides functionality for testing UI components, which is provided by `@modern-js/runtime/testing`.\\n\\n:::tip\\nIf you need to use the Runtime API, then you can turn it on via [microgenerator](/guide/basic/command-preview).\\n:::\\n\\n<CH.Spotlight>\\n\\n```tsx ./src/index.tsx\\nexport const default () {\\n return (\\n <div>This is a UI Component</div>\\n );\\n}\\n```\\n\\n---\\n\\nFirst is the code of the component.\\n\\n```tsx ./src/index.tsx\\nexport const default () {\\n return (\\n <div>This is a UI Component</div>\\n );\\n}\\n```\\n\\n---\\n\\nThen in the test file, we can do this.\\n\\nWhere `@` points to the source directory, defined in `tests/tsconfig.json` in the initialization project.\\n\\n```tsx ./tests/index.test.tsx\\nimport { render, screen } from '@modern-js/runtime/testing';\\n\\nimport Component from '@/index';\\n\\ndescribe('default cases', () => {\\n test('Rendered', () => {\\n render(<Component />);\\n expect(screen.getByText('This is a UI Component')).toBeInTheDocument();\\n });\\n});\\n```\\n\\n---\\n\\nFinally we can execute `modern test`.\\n\\n```bash\\npnpm test\\n## or\\nyarn test\\n## or\\nnpm run test\\n```\\n\\n</CH.Spotlight>\\n\"";
1223
- function _createMdxContent(props) {
1224
- var _components = Object.assign({
1225
- h1: "h1",
1226
- a: "a",
1227
- p: "p",
1228
- h2: "h2",
1229
- ul: "ul",
1230
- li: "li",
1231
- code: "code",
1232
- strong: "strong",
1233
- img: "img",
1234
- h3: "h3",
1235
- div: "div"
1236
- }, props.components);
1237
- if (!CH) _missingMdxReference("CH", false, "25:1-30:4");
1238
- if (!CH.Code) _missingMdxReference("CH.Code", true, "25:1-30:4");
1239
- if (!CH.CodeSlot) _missingMdxReference("CH.CodeSlot", true);
1240
- if (!CH.Spotlight) _missingMdxReference("CH.Spotlight", true, "50:1-98:16");
1241
- return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
1242
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h1, {
1243
- id: "testing-projects",
1244
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1245
- className: "header-anchor",
1246
- "aria-hidden": "true",
1247
- href: "#testing-projects",
1248
- children: "#"
1249
- }), "Testing Projects"]
1250
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
1251
- children: "This chapter will describe how to test modules."
1252
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
1253
- id: "prerequisites-and-conventions",
1254
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1255
- className: "header-anchor",
1256
- "aria-hidden": "true",
1257
- href: "#prerequisites-and-conventions",
1258
- children: "#"
1259
- }), "Prerequisites and conventions"]
1260
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
1261
- children: "To use the testing functionality of the project, you need to make sure that the project contains the following dependencies:"
1262
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
1263
- children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
1264
- children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1265
- children: "\"@modern-js/plugin-testing\""
1266
- })
1267
- }), "\n"]
1268
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
1269
- children: "In the module engineering scheme, the following conventions are in place for test cases, or files for writing tests:"
1270
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
1271
- children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
1272
- children: ["The ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1273
- children: "tests"
1274
- }), " directory in the project directory is the directory for test cases and test files, ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
1275
- children: "no support for changing the directory for running test cases"
1276
- }), "."]
1277
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
1278
- children: ["Files with the suffix ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1279
- children: ".test.[tj]sx?"
1280
- }), " are automatically recognized as test files by default."]
1281
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
1282
- children: ["Other ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1283
- children: ". [tj]sx?"
1284
- }), " suffixes are recognized as normal files that can be used as test ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1285
- children: "utils"
1286
- }), " files or for other purposes."]
1287
- }), "\n"]
1288
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
1289
- id: "run-the-tests",
1290
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1291
- className: "header-anchor",
1292
- "aria-hidden": "true",
1293
- href: "#run-the-tests",
1294
- children: "#"
1295
- }), "Run the tests"]
1296
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
1297
- children: "Once the dependencies are prepared and we know where to write the test cases, we can execute the tests with the following command:"
1298
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
1299
- codeConfig: chCodeConfig,
1300
- northPanel: {
1301
- "tabs": [""],
1302
- "active": "",
1303
- "heightRatio": 1
1304
- },
1305
- files: [{
1306
- "name": "",
1307
- "focus": "",
1308
- "code": {
1309
- "lines": [{
1310
- "tokens": [{
1311
- "content": "modern ",
1312
- "props": {
1313
- "style": {
1314
- "color": "#D8DEE9FF"
1315
- }
1316
- }
1317
- }, {
1318
- "content": "test",
1319
- "props": {
1320
- "style": {
1321
- "color": "#88C0D0"
1322
- }
1323
- }
1324
- }]
1325
- }, {
1326
- "tokens": []
1327
- }, {
1328
- "tokens": [{
1329
- "content": "// Update snapshot",
1330
- "props": {
1331
- "style": {
1332
- "color": "#D8DEE9FF"
1333
- }
1334
- }
1335
- }]
1336
- }, {
1337
- "tokens": [{
1338
- "content": "modern ",
1339
- "props": {
1340
- "style": {
1341
- "color": "#D8DEE9FF"
1342
- }
1343
- }
1344
- }, {
1345
- "content": "test",
1346
- "props": {
1347
- "style": {
1348
- "color": "#88C0D0"
1349
- }
1350
- }
1351
- }, {
1352
- "content": " --updateSnapshot",
1353
- "props": {
1354
- "style": {
1355
- "color": "#D8DEE9FF"
1356
- }
1357
- }
1358
- }]
1359
- }],
1360
- "lang": "bash"
1361
- },
1362
- "annotations": []
1363
- }]
1364
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
1365
- children: "After execution, you will see the results of the test:"
1366
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
1367
- children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.img, {
1368
- src: "https://lf3-static.bytednsdoc.com/obj/eden-cn/uhbfnupenuhf/test-result.png",
1369
- alt: "test-result"
1370
- })
1371
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
1372
- id: "usage-configuration",
1373
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1374
- className: "header-anchor",
1375
- "aria-hidden": "true",
1376
- href: "#usage-configuration",
1377
- children: "#"
1378
- }), "Usage Configuration"]
1379
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
1380
- children: "The Module Engineering Program provides the following configurations for testing."
1381
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
1382
- children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
1383
- children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1384
- href: "/en/api/config/testing.html",
1385
- children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1386
- children: "testing"
1387
- })
1388
- })
1389
- }), "\n"]
1390
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1391
- children: ["You can add it in ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1392
- children: "modern.config.(j|t)s"
1393
- }), "."]
1394
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
1395
- id: "test-example",
1396
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1397
- className: "header-anchor",
1398
- "aria-hidden": "true",
1399
- href: "#test-example",
1400
- children: "#"
1401
- }), "Test example"]
1402
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h3, {
1403
- id: "common-modules",
1404
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1405
- className: "header-anchor",
1406
- "aria-hidden": "true",
1407
- href: "#common-modules",
1408
- children: "#"
1409
- }), "Common modules"]
1410
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
1411
- children: "For common modules, we can use the test function as follows:"
1412
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(CH.Spotlight, {
1413
- codeConfig: chCodeConfig,
1414
- editorSteps: [{
1415
- "northPanel": {
1416
- "tabs": ["./src/index.ts"],
1417
- "active": "./src/index.ts",
1418
- "heightRatio": 1
1419
- },
1420
- "files": [{
1421
- "name": "./src/index.ts",
1422
- "focus": "",
1423
- "code": {
1424
- "lines": [{
1425
- "tokens": [{
1426
- "content": "export",
1427
- "props": {
1428
- "style": {
1429
- "color": "#81A1C1"
1430
- }
1431
- }
1432
- }, {
1433
- "content": " ",
1434
- "props": {
1435
- "style": {
1436
- "color": "#D8DEE9FF"
1437
- }
1438
- }
1439
- }, {
1440
- "content": "default",
1441
- "props": {
1442
- "style": {
1443
- "color": "#81A1C1"
1444
- }
1445
- }
1446
- }, {
1447
- "content": " ",
1448
- "props": {
1449
- "style": {
1450
- "color": "#D8DEE9FF"
1451
- }
1452
- }
1453
- }, {
1454
- "content": "function",
1455
- "props": {
1456
- "style": {
1457
- "color": "#81A1C1"
1458
- }
1459
- }
1460
- }, {
1461
- "content": " ",
1462
- "props": {
1463
- "style": {
1464
- "color": "#D8DEE9FF"
1465
- }
1466
- }
1467
- }, {
1468
- "content": "()",
1469
- "props": {
1470
- "style": {
1471
- "color": "#ECEFF4"
1472
- }
1473
- }
1474
- }, {
1475
- "content": " ",
1476
- "props": {
1477
- "style": {
1478
- "color": "#D8DEE9FF"
1479
- }
1480
- }
1481
- }, {
1482
- "content": "{",
1483
- "props": {
1484
- "style": {
1485
- "color": "#ECEFF4"
1486
- }
1487
- }
1488
- }]
1489
- }, {
1490
- "tokens": [{
1491
- "content": " ",
1492
- "props": {
1493
- "style": {
1494
- "color": "#D8DEE9FF"
1495
- }
1496
- }
1497
- }, {
1498
- "content": "return",
1499
- "props": {
1500
- "style": {
1501
- "color": "#81A1C1"
1502
- }
1503
- }
1504
- }, {
1505
- "content": " ",
1506
- "props": {
1507
- "style": {
1508
- "color": "#D8DEE9FF"
1509
- }
1510
- }
1511
- }, {
1512
- "content": "'",
1513
- "props": {
1514
- "style": {
1515
- "color": "#ECEFF4"
1516
- }
1517
- }
1518
- }, {
1519
- "content": "hello world",
1520
- "props": {
1521
- "style": {
1522
- "color": "#A3BE8C"
1523
- }
1524
- }
1525
- }, {
1526
- "content": "'",
1527
- "props": {
1528
- "style": {
1529
- "color": "#ECEFF4"
1530
- }
1531
- }
1532
- }, {
1533
- "content": ";",
1534
- "props": {
1535
- "style": {
1536
- "color": "#81A1C1"
1537
- }
1538
- }
1539
- }]
1540
- }, {
1541
- "tokens": [{
1542
- "content": "}",
1543
- "props": {
1544
- "style": {
1545
- "color": "#ECEFF4"
1546
- }
1547
- }
1548
- }]
1549
- }],
1550
- "lang": "typescript"
1551
- },
1552
- "annotations": []
1553
- }]
1554
- }, {
1555
- "northPanel": {
1556
- "tabs": ["./src/index.ts"],
1557
- "active": "./src/index.ts",
1558
- "heightRatio": 1
1559
- },
1560
- "files": [{
1561
- "name": "./src/index.ts",
1562
- "focus": "",
1563
- "code": {
1564
- "lines": [{
1565
- "tokens": [{
1566
- "content": "export",
1567
- "props": {
1568
- "style": {
1569
- "color": "#81A1C1"
1570
- }
1571
- }
1572
- }, {
1573
- "content": " ",
1574
- "props": {
1575
- "style": {
1576
- "color": "#D8DEE9FF"
1577
- }
1578
- }
1579
- }, {
1580
- "content": "default",
1581
- "props": {
1582
- "style": {
1583
- "color": "#81A1C1"
1584
- }
1585
- }
1586
- }, {
1587
- "content": " ",
1588
- "props": {
1589
- "style": {
1590
- "color": "#D8DEE9FF"
1591
- }
1592
- }
1593
- }, {
1594
- "content": "function",
1595
- "props": {
1596
- "style": {
1597
- "color": "#81A1C1"
1598
- }
1599
- }
1600
- }, {
1601
- "content": " ",
1602
- "props": {
1603
- "style": {
1604
- "color": "#D8DEE9FF"
1605
- }
1606
- }
1607
- }, {
1608
- "content": "()",
1609
- "props": {
1610
- "style": {
1611
- "color": "#ECEFF4"
1612
- }
1613
- }
1614
- }, {
1615
- "content": " ",
1616
- "props": {
1617
- "style": {
1618
- "color": "#D8DEE9FF"
1619
- }
1620
- }
1621
- }, {
1622
- "content": "{",
1623
- "props": {
1624
- "style": {
1625
- "color": "#ECEFF4"
1626
- }
1627
- }
1628
- }]
1629
- }, {
1630
- "tokens": [{
1631
- "content": " ",
1632
- "props": {
1633
- "style": {
1634
- "color": "#D8DEE9FF"
1635
- }
1636
- }
1637
- }, {
1638
- "content": "return",
1639
- "props": {
1640
- "style": {
1641
- "color": "#81A1C1"
1642
- }
1643
- }
1644
- }, {
1645
- "content": " ",
1646
- "props": {
1647
- "style": {
1648
- "color": "#D8DEE9FF"
1649
- }
1650
- }
1651
- }, {
1652
- "content": "'",
1653
- "props": {
1654
- "style": {
1655
- "color": "#ECEFF4"
1656
- }
1657
- }
1658
- }, {
1659
- "content": "hello world",
1660
- "props": {
1661
- "style": {
1662
- "color": "#A3BE8C"
1663
- }
1664
- }
1665
- }, {
1666
- "content": "'",
1667
- "props": {
1668
- "style": {
1669
- "color": "#ECEFF4"
1670
- }
1671
- }
1672
- }, {
1673
- "content": ";",
1674
- "props": {
1675
- "style": {
1676
- "color": "#81A1C1"
1677
- }
1678
- }
1679
- }]
1680
- }, {
1681
- "tokens": [{
1682
- "content": "}",
1683
- "props": {
1684
- "style": {
1685
- "color": "#ECEFF4"
1686
- }
1687
- }
1688
- }]
1689
- }],
1690
- "lang": "typescript"
1691
- },
1692
- "annotations": []
1693
- }],
1694
- "southPanel": undefined
1695
- }, {
1696
- "northPanel": {
1697
- "tabs": ["./src/index.ts", "./tests/index.test.ts"],
1698
- "active": "./tests/index.test.ts",
1699
- "heightRatio": 1
1700
- },
1701
- "files": [{
1702
- "name": "./src/index.ts",
1703
- "focus": "",
1704
- "code": {
1705
- "lines": [{
1706
- "tokens": [{
1707
- "content": "export",
1708
- "props": {
1709
- "style": {
1710
- "color": "#81A1C1"
1711
- }
1712
- }
1713
- }, {
1714
- "content": " ",
1715
- "props": {
1716
- "style": {
1717
- "color": "#D8DEE9FF"
1718
- }
1719
- }
1720
- }, {
1721
- "content": "default",
1722
- "props": {
1723
- "style": {
1724
- "color": "#81A1C1"
1725
- }
1726
- }
1727
- }, {
1728
- "content": " ",
1729
- "props": {
1730
- "style": {
1731
- "color": "#D8DEE9FF"
1732
- }
1733
- }
1734
- }, {
1735
- "content": "function",
1736
- "props": {
1737
- "style": {
1738
- "color": "#81A1C1"
1739
- }
1740
- }
1741
- }, {
1742
- "content": " ",
1743
- "props": {
1744
- "style": {
1745
- "color": "#D8DEE9FF"
1746
- }
1747
- }
1748
- }, {
1749
- "content": "()",
1750
- "props": {
1751
- "style": {
1752
- "color": "#ECEFF4"
1753
- }
1754
- }
1755
- }, {
1756
- "content": " ",
1757
- "props": {
1758
- "style": {
1759
- "color": "#D8DEE9FF"
1760
- }
1761
- }
1762
- }, {
1763
- "content": "{",
1764
- "props": {
1765
- "style": {
1766
- "color": "#ECEFF4"
1767
- }
1768
- }
1769
- }]
1770
- }, {
1771
- "tokens": [{
1772
- "content": " ",
1773
- "props": {
1774
- "style": {
1775
- "color": "#D8DEE9FF"
1776
- }
1777
- }
1778
- }, {
1779
- "content": "return",
1780
- "props": {
1781
- "style": {
1782
- "color": "#81A1C1"
1783
- }
1784
- }
1785
- }, {
1786
- "content": " ",
1787
- "props": {
1788
- "style": {
1789
- "color": "#D8DEE9FF"
1790
- }
1791
- }
1792
- }, {
1793
- "content": "'",
1794
- "props": {
1795
- "style": {
1796
- "color": "#ECEFF4"
1797
- }
1798
- }
1799
- }, {
1800
- "content": "hello world",
1801
- "props": {
1802
- "style": {
1803
- "color": "#A3BE8C"
1804
- }
1805
- }
1806
- }, {
1807
- "content": "'",
1808
- "props": {
1809
- "style": {
1810
- "color": "#ECEFF4"
1811
- }
1812
- }
1813
- }, {
1814
- "content": ";",
1815
- "props": {
1816
- "style": {
1817
- "color": "#81A1C1"
1818
- }
1819
- }
1820
- }]
1821
- }, {
1822
- "tokens": [{
1823
- "content": "}",
1824
- "props": {
1825
- "style": {
1826
- "color": "#ECEFF4"
1827
- }
1828
- }
1829
- }]
1830
- }],
1831
- "lang": "typescript"
1832
- },
1833
- "annotations": []
1834
- }, {
1835
- "name": "./tests/index.test.ts",
1836
- "focus": "",
1837
- "code": {
1838
- "lines": [{
1839
- "tokens": [{
1840
- "content": "import",
1841
- "props": {
1842
- "style": {
1843
- "color": "#81A1C1"
1844
- }
1845
- }
1846
- }, {
1847
- "content": " ",
1848
- "props": {
1849
- "style": {
1850
- "color": "#D8DEE9FF"
1851
- }
1852
- }
1853
- }, {
1854
- "content": "main",
1855
- "props": {
1856
- "style": {
1857
- "color": "#D8DEE9"
1858
- }
1859
- }
1860
- }, {
1861
- "content": " ",
1862
- "props": {
1863
- "style": {
1864
- "color": "#D8DEE9FF"
1865
- }
1866
- }
1867
- }, {
1868
- "content": "from",
1869
- "props": {
1870
- "style": {
1871
- "color": "#81A1C1"
1872
- }
1873
- }
1874
- }, {
1875
- "content": " ",
1876
- "props": {
1877
- "style": {
1878
- "color": "#D8DEE9FF"
1879
- }
1880
- }
1881
- }, {
1882
- "content": "'",
1883
- "props": {
1884
- "style": {
1885
- "color": "#ECEFF4"
1886
- }
1887
- }
1888
- }, {
1889
- "content": "@/index",
1890
- "props": {
1891
- "style": {
1892
- "color": "#A3BE8C"
1893
- }
1894
- }
1895
- }, {
1896
- "content": "'",
1897
- "props": {
1898
- "style": {
1899
- "color": "#ECEFF4"
1900
- }
1901
- }
1902
- }, {
1903
- "content": ";",
1904
- "props": {
1905
- "style": {
1906
- "color": "#81A1C1"
1907
- }
1908
- }
1909
- }]
1910
- }, {
1911
- "tokens": []
1912
- }, {
1913
- "tokens": [{
1914
- "content": "describe",
1915
- "props": {
1916
- "style": {
1917
- "color": "#88C0D0"
1918
- }
1919
- }
1920
- }, {
1921
- "content": "(",
1922
- "props": {
1923
- "style": {
1924
- "color": "#D8DEE9FF"
1925
- }
1926
- }
1927
- }, {
1928
- "content": "'",
1929
- "props": {
1930
- "style": {
1931
- "color": "#ECEFF4"
1932
- }
1933
- }
1934
- }, {
1935
- "content": "default cases",
1936
- "props": {
1937
- "style": {
1938
- "color": "#A3BE8C"
1939
- }
1940
- }
1941
- }, {
1942
- "content": "'",
1943
- "props": {
1944
- "style": {
1945
- "color": "#ECEFF4"
1946
- }
1947
- }
1948
- }, {
1949
- "content": ",",
1950
- "props": {
1951
- "style": {
1952
- "color": "#ECEFF4"
1953
- }
1954
- }
1955
- }, {
1956
- "content": " ",
1957
- "props": {
1958
- "style": {
1959
- "color": "#D8DEE9FF"
1960
- }
1961
- }
1962
- }, {
1963
- "content": "()",
1964
- "props": {
1965
- "style": {
1966
- "color": "#ECEFF4"
1967
- }
1968
- }
1969
- }, {
1970
- "content": " ",
1971
- "props": {
1972
- "style": {
1973
- "color": "#D8DEE9FF"
1974
- }
1975
- }
1976
- }, {
1977
- "content": "=>",
1978
- "props": {
1979
- "style": {
1980
- "color": "#81A1C1"
1981
- }
1982
- }
1983
- }, {
1984
- "content": " ",
1985
- "props": {
1986
- "style": {
1987
- "color": "#D8DEE9FF"
1988
- }
1989
- }
1990
- }, {
1991
- "content": "{",
1992
- "props": {
1993
- "style": {
1994
- "color": "#ECEFF4"
1995
- }
1996
- }
1997
- }]
1998
- }, {
1999
- "tokens": [{
2000
- "content": " ",
2001
- "props": {
2002
- "style": {
2003
- "color": "#D8DEE9FF"
2004
- }
2005
- }
2006
- }, {
2007
- "content": "test",
2008
- "props": {
2009
- "style": {
2010
- "color": "#88C0D0"
2011
- }
2012
- }
2013
- }, {
2014
- "content": "(",
2015
- "props": {
2016
- "style": {
2017
- "color": "#D8DEE9FF"
2018
- }
2019
- }
2020
- }, {
2021
- "content": "'",
2022
- "props": {
2023
- "style": {
2024
- "color": "#ECEFF4"
2025
- }
2026
- }
2027
- }, {
2028
- "content": "Have returns",
2029
- "props": {
2030
- "style": {
2031
- "color": "#A3BE8C"
2032
- }
2033
- }
2034
- }, {
2035
- "content": "'",
2036
- "props": {
2037
- "style": {
2038
- "color": "#ECEFF4"
2039
- }
2040
- }
2041
- }, {
2042
- "content": ",",
2043
- "props": {
2044
- "style": {
2045
- "color": "#ECEFF4"
2046
- }
2047
- }
2048
- }, {
2049
- "content": " ",
2050
- "props": {
2051
- "style": {
2052
- "color": "#D8DEE9FF"
2053
- }
2054
- }
2055
- }, {
2056
- "content": "()",
2057
- "props": {
2058
- "style": {
2059
- "color": "#ECEFF4"
2060
- }
2061
- }
2062
- }, {
2063
- "content": " ",
2064
- "props": {
2065
- "style": {
2066
- "color": "#D8DEE9FF"
2067
- }
2068
- }
2069
- }, {
2070
- "content": "=>",
2071
- "props": {
2072
- "style": {
2073
- "color": "#81A1C1"
2074
- }
2075
- }
2076
- }, {
2077
- "content": " ",
2078
- "props": {
2079
- "style": {
2080
- "color": "#D8DEE9FF"
2081
- }
2082
- }
2083
- }, {
2084
- "content": "{",
2085
- "props": {
2086
- "style": {
2087
- "color": "#ECEFF4"
2088
- }
2089
- }
2090
- }]
2091
- }, {
2092
- "tokens": [{
2093
- "content": " ",
2094
- "props": {
2095
- "style": {
2096
- "color": "#D8DEE9FF"
2097
- }
2098
- }
2099
- }, {
2100
- "content": "const",
2101
- "props": {
2102
- "style": {
2103
- "color": "#81A1C1"
2104
- }
2105
- }
2106
- }, {
2107
- "content": " ",
2108
- "props": {
2109
- "style": {
2110
- "color": "#D8DEE9FF"
2111
- }
2112
- }
2113
- }, {
2114
- "content": "drink",
2115
- "props": {
2116
- "style": {
2117
- "color": "#D8DEE9"
2118
- }
2119
- }
2120
- }, {
2121
- "content": " ",
2122
- "props": {
2123
- "style": {
2124
- "color": "#D8DEE9FF"
2125
- }
2126
- }
2127
- }, {
2128
- "content": "=",
2129
- "props": {
2130
- "style": {
2131
- "color": "#81A1C1"
2132
- }
2133
- }
2134
- }, {
2135
- "content": " ",
2136
- "props": {
2137
- "style": {
2138
- "color": "#D8DEE9FF"
2139
- }
2140
- }
2141
- }, {
2142
- "content": "jest",
2143
- "props": {
2144
- "style": {
2145
- "color": "#D8DEE9"
2146
- }
2147
- }
2148
- }, {
2149
- "content": ".",
2150
- "props": {
2151
- "style": {
2152
- "color": "#ECEFF4"
2153
- }
2154
- }
2155
- }, {
2156
- "content": "fn",
2157
- "props": {
2158
- "style": {
2159
- "color": "#88C0D0"
2160
- }
2161
- }
2162
- }, {
2163
- "content": "(",
2164
- "props": {
2165
- "style": {
2166
- "color": "#D8DEE9FF"
2167
- }
2168
- }
2169
- }, {
2170
- "content": "main",
2171
- "props": {
2172
- "style": {
2173
- "color": "#D8DEE9"
2174
- }
2175
- }
2176
- }, {
2177
- "content": ")",
2178
- "props": {
2179
- "style": {
2180
- "color": "#D8DEE9FF"
2181
- }
2182
- }
2183
- }, {
2184
- "content": ";",
2185
- "props": {
2186
- "style": {
2187
- "color": "#81A1C1"
2188
- }
2189
- }
2190
- }]
2191
- }, {
2192
- "tokens": [{
2193
- "content": " ",
2194
- "props": {
2195
- "style": {
2196
- "color": "#D8DEE9FF"
2197
- }
2198
- }
2199
- }, {
2200
- "content": "drink",
2201
- "props": {
2202
- "style": {
2203
- "color": "#88C0D0"
2204
- }
2205
- }
2206
- }, {
2207
- "content": "()",
2208
- "props": {
2209
- "style": {
2210
- "color": "#D8DEE9FF"
2211
- }
2212
- }
2213
- }, {
2214
- "content": ";",
2215
- "props": {
2216
- "style": {
2217
- "color": "#81A1C1"
2218
- }
2219
- }
2220
- }]
2221
- }, {
2222
- "tokens": [{
2223
- "content": " ",
2224
- "props": {
2225
- "style": {
2226
- "color": "#D8DEE9FF"
2227
- }
2228
- }
2229
- }, {
2230
- "content": "expect",
2231
- "props": {
2232
- "style": {
2233
- "color": "#88C0D0"
2234
- }
2235
- }
2236
- }, {
2237
- "content": "(",
2238
- "props": {
2239
- "style": {
2240
- "color": "#D8DEE9FF"
2241
- }
2242
- }
2243
- }, {
2244
- "content": "drink",
2245
- "props": {
2246
- "style": {
2247
- "color": "#D8DEE9"
2248
- }
2249
- }
2250
- }, {
2251
- "content": ")",
2252
- "props": {
2253
- "style": {
2254
- "color": "#D8DEE9FF"
2255
- }
2256
- }
2257
- }, {
2258
- "content": ".",
2259
- "props": {
2260
- "style": {
2261
- "color": "#ECEFF4"
2262
- }
2263
- }
2264
- }, {
2265
- "content": "toHaveReturned",
2266
- "props": {
2267
- "style": {
2268
- "color": "#88C0D0"
2269
- }
2270
- }
2271
- }, {
2272
- "content": "()",
2273
- "props": {
2274
- "style": {
2275
- "color": "#D8DEE9FF"
2276
- }
2277
- }
2278
- }, {
2279
- "content": ";",
2280
- "props": {
2281
- "style": {
2282
- "color": "#81A1C1"
2283
- }
2284
- }
2285
- }]
2286
- }, {
2287
- "tokens": [{
2288
- "content": " ",
2289
- "props": {
2290
- "style": {
2291
- "color": "#D8DEE9FF"
2292
- }
2293
- }
2294
- }, {
2295
- "content": "}",
2296
- "props": {
2297
- "style": {
2298
- "color": "#ECEFF4"
2299
- }
2300
- }
2301
- }, {
2302
- "content": ")",
2303
- "props": {
2304
- "style": {
2305
- "color": "#D8DEE9FF"
2306
- }
2307
- }
2308
- }, {
2309
- "content": ";",
2310
- "props": {
2311
- "style": {
2312
- "color": "#81A1C1"
2313
- }
2314
- }
2315
- }]
2316
- }, {
2317
- "tokens": [{
2318
- "content": "}",
2319
- "props": {
2320
- "style": {
2321
- "color": "#ECEFF4"
2322
- }
2323
- }
2324
- }, {
2325
- "content": ")",
2326
- "props": {
2327
- "style": {
2328
- "color": "#D8DEE9FF"
2329
- }
2330
- }
2331
- }, {
2332
- "content": ";",
2333
- "props": {
2334
- "style": {
2335
- "color": "#81A1C1"
2336
- }
2337
- }
2338
- }]
2339
- }],
2340
- "lang": "typescript"
2341
- },
2342
- "annotations": []
2343
- }],
2344
- "southPanel": undefined
2345
- }, {
2346
- "northPanel": {
2347
- "tabs": ["./src/index.ts", ""],
2348
- "active": "",
2349
- "heightRatio": 1
2350
- },
2351
- "files": [{
2352
- "name": "./src/index.ts",
2353
- "focus": "",
2354
- "code": {
2355
- "lines": [{
2356
- "tokens": [{
2357
- "content": "export",
2358
- "props": {
2359
- "style": {
2360
- "color": "#81A1C1"
2361
- }
2362
- }
2363
- }, {
2364
- "content": " ",
2365
- "props": {
2366
- "style": {
2367
- "color": "#D8DEE9FF"
2368
- }
2369
- }
2370
- }, {
2371
- "content": "default",
2372
- "props": {
2373
- "style": {
2374
- "color": "#81A1C1"
2375
- }
2376
- }
2377
- }, {
2378
- "content": " ",
2379
- "props": {
2380
- "style": {
2381
- "color": "#D8DEE9FF"
2382
- }
2383
- }
2384
- }, {
2385
- "content": "function",
2386
- "props": {
2387
- "style": {
2388
- "color": "#81A1C1"
2389
- }
2390
- }
2391
- }, {
2392
- "content": " ",
2393
- "props": {
2394
- "style": {
2395
- "color": "#D8DEE9FF"
2396
- }
2397
- }
2398
- }, {
2399
- "content": "()",
2400
- "props": {
2401
- "style": {
2402
- "color": "#ECEFF4"
2403
- }
2404
- }
2405
- }, {
2406
- "content": " ",
2407
- "props": {
2408
- "style": {
2409
- "color": "#D8DEE9FF"
2410
- }
2411
- }
2412
- }, {
2413
- "content": "{",
2414
- "props": {
2415
- "style": {
2416
- "color": "#ECEFF4"
2417
- }
2418
- }
2419
- }]
2420
- }, {
2421
- "tokens": [{
2422
- "content": " ",
2423
- "props": {
2424
- "style": {
2425
- "color": "#D8DEE9FF"
2426
- }
2427
- }
2428
- }, {
2429
- "content": "return",
2430
- "props": {
2431
- "style": {
2432
- "color": "#81A1C1"
2433
- }
2434
- }
2435
- }, {
2436
- "content": " ",
2437
- "props": {
2438
- "style": {
2439
- "color": "#D8DEE9FF"
2440
- }
2441
- }
2442
- }, {
2443
- "content": "'",
2444
- "props": {
2445
- "style": {
2446
- "color": "#ECEFF4"
2447
- }
2448
- }
2449
- }, {
2450
- "content": "hello world",
2451
- "props": {
2452
- "style": {
2453
- "color": "#A3BE8C"
2454
- }
2455
- }
2456
- }, {
2457
- "content": "'",
2458
- "props": {
2459
- "style": {
2460
- "color": "#ECEFF4"
2461
- }
2462
- }
2463
- }, {
2464
- "content": ";",
2465
- "props": {
2466
- "style": {
2467
- "color": "#81A1C1"
2468
- }
2469
- }
2470
- }]
2471
- }, {
2472
- "tokens": [{
2473
- "content": "}",
2474
- "props": {
2475
- "style": {
2476
- "color": "#ECEFF4"
2477
- }
2478
- }
2479
- }]
2480
- }],
2481
- "lang": "typescript"
2482
- },
2483
- "annotations": []
2484
- }, {
2485
- "name": "",
2486
- "focus": "",
2487
- "code": {
2488
- "lines": [{
2489
- "tokens": [{
2490
- "content": "pnpm ",
2491
- "props": {
2492
- "style": {
2493
- "color": "#D8DEE9FF"
2494
- }
2495
- }
2496
- }, {
2497
- "content": "test",
2498
- "props": {
2499
- "style": {
2500
- "color": "#88C0D0"
2501
- }
2502
- }
2503
- }]
2504
- }, {
2505
- "tokens": [{
2506
- "content": "## or",
2507
- "props": {
2508
- "style": {
2509
- "color": "#616E88"
2510
- }
2511
- }
2512
- }]
2513
- }, {
2514
- "tokens": [{
2515
- "content": "yarn ",
2516
- "props": {
2517
- "style": {
2518
- "color": "#D8DEE9FF"
2519
- }
2520
- }
2521
- }, {
2522
- "content": "test",
2523
- "props": {
2524
- "style": {
2525
- "color": "#88C0D0"
2526
- }
2527
- }
2528
- }]
2529
- }, {
2530
- "tokens": [{
2531
- "content": "## or",
2532
- "props": {
2533
- "style": {
2534
- "color": "#616E88"
2535
- }
2536
- }
2537
- }]
2538
- }, {
2539
- "tokens": [{
2540
- "content": "npm run ",
2541
- "props": {
2542
- "style": {
2543
- "color": "#D8DEE9FF"
2544
- }
2545
- }
2546
- }, {
2547
- "content": "test",
2548
- "props": {
2549
- "style": {
2550
- "color": "#88C0D0"
2551
- }
2552
- }
2553
- }]
2554
- }],
2555
- "lang": "bash"
2556
- },
2557
- "annotations": []
2558
- }],
2559
- "southPanel": undefined
2560
- }],
2561
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
2562
- children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.CodeSlot, {})
2563
- }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
2564
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
2565
- children: "First is the code of the module."
2566
- }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.CodeSlot, {})]
2567
- }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
2568
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
2569
- children: "Then in the test file, we can do this."
2570
- }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2571
- children: ["Where ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2572
- children: "@"
2573
- }), " points to the source directory, defined in ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2574
- children: "tests/tsconfig.json"
2575
- }), " in the initialization project."]
2576
- }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.CodeSlot, {})]
2577
- }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
2578
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2579
- children: ["Finally we can execute ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2580
- children: "modern test"
2581
- }), "."]
2582
- }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.CodeSlot, {})]
2583
- })]
2584
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h3, {
2585
- id: "components",
2586
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2587
- className: "header-anchor",
2588
- "aria-hidden": "true",
2589
- href: "#components",
2590
- children: "#"
2591
- }), "Components"]
2592
- }), "\n", "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2593
- children: ["For components, Modern.js's Runtime API provides functionality for testing UI components, which is provided by ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2594
- children: "@modern-js/runtime/testing"
2595
- }), "."]
2596
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.div, {
2597
- className: "modern-directive tip",
2598
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
2599
- className: "modern-directive-title",
2600
- children: "TIP"
2601
- }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.div, {
2602
- className: "island-directive-content",
2603
- children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2604
- children: ["If you need to use the Runtime API, then you can turn it on via ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2605
- href: "/en/guide/basic/command-preview.html",
2606
- children: "microgenerator"
2607
- }), "."]
2608
- })
2609
- })]
2610
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(CH.Spotlight, {
2611
- codeConfig: chCodeConfig,
2612
- editorSteps: [{
2613
- "northPanel": {
2614
- "tabs": ["./src/index.tsx"],
2615
- "active": "./src/index.tsx",
2616
- "heightRatio": 1
2617
- },
2618
- "files": [{
2619
- "name": "./src/index.tsx",
2620
- "focus": "",
2621
- "code": {
2622
- "lines": [{
2623
- "tokens": [{
2624
- "content": "export",
2625
- "props": {
2626
- "style": {
2627
- "color": "#81A1C1"
2628
- }
2629
- }
2630
- }, {
2631
- "content": " ",
2632
- "props": {
2633
- "style": {
2634
- "color": "#D8DEE9FF"
2635
- }
2636
- }
2637
- }, {
2638
- "content": "const",
2639
- "props": {
2640
- "style": {
2641
- "color": "#81A1C1"
2642
- }
2643
- }
2644
- }, {
2645
- "content": " ",
2646
- "props": {
2647
- "style": {
2648
- "color": "#D8DEE9FF"
2649
- }
2650
- }
2651
- }, {
2652
- "content": "default",
2653
- "props": {
2654
- "style": {
2655
- "color": "#D8DEE9"
2656
- }
2657
- }
2658
- }, {
2659
- "content": " () {",
2660
- "props": {
2661
- "style": {
2662
- "color": "#D8DEE9FF"
2663
- }
2664
- }
2665
- }]
2666
- }, {
2667
- "tokens": [{
2668
- "content": " ",
2669
- "props": {
2670
- "style": {
2671
- "color": "#D8DEE9FF"
2672
- }
2673
- }
2674
- }, {
2675
- "content": "return",
2676
- "props": {
2677
- "style": {
2678
- "color": "#81A1C1"
2679
- }
2680
- }
2681
- }, {
2682
- "content": " (",
2683
- "props": {
2684
- "style": {
2685
- "color": "#D8DEE9FF"
2686
- }
2687
- }
2688
- }]
2689
- }, {
2690
- "tokens": [{
2691
- "content": " ",
2692
- "props": {
2693
- "style": {
2694
- "color": "#D8DEE9FF"
2695
- }
2696
- }
2697
- }, {
2698
- "content": "<div>",
2699
- "props": {
2700
- "style": {
2701
- "color": "#81A1C1"
2702
- }
2703
- }
2704
- }, {
2705
- "content": "This is a UI Component",
2706
- "props": {
2707
- "style": {
2708
- "color": "#D8DEE9FF"
2709
- }
2710
- }
2711
- }, {
2712
- "content": "</div>",
2713
- "props": {
2714
- "style": {
2715
- "color": "#81A1C1"
2716
- }
2717
- }
2718
- }]
2719
- }, {
2720
- "tokens": [{
2721
- "content": " )",
2722
- "props": {
2723
- "style": {
2724
- "color": "#D8DEE9FF"
2725
- }
2726
- }
2727
- }, {
2728
- "content": ";",
2729
- "props": {
2730
- "style": {
2731
- "color": "#81A1C1"
2732
- }
2733
- }
2734
- }]
2735
- }, {
2736
- "tokens": [{
2737
- "content": "}",
2738
- "props": {
2739
- "style": {
2740
- "color": "#D8DEE9FF"
2741
- }
2742
- }
2743
- }]
2744
- }],
2745
- "lang": "tsx"
2746
- },
2747
- "annotations": []
2748
- }]
2749
- }, {
2750
- "northPanel": {
2751
- "tabs": ["./src/index.tsx"],
2752
- "active": "./src/index.tsx",
2753
- "heightRatio": 1
2754
- },
2755
- "files": [{
2756
- "name": "./src/index.tsx",
2757
- "focus": "",
2758
- "code": {
2759
- "lines": [{
2760
- "tokens": [{
2761
- "content": "export",
2762
- "props": {
2763
- "style": {
2764
- "color": "#81A1C1"
2765
- }
2766
- }
2767
- }, {
2768
- "content": " ",
2769
- "props": {
2770
- "style": {
2771
- "color": "#D8DEE9FF"
2772
- }
2773
- }
2774
- }, {
2775
- "content": "const",
2776
- "props": {
2777
- "style": {
2778
- "color": "#81A1C1"
2779
- }
2780
- }
2781
- }, {
2782
- "content": " ",
2783
- "props": {
2784
- "style": {
2785
- "color": "#D8DEE9FF"
2786
- }
2787
- }
2788
- }, {
2789
- "content": "default",
2790
- "props": {
2791
- "style": {
2792
- "color": "#D8DEE9"
2793
- }
2794
- }
2795
- }, {
2796
- "content": " () {",
2797
- "props": {
2798
- "style": {
2799
- "color": "#D8DEE9FF"
2800
- }
2801
- }
2802
- }]
2803
- }, {
2804
- "tokens": [{
2805
- "content": " ",
2806
- "props": {
2807
- "style": {
2808
- "color": "#D8DEE9FF"
2809
- }
2810
- }
2811
- }, {
2812
- "content": "return",
2813
- "props": {
2814
- "style": {
2815
- "color": "#81A1C1"
2816
- }
2817
- }
2818
- }, {
2819
- "content": " (",
2820
- "props": {
2821
- "style": {
2822
- "color": "#D8DEE9FF"
2823
- }
2824
- }
2825
- }]
2826
- }, {
2827
- "tokens": [{
2828
- "content": " ",
2829
- "props": {
2830
- "style": {
2831
- "color": "#D8DEE9FF"
2832
- }
2833
- }
2834
- }, {
2835
- "content": "<div>",
2836
- "props": {
2837
- "style": {
2838
- "color": "#81A1C1"
2839
- }
2840
- }
2841
- }, {
2842
- "content": "This is a UI Component",
2843
- "props": {
2844
- "style": {
2845
- "color": "#D8DEE9FF"
2846
- }
2847
- }
2848
- }, {
2849
- "content": "</div>",
2850
- "props": {
2851
- "style": {
2852
- "color": "#81A1C1"
2853
- }
2854
- }
2855
- }]
2856
- }, {
2857
- "tokens": [{
2858
- "content": " )",
2859
- "props": {
2860
- "style": {
2861
- "color": "#D8DEE9FF"
2862
- }
2863
- }
2864
- }, {
2865
- "content": ";",
2866
- "props": {
2867
- "style": {
2868
- "color": "#81A1C1"
2869
- }
2870
- }
2871
- }]
2872
- }, {
2873
- "tokens": [{
2874
- "content": "}",
2875
- "props": {
2876
- "style": {
2877
- "color": "#D8DEE9FF"
2878
- }
2879
- }
2880
- }]
2881
- }],
2882
- "lang": "tsx"
2883
- },
2884
- "annotations": []
2885
- }],
2886
- "southPanel": undefined
2887
- }, {
2888
- "northPanel": {
2889
- "tabs": ["./src/index.tsx", "./tests/index.test.tsx"],
2890
- "active": "./tests/index.test.tsx",
2891
- "heightRatio": 1
2892
- },
2893
- "files": [{
2894
- "name": "./src/index.tsx",
2895
- "focus": "",
2896
- "code": {
2897
- "lines": [{
2898
- "tokens": [{
2899
- "content": "export",
2900
- "props": {
2901
- "style": {
2902
- "color": "#81A1C1"
2903
- }
2904
- }
2905
- }, {
2906
- "content": " ",
2907
- "props": {
2908
- "style": {
2909
- "color": "#D8DEE9FF"
2910
- }
2911
- }
2912
- }, {
2913
- "content": "const",
2914
- "props": {
2915
- "style": {
2916
- "color": "#81A1C1"
2917
- }
2918
- }
2919
- }, {
2920
- "content": " ",
2921
- "props": {
2922
- "style": {
2923
- "color": "#D8DEE9FF"
2924
- }
2925
- }
2926
- }, {
2927
- "content": "default",
2928
- "props": {
2929
- "style": {
2930
- "color": "#D8DEE9"
2931
- }
2932
- }
2933
- }, {
2934
- "content": " () {",
2935
- "props": {
2936
- "style": {
2937
- "color": "#D8DEE9FF"
2938
- }
2939
- }
2940
- }]
2941
- }, {
2942
- "tokens": [{
2943
- "content": " ",
2944
- "props": {
2945
- "style": {
2946
- "color": "#D8DEE9FF"
2947
- }
2948
- }
2949
- }, {
2950
- "content": "return",
2951
- "props": {
2952
- "style": {
2953
- "color": "#81A1C1"
2954
- }
2955
- }
2956
- }, {
2957
- "content": " (",
2958
- "props": {
2959
- "style": {
2960
- "color": "#D8DEE9FF"
2961
- }
2962
- }
2963
- }]
2964
- }, {
2965
- "tokens": [{
2966
- "content": " ",
2967
- "props": {
2968
- "style": {
2969
- "color": "#D8DEE9FF"
2970
- }
2971
- }
2972
- }, {
2973
- "content": "<div>",
2974
- "props": {
2975
- "style": {
2976
- "color": "#81A1C1"
2977
- }
2978
- }
2979
- }, {
2980
- "content": "This is a UI Component",
2981
- "props": {
2982
- "style": {
2983
- "color": "#D8DEE9FF"
2984
- }
2985
- }
2986
- }, {
2987
- "content": "</div>",
2988
- "props": {
2989
- "style": {
2990
- "color": "#81A1C1"
2991
- }
2992
- }
2993
- }]
2994
- }, {
2995
- "tokens": [{
2996
- "content": " )",
2997
- "props": {
2998
- "style": {
2999
- "color": "#D8DEE9FF"
3000
- }
3001
- }
3002
- }, {
3003
- "content": ";",
3004
- "props": {
3005
- "style": {
3006
- "color": "#81A1C1"
3007
- }
3008
- }
3009
- }]
3010
- }, {
3011
- "tokens": [{
3012
- "content": "}",
3013
- "props": {
3014
- "style": {
3015
- "color": "#D8DEE9FF"
3016
- }
3017
- }
3018
- }]
3019
- }],
3020
- "lang": "tsx"
3021
- },
3022
- "annotations": []
3023
- }, {
3024
- "name": "./tests/index.test.tsx",
3025
- "focus": "",
3026
- "code": {
3027
- "lines": [{
3028
- "tokens": [{
3029
- "content": "import",
3030
- "props": {
3031
- "style": {
3032
- "color": "#81A1C1"
3033
- }
3034
- }
3035
- }, {
3036
- "content": " ",
3037
- "props": {
3038
- "style": {
3039
- "color": "#D8DEE9FF"
3040
- }
3041
- }
3042
- }, {
3043
- "content": "{",
3044
- "props": {
3045
- "style": {
3046
- "color": "#ECEFF4"
3047
- }
3048
- }
3049
- }, {
3050
- "content": " ",
3051
- "props": {
3052
- "style": {
3053
- "color": "#D8DEE9FF"
3054
- }
3055
- }
3056
- }, {
3057
- "content": "render",
3058
- "props": {
3059
- "style": {
3060
- "color": "#D8DEE9"
3061
- }
3062
- }
3063
- }, {
3064
- "content": ",",
3065
- "props": {
3066
- "style": {
3067
- "color": "#ECEFF4"
3068
- }
3069
- }
3070
- }, {
3071
- "content": " ",
3072
- "props": {
3073
- "style": {
3074
- "color": "#D8DEE9FF"
3075
- }
3076
- }
3077
- }, {
3078
- "content": "screen",
3079
- "props": {
3080
- "style": {
3081
- "color": "#D8DEE9"
3082
- }
3083
- }
3084
- }, {
3085
- "content": " ",
3086
- "props": {
3087
- "style": {
3088
- "color": "#D8DEE9FF"
3089
- }
3090
- }
3091
- }, {
3092
- "content": "}",
3093
- "props": {
3094
- "style": {
3095
- "color": "#ECEFF4"
3096
- }
3097
- }
3098
- }, {
3099
- "content": " ",
3100
- "props": {
3101
- "style": {
3102
- "color": "#D8DEE9FF"
3103
- }
3104
- }
3105
- }, {
3106
- "content": "from",
3107
- "props": {
3108
- "style": {
3109
- "color": "#81A1C1"
3110
- }
3111
- }
3112
- }, {
3113
- "content": " ",
3114
- "props": {
3115
- "style": {
3116
- "color": "#D8DEE9FF"
3117
- }
3118
- }
3119
- }, {
3120
- "content": "'",
3121
- "props": {
3122
- "style": {
3123
- "color": "#ECEFF4"
3124
- }
3125
- }
3126
- }, {
3127
- "content": "@modern-js/runtime/testing",
3128
- "props": {
3129
- "style": {
3130
- "color": "#A3BE8C"
3131
- }
3132
- }
3133
- }, {
3134
- "content": "'",
3135
- "props": {
3136
- "style": {
3137
- "color": "#ECEFF4"
3138
- }
3139
- }
3140
- }, {
3141
- "content": ";",
3142
- "props": {
3143
- "style": {
3144
- "color": "#81A1C1"
3145
- }
3146
- }
3147
- }]
3148
- }, {
3149
- "tokens": []
3150
- }, {
3151
- "tokens": [{
3152
- "content": "import",
3153
- "props": {
3154
- "style": {
3155
- "color": "#81A1C1"
3156
- }
3157
- }
3158
- }, {
3159
- "content": " ",
3160
- "props": {
3161
- "style": {
3162
- "color": "#D8DEE9FF"
3163
- }
3164
- }
3165
- }, {
3166
- "content": "Component",
3167
- "props": {
3168
- "style": {
3169
- "color": "#D8DEE9"
3170
- }
3171
- }
3172
- }, {
3173
- "content": " ",
3174
- "props": {
3175
- "style": {
3176
- "color": "#D8DEE9FF"
3177
- }
3178
- }
3179
- }, {
3180
- "content": "from",
3181
- "props": {
3182
- "style": {
3183
- "color": "#81A1C1"
3184
- }
3185
- }
3186
- }, {
3187
- "content": " ",
3188
- "props": {
3189
- "style": {
3190
- "color": "#D8DEE9FF"
3191
- }
3192
- }
3193
- }, {
3194
- "content": "'",
3195
- "props": {
3196
- "style": {
3197
- "color": "#ECEFF4"
3198
- }
3199
- }
3200
- }, {
3201
- "content": "@/index",
3202
- "props": {
3203
- "style": {
3204
- "color": "#A3BE8C"
3205
- }
3206
- }
3207
- }, {
3208
- "content": "'",
3209
- "props": {
3210
- "style": {
3211
- "color": "#ECEFF4"
3212
- }
3213
- }
3214
- }, {
3215
- "content": ";",
3216
- "props": {
3217
- "style": {
3218
- "color": "#81A1C1"
3219
- }
3220
- }
3221
- }]
3222
- }, {
3223
- "tokens": []
3224
- }, {
3225
- "tokens": [{
3226
- "content": "describe",
3227
- "props": {
3228
- "style": {
3229
- "color": "#88C0D0"
3230
- }
3231
- }
3232
- }, {
3233
- "content": "(",
3234
- "props": {
3235
- "style": {
3236
- "color": "#D8DEE9FF"
3237
- }
3238
- }
3239
- }, {
3240
- "content": "'",
3241
- "props": {
3242
- "style": {
3243
- "color": "#ECEFF4"
3244
- }
3245
- }
3246
- }, {
3247
- "content": "default cases",
3248
- "props": {
3249
- "style": {
3250
- "color": "#A3BE8C"
3251
- }
3252
- }
3253
- }, {
3254
- "content": "'",
3255
- "props": {
3256
- "style": {
3257
- "color": "#ECEFF4"
3258
- }
3259
- }
3260
- }, {
3261
- "content": ",",
3262
- "props": {
3263
- "style": {
3264
- "color": "#ECEFF4"
3265
- }
3266
- }
3267
- }, {
3268
- "content": " ",
3269
- "props": {
3270
- "style": {
3271
- "color": "#D8DEE9FF"
3272
- }
3273
- }
3274
- }, {
3275
- "content": "()",
3276
- "props": {
3277
- "style": {
3278
- "color": "#ECEFF4"
3279
- }
3280
- }
3281
- }, {
3282
- "content": " ",
3283
- "props": {
3284
- "style": {
3285
- "color": "#D8DEE9FF"
3286
- }
3287
- }
3288
- }, {
3289
- "content": "=>",
3290
- "props": {
3291
- "style": {
3292
- "color": "#81A1C1"
3293
- }
3294
- }
3295
- }, {
3296
- "content": " ",
3297
- "props": {
3298
- "style": {
3299
- "color": "#D8DEE9FF"
3300
- }
3301
- }
3302
- }, {
3303
- "content": "{",
3304
- "props": {
3305
- "style": {
3306
- "color": "#ECEFF4"
3307
- }
3308
- }
3309
- }]
3310
- }, {
3311
- "tokens": [{
3312
- "content": " ",
3313
- "props": {
3314
- "style": {
3315
- "color": "#D8DEE9FF"
3316
- }
3317
- }
3318
- }, {
3319
- "content": "test",
3320
- "props": {
3321
- "style": {
3322
- "color": "#88C0D0"
3323
- }
3324
- }
3325
- }, {
3326
- "content": "(",
3327
- "props": {
3328
- "style": {
3329
- "color": "#D8DEE9FF"
3330
- }
3331
- }
3332
- }, {
3333
- "content": "'",
3334
- "props": {
3335
- "style": {
3336
- "color": "#ECEFF4"
3337
- }
3338
- }
3339
- }, {
3340
- "content": "Rendered",
3341
- "props": {
3342
- "style": {
3343
- "color": "#A3BE8C"
3344
- }
3345
- }
3346
- }, {
3347
- "content": "'",
3348
- "props": {
3349
- "style": {
3350
- "color": "#ECEFF4"
3351
- }
3352
- }
3353
- }, {
3354
- "content": ",",
3355
- "props": {
3356
- "style": {
3357
- "color": "#ECEFF4"
3358
- }
3359
- }
3360
- }, {
3361
- "content": " ",
3362
- "props": {
3363
- "style": {
3364
- "color": "#D8DEE9FF"
3365
- }
3366
- }
3367
- }, {
3368
- "content": "()",
3369
- "props": {
3370
- "style": {
3371
- "color": "#ECEFF4"
3372
- }
3373
- }
3374
- }, {
3375
- "content": " ",
3376
- "props": {
3377
- "style": {
3378
- "color": "#D8DEE9FF"
3379
- }
3380
- }
3381
- }, {
3382
- "content": "=>",
3383
- "props": {
3384
- "style": {
3385
- "color": "#81A1C1"
3386
- }
3387
- }
3388
- }, {
3389
- "content": " ",
3390
- "props": {
3391
- "style": {
3392
- "color": "#D8DEE9FF"
3393
- }
3394
- }
3395
- }, {
3396
- "content": "{",
3397
- "props": {
3398
- "style": {
3399
- "color": "#ECEFF4"
3400
- }
3401
- }
3402
- }]
3403
- }, {
3404
- "tokens": [{
3405
- "content": " ",
3406
- "props": {
3407
- "style": {
3408
- "color": "#D8DEE9FF"
3409
- }
3410
- }
3411
- }, {
3412
- "content": "render",
3413
- "props": {
3414
- "style": {
3415
- "color": "#88C0D0"
3416
- }
3417
- }
3418
- }, {
3419
- "content": "(",
3420
- "props": {
3421
- "style": {
3422
- "color": "#D8DEE9FF"
3423
- }
3424
- }
3425
- }, {
3426
- "content": "<",
3427
- "props": {
3428
- "style": {
3429
- "color": "#81A1C1"
3430
- }
3431
- }
3432
- }, {
3433
- "content": "Component",
3434
- "props": {
3435
- "style": {
3436
- "color": "#8FBCBB"
3437
- }
3438
- }
3439
- }, {
3440
- "content": " ",
3441
- "props": {
3442
- "style": {
3443
- "color": "#D8DEE9FF"
3444
- }
3445
- }
3446
- }, {
3447
- "content": "/>",
3448
- "props": {
3449
- "style": {
3450
- "color": "#81A1C1"
3451
- }
3452
- }
3453
- }, {
3454
- "content": ")",
3455
- "props": {
3456
- "style": {
3457
- "color": "#D8DEE9FF"
3458
- }
3459
- }
3460
- }, {
3461
- "content": ";",
3462
- "props": {
3463
- "style": {
3464
- "color": "#81A1C1"
3465
- }
3466
- }
3467
- }]
3468
- }, {
3469
- "tokens": [{
3470
- "content": " ",
3471
- "props": {
3472
- "style": {
3473
- "color": "#D8DEE9FF"
3474
- }
3475
- }
3476
- }, {
3477
- "content": "expect",
3478
- "props": {
3479
- "style": {
3480
- "color": "#88C0D0"
3481
- }
3482
- }
3483
- }, {
3484
- "content": "(",
3485
- "props": {
3486
- "style": {
3487
- "color": "#D8DEE9FF"
3488
- }
3489
- }
3490
- }, {
3491
- "content": "screen",
3492
- "props": {
3493
- "style": {
3494
- "color": "#D8DEE9"
3495
- }
3496
- }
3497
- }, {
3498
- "content": ".",
3499
- "props": {
3500
- "style": {
3501
- "color": "#ECEFF4"
3502
- }
3503
- }
3504
- }, {
3505
- "content": "getByText",
3506
- "props": {
3507
- "style": {
3508
- "color": "#88C0D0"
3509
- }
3510
- }
3511
- }, {
3512
- "content": "(",
3513
- "props": {
3514
- "style": {
3515
- "color": "#D8DEE9FF"
3516
- }
3517
- }
3518
- }, {
3519
- "content": "'",
3520
- "props": {
3521
- "style": {
3522
- "color": "#ECEFF4"
3523
- }
3524
- }
3525
- }, {
3526
- "content": "This is a UI Component",
3527
- "props": {
3528
- "style": {
3529
- "color": "#A3BE8C"
3530
- }
3531
- }
3532
- }, {
3533
- "content": "'",
3534
- "props": {
3535
- "style": {
3536
- "color": "#ECEFF4"
3537
- }
3538
- }
3539
- }, {
3540
- "content": "))",
3541
- "props": {
3542
- "style": {
3543
- "color": "#D8DEE9FF"
3544
- }
3545
- }
3546
- }, {
3547
- "content": ".",
3548
- "props": {
3549
- "style": {
3550
- "color": "#ECEFF4"
3551
- }
3552
- }
3553
- }, {
3554
- "content": "toBeInTheDocument",
3555
- "props": {
3556
- "style": {
3557
- "color": "#88C0D0"
3558
- }
3559
- }
3560
- }, {
3561
- "content": "()",
3562
- "props": {
3563
- "style": {
3564
- "color": "#D8DEE9FF"
3565
- }
3566
- }
3567
- }, {
3568
- "content": ";",
3569
- "props": {
3570
- "style": {
3571
- "color": "#81A1C1"
3572
- }
3573
- }
3574
- }]
3575
- }, {
3576
- "tokens": [{
3577
- "content": " ",
3578
- "props": {
3579
- "style": {
3580
- "color": "#D8DEE9FF"
3581
- }
3582
- }
3583
- }, {
3584
- "content": "}",
3585
- "props": {
3586
- "style": {
3587
- "color": "#ECEFF4"
3588
- }
3589
- }
3590
- }, {
3591
- "content": ")",
3592
- "props": {
3593
- "style": {
3594
- "color": "#D8DEE9FF"
3595
- }
3596
- }
3597
- }, {
3598
- "content": ";",
3599
- "props": {
3600
- "style": {
3601
- "color": "#81A1C1"
3602
- }
3603
- }
3604
- }]
3605
- }, {
3606
- "tokens": [{
3607
- "content": "}",
3608
- "props": {
3609
- "style": {
3610
- "color": "#ECEFF4"
3611
- }
3612
- }
3613
- }, {
3614
- "content": ")",
3615
- "props": {
3616
- "style": {
3617
- "color": "#D8DEE9FF"
3618
- }
3619
- }
3620
- }, {
3621
- "content": ";",
3622
- "props": {
3623
- "style": {
3624
- "color": "#81A1C1"
3625
- }
3626
- }
3627
- }]
3628
- }],
3629
- "lang": "tsx"
3630
- },
3631
- "annotations": []
3632
- }],
3633
- "southPanel": undefined
3634
- }, {
3635
- "northPanel": {
3636
- "tabs": ["./src/index.tsx", ""],
3637
- "active": "",
3638
- "heightRatio": 1
3639
- },
3640
- "files": [{
3641
- "name": "./src/index.tsx",
3642
- "focus": "",
3643
- "code": {
3644
- "lines": [{
3645
- "tokens": [{
3646
- "content": "export",
3647
- "props": {
3648
- "style": {
3649
- "color": "#81A1C1"
3650
- }
3651
- }
3652
- }, {
3653
- "content": " ",
3654
- "props": {
3655
- "style": {
3656
- "color": "#D8DEE9FF"
3657
- }
3658
- }
3659
- }, {
3660
- "content": "const",
3661
- "props": {
3662
- "style": {
3663
- "color": "#81A1C1"
3664
- }
3665
- }
3666
- }, {
3667
- "content": " ",
3668
- "props": {
3669
- "style": {
3670
- "color": "#D8DEE9FF"
3671
- }
3672
- }
3673
- }, {
3674
- "content": "default",
3675
- "props": {
3676
- "style": {
3677
- "color": "#D8DEE9"
3678
- }
3679
- }
3680
- }, {
3681
- "content": " () {",
3682
- "props": {
3683
- "style": {
3684
- "color": "#D8DEE9FF"
3685
- }
3686
- }
3687
- }]
3688
- }, {
3689
- "tokens": [{
3690
- "content": " ",
3691
- "props": {
3692
- "style": {
3693
- "color": "#D8DEE9FF"
3694
- }
3695
- }
3696
- }, {
3697
- "content": "return",
3698
- "props": {
3699
- "style": {
3700
- "color": "#81A1C1"
3701
- }
3702
- }
3703
- }, {
3704
- "content": " (",
3705
- "props": {
3706
- "style": {
3707
- "color": "#D8DEE9FF"
3708
- }
3709
- }
3710
- }]
3711
- }, {
3712
- "tokens": [{
3713
- "content": " ",
3714
- "props": {
3715
- "style": {
3716
- "color": "#D8DEE9FF"
3717
- }
3718
- }
3719
- }, {
3720
- "content": "<div>",
3721
- "props": {
3722
- "style": {
3723
- "color": "#81A1C1"
3724
- }
3725
- }
3726
- }, {
3727
- "content": "This is a UI Component",
3728
- "props": {
3729
- "style": {
3730
- "color": "#D8DEE9FF"
3731
- }
3732
- }
3733
- }, {
3734
- "content": "</div>",
3735
- "props": {
3736
- "style": {
3737
- "color": "#81A1C1"
3738
- }
3739
- }
3740
- }]
3741
- }, {
3742
- "tokens": [{
3743
- "content": " )",
3744
- "props": {
3745
- "style": {
3746
- "color": "#D8DEE9FF"
3747
- }
3748
- }
3749
- }, {
3750
- "content": ";",
3751
- "props": {
3752
- "style": {
3753
- "color": "#81A1C1"
3754
- }
3755
- }
3756
- }]
3757
- }, {
3758
- "tokens": [{
3759
- "content": "}",
3760
- "props": {
3761
- "style": {
3762
- "color": "#D8DEE9FF"
3763
- }
3764
- }
3765
- }]
3766
- }],
3767
- "lang": "tsx"
3768
- },
3769
- "annotations": []
3770
- }, {
3771
- "name": "",
3772
- "focus": "",
3773
- "code": {
3774
- "lines": [{
3775
- "tokens": [{
3776
- "content": "pnpm ",
3777
- "props": {
3778
- "style": {
3779
- "color": "#D8DEE9FF"
3780
- }
3781
- }
3782
- }, {
3783
- "content": "test",
3784
- "props": {
3785
- "style": {
3786
- "color": "#88C0D0"
3787
- }
3788
- }
3789
- }]
3790
- }, {
3791
- "tokens": [{
3792
- "content": "## or",
3793
- "props": {
3794
- "style": {
3795
- "color": "#616E88"
3796
- }
3797
- }
3798
- }]
3799
- }, {
3800
- "tokens": [{
3801
- "content": "yarn ",
3802
- "props": {
3803
- "style": {
3804
- "color": "#D8DEE9FF"
3805
- }
3806
- }
3807
- }, {
3808
- "content": "test",
3809
- "props": {
3810
- "style": {
3811
- "color": "#88C0D0"
3812
- }
3813
- }
3814
- }]
3815
- }, {
3816
- "tokens": [{
3817
- "content": "## or",
3818
- "props": {
3819
- "style": {
3820
- "color": "#616E88"
3821
- }
3822
- }
3823
- }]
3824
- }, {
3825
- "tokens": [{
3826
- "content": "npm run ",
3827
- "props": {
3828
- "style": {
3829
- "color": "#D8DEE9FF"
3830
- }
3831
- }
3832
- }, {
3833
- "content": "test",
3834
- "props": {
3835
- "style": {
3836
- "color": "#88C0D0"
3837
- }
3838
- }
3839
- }]
3840
- }],
3841
- "lang": "bash"
3842
- },
3843
- "annotations": []
3844
- }],
3845
- "southPanel": undefined
3846
- }],
3847
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
3848
- children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.CodeSlot, {})
3849
- }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
3850
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
3851
- children: "First is the code of the component."
3852
- }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.CodeSlot, {})]
3853
- }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
3854
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
3855
- children: "Then in the test file, we can do this."
3856
- }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
3857
- children: ["Where ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3858
- children: "@"
3859
- }), " points to the source directory, defined in ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3860
- children: "tests/tsconfig.json"
3861
- }), " in the initialization project."]
3862
- }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.CodeSlot, {})]
3863
- }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
3864
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
3865
- children: ["Finally we can execute ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3866
- children: "modern test"
3867
- }), "."]
3868
- }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.CodeSlot, {})]
3869
- })]
3870
- })]
3871
- });
3872
- }
3873
- function MDXContent() {
3874
- var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
3875
- var _ref = props.components || {},
3876
- MDXLayout = _ref.wrapper;
3877
- return MDXLayout ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(MDXLayout, Object.assign({}, props, {
3878
- children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_createMdxContent, props)
3879
- })) : _createMdxContent(props);
3880
- }
3881
- _c = MDXContent;
3882
- /* harmony default export */ __webpack_exports__["default"] = (MDXContent);
3883
- function _missingMdxReference(id, component, place) {
3884
- throw new Error("Expected " + (component ? "component" : "object") + " `" + id + "` to be defined: you likely forgot to import, pass, or provide it." + (place ? "\nIt’s referenced in your code at `" + place + "` in `/Users/bytedance/modern.js/website/module-tools/docs/en/guide/basic/test-your-project.mdx`" : ""));
3885
- }
3886
- var _c;
3887
- __webpack_require__.$Refresh$.register(_c, "MDXContent");
3888
-
3889
- /***/ })
3890
-
3891
- }]);
3892
- //# sourceMappingURL=en_guide_basic_test-your-project.js.map