@modern-js/main-doc 2.54.1 → 2.54.2

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.
@@ -145,7 +145,6 @@ $ npx modern new
145
145
  Enable BFF
146
146
  Enable SSG
147
147
  Enable Micro Frontend
148
- Enable Unit Test / Integration Test
149
148
  ```
150
149
 
151
150
  :::tip
@@ -38,7 +38,6 @@ $ npx modern new
38
38
  ❯ Enable BFF
39
39
  Enable SSG
40
40
  Enable Micro Frontend
41
- Enable Unit Test / Integration Test
42
41
  ```
43
42
 
44
43
  After the selection is completed, the Modern.js generator will automatically install the corresponding plugins and third-party dependencies. Upon completion of the installation, you will see:
@@ -60,8 +60,6 @@ Options:
60
60
 
61
61
  - Enable Micro Frontend -- micro_frontend
62
62
 
63
- - Enable Unit Test / Integration Test -- test
64
-
65
63
  - Enable UA-based Polyfill Feature -- polyfill
66
64
 
67
65
  - Enable Global Proxy -- proxy
@@ -110,8 +108,6 @@ Question: Please select the feature name.
110
108
 
111
109
  Options:
112
110
 
113
- - Enable Unit Test / Integration Test -- test
114
-
115
111
  - Enable Tailwind CSS -- tailwindcss
116
112
 
117
113
  - Enable Storybook -- storybook
@@ -144,7 +144,6 @@ $ npx modern new
144
144
  ❯ 启用 「Tailwind CSS」 支持
145
145
  启用「BFF」功能
146
146
  启用「微前端」模式
147
- 启用「单元测试 / 集成测试」功能
148
147
  ```
149
148
 
150
149
  :::tip
@@ -185,7 +185,6 @@ Modern.js Module 的核心能力包括:
185
185
 
186
186
  - **构建能力**:基于 esbuild 实现的构建工具,提供类型生成能力,能够高度定制构建产物。
187
187
  - **调试能力**:基于 Storybook 调试项目,可以测试代码功能、验证构建产物可用性。
188
- - **测试能力**:集成 Jest 测试能力,能够开箱即用地编写你的测试代码。
189
188
  - **版本管理能力**:基于 Changeset 提供版本管理命令,涵盖从开发到发布的过程。
190
189
  - **扩展能力**:提供包含丰富 Hooks 的插件机制,支持扩展调试能力,或对流程进行自定义。
191
190
 
@@ -37,7 +37,6 @@ $ npx modern new
37
37
  启用 「Tailwind CSS」 支持
38
38
  ❯ 启用「BFF」功能
39
39
  启用「微前端」模式
40
- 启用「单元测试 / 集成测试」功能
41
40
  ```
42
41
 
43
42
  完成选择后,Modern.js 生成器会自动安装对应的插件和三方依赖,安装完成后可以看到:
package/package.json CHANGED
@@ -15,17 +15,17 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.54.1",
18
+ "version": "2.54.2",
19
19
  "publishConfig": {
20
20
  "registry": "https://registry.npmjs.org/",
21
21
  "access": "public",
22
22
  "provenance": true
23
23
  },
24
24
  "dependencies": {
25
- "@modern-js/sandpack-react": "2.54.1"
25
+ "@modern-js/sandpack-react": "2.54.2"
26
26
  },
27
27
  "peerDependencies": {
28
- "@modern-js/builder-doc": "^2.54.1"
28
+ "@modern-js/builder-doc": "^2.54.2"
29
29
  },
30
30
  "devDependencies": {
31
31
  "classnames": "^2",
@@ -39,8 +39,8 @@
39
39
  "@rspress/shared": "1.18.2",
40
40
  "@types/node": "^16",
41
41
  "@types/fs-extra": "9.0.13",
42
- "@modern-js/builder-doc": "2.54.1",
43
- "@modern-js/doc-plugin-auto-sidebar": "2.54.1"
42
+ "@modern-js/builder-doc": "2.54.2",
43
+ "@modern-js/doc-plugin-auto-sidebar": "2.54.2"
44
44
  },
45
45
  "scripts": {
46
46
  "dev": "rspress dev",
@@ -1,13 +0,0 @@
1
- ---
2
- title: test.[tj]s
3
- sidebar_position: 4
4
- ---
5
-
6
- # test.[tj]s
7
-
8
- App's BFF test file, support for writing test cases in the `api/` directory which file with suffix `.test.[tj]s`.
9
-
10
- :::info
11
- To use unit test and integration test, you need to execute the `new` command in advance to enable the `unit test/integration test`.
12
-
13
- :::
@@ -1,15 +0,0 @@
1
- ---
2
- title: test.[tj]s
3
- sidebar_position: 2
4
- ---
5
-
6
- # test.[tj]s
7
-
8
- Custom Web Server test directory.
9
-
10
- The application supports testing custom Web Server. You can directly create files with the suffix `.test.[tj]s` under the `server/` directory of the project to write test cases.
11
-
12
- :::info
13
- Enabling unit testing and integration testing requires running the `new` command to enable the "Unit Testing/Integration Testing" function under the project first.
14
-
15
- :::
@@ -1,15 +0,0 @@
1
- ---
2
- title: '**/*.test.[tj]sx?'
3
- sidebar_position: 6
4
- ---
5
-
6
- # **/*.test.[tj]sx?
7
-
8
- Application project test files.
9
-
10
- The application project supports creating files with the suffix `.test.[tj]sx?` in the project source code directory (`src`) to write test cases.
11
-
12
- :::info
13
- To use unit testing and integration testing, you need to enable the "Unit Testing / Integration Testing" feature by running the `new` command in the project first.
14
-
15
- :::
@@ -1,12 +0,0 @@
1
- ---
2
- title: test.[tj]s
3
- sidebar_position: 4
4
- ---
5
- # test.[tj]s
6
-
7
- The BFF test file of the application supports writing test cases in files with the suffix `.test.[tj]sx?` under the `api/` directory.
8
-
9
- :::info
10
- Enabling unit testing and integration testing requires running the new command to enable the "Unit Testing/Integration Testing" function under the project first.
11
-
12
- :::
@@ -1,14 +0,0 @@
1
- ---
2
- title: test.[tj]s
3
- sidebar_position: 2
4
- ---
5
- # test.[tj]s
6
-
7
- 自定义 Web Server 测试目录。
8
-
9
- 应用支持对自定义 Web Server 逻辑进行测试,可直接在项目 `server/` 目录下创建后缀为 `.test.[tj]s` 文件进行编写测试用例。
10
-
11
- :::info
12
- 使用单元测试、集成测试需要提前在项目下执行 new 命令启用「单元测试 / 集成测试」功能。
13
-
14
- :::
@@ -1,14 +0,0 @@
1
- ---
2
- title: '**/*.test.[tj]sx?'
3
- sidebar_position: 6
4
- ---
5
- # **/*.test.[tj]sx?
6
-
7
- 应用项目测试文件。
8
-
9
- 应用项目支持在项目源码目录(src)下创建后缀为 `.test.[tj]sx?` 文件进行编写测试用例。
10
-
11
- :::info
12
- 使用单元测试、集成测试需要提前在项目下执行 new 命令启用「单元测试 / 集成测试」功能。
13
-
14
- :::