bk-press 0.0.6 → 0.0.7

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.
@@ -23,13 +23,11 @@ async function fixture() {
23
23
  await (0, util_1.createFolder)(commonPath);
24
24
  console.log(`创建 fixtures 文件夹: ${commonPath}`);
25
25
  }
26
- console.log("validLogList>>>", validLogList);
27
26
  validLogList.forEach(async (log) => {
28
27
  const jsonContent = log.responseBody;
29
28
  if (!jsonContent) {
30
29
  return;
31
30
  }
32
- // console.log("jsonContent>>>", jsonContent);
33
31
  const jsonString = JSON.stringify(jsonContent, null, 2);
34
32
  const isExistQuery = log.url.includes("?");
35
33
  let fileName = "";
@@ -32,7 +32,6 @@ async function init() {
32
32
  function installDependencies() {
33
33
  return new Promise((resolve, reject) => {
34
34
  const pkgTool = (0, util_1.getPkgTool)();
35
- console.log("pkgTool>>>", pkgTool);
36
35
  const installPrefix = pkgTool === "npm" ? `${pkgTool} install -D` : `${pkgTool} add -D`;
37
36
  (0, child_process_1.exec)(`${installPrefix} cypress cypress-parallel cypress-multi-reporters start-server-and-test`, {
38
37
  cwd: process.cwd(),
package/lib/index.js CHANGED
@@ -7,7 +7,7 @@ const program = new commander_1.Command();
7
7
  program
8
8
  .name("bk-press")
9
9
  .description("一个用于 Cypress 自动化测试的 CLI 工具,提供了快速初始化测试环境、并行运行自动化测试、生成 fixture 拦截数据、生成 Cypress 测试脚本等强大功能。")
10
- .version("0.0.5");
10
+ .version("0.0.7");
11
11
  program
12
12
  .command("init")
13
13
  .description("初始化 Cypress 自动化测试环境")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bk-press",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "一个用于 Cypress 自动化测试的 CLI 工具,提供了快速初始化测试环境、并行运行自动化测试、生成 fixture 拦截数据、生成 Cypress 测试脚本等强大功能。",
5
5
  "main": "lib/index.js",
6
6
  "bin": {
package/src/index.ts CHANGED
@@ -10,7 +10,7 @@ program
10
10
  .description(
11
11
  "一个用于 Cypress 自动化测试的 CLI 工具,提供了快速初始化测试环境、并行运行自动化测试、生成 fixture 拦截数据、生成 Cypress 测试脚本等强大功能。",
12
12
  )
13
- .version("0.0.5");
13
+ .version("0.0.7");
14
14
 
15
15
  program
16
16
  .command("init")