@modern-js/main-doc 3.1.2 → 3.1.4

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.
@@ -125,7 +125,7 @@ pnpm run reset
125
125
 
126
126
  If you've fixed a bug or added code that should be tested, then add some tests.
127
127
 
128
- You can add unit test cases in the `<PACKAGE_DIR>/tests` folder. The test syntax is based on [Jest](https://jestjs.io/) and [Rstest](https://rstest.rs/).
128
+ You can add unit test cases in the `<PACKAGE_DIR>/tests` folder. The test syntax is based on [Rstest](https://rstest.rs/).
129
129
 
130
130
  ### Run Unit Tests
131
131
 
@@ -155,7 +155,7 @@ If you need to run a specified test, you can add keywords to filter:
155
155
 
156
156
  ```sh
157
157
  # Only run test cases with the copy-assets keyword
158
- npx jest copy-assets
158
+ npx rstest copy-assets
159
159
  ```
160
160
 
161
161
  ## Linting
@@ -124,7 +124,7 @@ pnpm run reset
124
124
 
125
125
  如果你进行了 bugfix,或者添加了需要测试的代码,请添加一些测试代码。
126
126
 
127
- 你可以在 `<PACKAGE_DIR>/tests` 文件夹中添加单元测试用例。测试语法基于 [Jest](https://jestjs.io/) 和 [Rstest](https://rstest.rs/)。
127
+ 你可以在 `<PACKAGE_DIR>/tests` 文件夹中添加单元测试用例。测试语法基于 [Rstest](https://rstest.rs/)。
128
128
 
129
129
  ### 运行单元测试
130
130
 
@@ -154,7 +154,7 @@ pnpm run test:e2e
154
154
 
155
155
  ```sh
156
156
  # 只运行带有 copy-assets 关键词的测试用例
157
- npx jest copy-assets
157
+ npx rstest copy-assets
158
158
  ```
159
159
 
160
160
  ## Linting
package/package.json CHANGED
@@ -16,14 +16,14 @@
16
16
  "modern",
17
17
  "modern.js"
18
18
  ],
19
- "version": "3.1.2",
19
+ "version": "3.1.4",
20
20
  "publishConfig": {
21
21
  "registry": "https://registry.npmjs.org/",
22
22
  "access": "public"
23
23
  },
24
24
  "dependencies": {
25
25
  "mermaid": "^11.12.3",
26
- "@modern-js/sandpack-react": "3.1.2"
26
+ "@modern-js/sandpack-react": "3.1.4"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@rsbuild/plugin-sass": "1.5.0",