@nocobase/test 1.0.0-alpha.6 → 1.0.0-alpha.9

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.
package/es/e2e/index.mjs CHANGED
@@ -5,7 +5,7 @@ export * from "@playwright/test";
5
5
  import _ from "lodash";
6
6
  const defineConfig = (config) => {
7
7
  return defineConfig$1({
8
- timeout: 5 * 60 * 1e3,
8
+ timeout: process.env.CI ? 60 * 1e3 : 30 * 1e3,
9
9
  expect: {
10
10
  timeout: 10 * 1e3
11
11
  },
@@ -17,7 +17,7 @@ const defineConfig = (config) => {
17
17
  fullyParallel: false,
18
18
  // Fail the build on CI if you accidentally left test.only in the source code.
19
19
  forbidOnly: !!process.env.CI,
20
- retries: 2,
20
+ retries: process.env.CI ? 2 : 0,
21
21
  // Opt out of parallel tests on CI.
22
22
  // workers: process.env.CI ? 1 : undefined,
23
23
  workers: 1,
@@ -28,7 +28,6 @@ const defineConfig = (config) => {
28
28
  use: {
29
29
  // Base URL to use in actions like `await page.goto('/')`.
30
30
  baseURL: process.env.APP_BASE_URL || `http://localhost:${process.env.APP_PORT || 2e4}`,
31
- // Collect trace when retrying the failed test.
32
31
  trace: "on-first-retry"
33
32
  },
34
33
  // Configure projects for major browsers.
@@ -33,7 +33,7 @@ module.exports = __toCommonJS(defineConfig_exports);
33
33
  var import_test = require("@playwright/test");
34
34
  const defineConfig = /* @__PURE__ */ __name((config) => {
35
35
  return (0, import_test.defineConfig)({
36
- timeout: 5 * 60 * 1e3,
36
+ timeout: process.env.CI ? 60 * 1e3 : 30 * 1e3,
37
37
  expect: {
38
38
  timeout: 10 * 1e3
39
39
  },
@@ -45,7 +45,7 @@ const defineConfig = /* @__PURE__ */ __name((config) => {
45
45
  fullyParallel: false,
46
46
  // Fail the build on CI if you accidentally left test.only in the source code.
47
47
  forbidOnly: !!process.env.CI,
48
- retries: 2,
48
+ retries: process.env.CI ? 2 : 0,
49
49
  // Opt out of parallel tests on CI.
50
50
  // workers: process.env.CI ? 1 : undefined,
51
51
  workers: 1,
@@ -56,7 +56,6 @@ const defineConfig = /* @__PURE__ */ __name((config) => {
56
56
  use: {
57
57
  // Base URL to use in actions like `await page.goto('/')`.
58
58
  baseURL: process.env.APP_BASE_URL || `http://localhost:${process.env.APP_PORT || 2e4}`,
59
- // Collect trace when retrying the failed test.
60
59
  trace: "on-first-retry"
61
60
  },
62
61
  // Configure projects for major browsers.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/test",
3
- "version": "1.0.0-alpha.6",
3
+ "version": "1.0.0-alpha.9",
4
4
  "main": "lib/index.js",
5
5
  "module": "./src/index.ts",
6
6
  "types": "./lib/index.d.ts",
@@ -51,7 +51,7 @@
51
51
  },
52
52
  "dependencies": {
53
53
  "@faker-js/faker": "8.1.0",
54
- "@nocobase/server": "1.0.0-alpha.6",
54
+ "@nocobase/server": "1.0.0-alpha.9",
55
55
  "@playwright/test": "^1.42.1",
56
56
  "@testing-library/jest-dom": "^6.4.2",
57
57
  "@testing-library/react": "^14.0.0",
@@ -76,5 +76,5 @@
76
76
  "vitest-dom": "^0.1.1",
77
77
  "ws": "^8.13.0"
78
78
  },
79
- "gitHead": "cbba77fb83a4ee114002234a15d339054b092de8"
79
+ "gitHead": "562d6ae965317098df05db756d160e03363dcec5"
80
80
  }