@akanjs/test 0.0.73 → 0.0.75
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akanjs/test",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.75",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -15,8 +15,6 @@
|
|
|
15
15
|
"node": ">=22"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@nx/devkit": "20.7.2",
|
|
19
|
-
"@nx/playwright": "20.7.2",
|
|
20
18
|
"@playwright/test": "^1.51.1",
|
|
21
19
|
"@web-std/file": "^3.0.3",
|
|
22
20
|
"chance": "^1.1.12",
|
package/src/jest.config.base.js
CHANGED
|
@@ -30,7 +30,6 @@ const withBase = (name) => {
|
|
|
30
30
|
const akanjsPrefix = process.env.USE_AKANJS_PKGS === "true" ? "../../pkgs/" : "";
|
|
31
31
|
return {
|
|
32
32
|
displayName: name,
|
|
33
|
-
resolver: "@nx/jest/plugins/resolver",
|
|
34
33
|
globalSetup: `${akanjsPrefix}@akanjs/test/src/jest.globalSetup.ts`,
|
|
35
34
|
setupFilesAfterEnv: [`${akanjsPrefix}@akanjs/test/src/jest.setupFilesAfterEnv.ts`],
|
|
36
35
|
globalTeardown: `${akanjsPrefix}@akanjs/test/src/jest.globalTeardown.ts`,
|
package/src/jest.config.base.mjs
CHANGED
|
@@ -8,7 +8,6 @@ const withBase = (name) => {
|
|
|
8
8
|
const akanjsPrefix = process.env.USE_AKANJS_PKGS === "true" ? "../../pkgs/" : "";
|
|
9
9
|
return {
|
|
10
10
|
displayName: name,
|
|
11
|
-
resolver: "@nx/jest/plugins/resolver",
|
|
12
11
|
globalSetup: `${akanjsPrefix}@akanjs/test/src/jest.globalSetup.ts`,
|
|
13
12
|
setupFilesAfterEnv: [`${akanjsPrefix}@akanjs/test/src/jest.setupFilesAfterEnv.ts`],
|
|
14
13
|
globalTeardown: `${akanjsPrefix}@akanjs/test/src/jest.globalTeardown.ts`,
|
|
@@ -20,13 +20,11 @@ __export(playwright_config_base_exports, {
|
|
|
20
20
|
withBase: () => withBase
|
|
21
21
|
});
|
|
22
22
|
module.exports = __toCommonJS(playwright_config_base_exports);
|
|
23
|
-
var import_devkit = require("@nx/devkit");
|
|
24
|
-
var import_preset = require("@nx/playwright/preset");
|
|
25
23
|
var import_test = require("@playwright/test");
|
|
26
24
|
const baseURL = process.env.BASE_URL ?? "http://127.0.0.1:4200";
|
|
27
25
|
const projectName = process.env.NEXT_PUBLIC_APP_NAME ?? "unknown";
|
|
28
26
|
const withBase = (filename, config = {}) => (0, import_test.defineConfig)({
|
|
29
|
-
...
|
|
27
|
+
// ...nxE2EPreset(filename, { testDir: "./app" }),
|
|
30
28
|
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
|
|
31
29
|
use: {
|
|
32
30
|
baseURL,
|
|
@@ -37,8 +35,8 @@ const withBase = (filename, config = {}) => (0, import_test.defineConfig)({
|
|
|
37
35
|
webServer: {
|
|
38
36
|
command: `nx serve ${projectName}`,
|
|
39
37
|
url: "http://127.0.0.1:4200",
|
|
40
|
-
reuseExistingServer: !process.env.CI
|
|
41
|
-
cwd:
|
|
38
|
+
reuseExistingServer: !process.env.CI
|
|
39
|
+
// cwd: workspaceRoot,
|
|
42
40
|
},
|
|
43
41
|
projects: [
|
|
44
42
|
{
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { workspaceRoot } from "@nx/devkit";
|
|
2
|
-
import { nxE2EPreset } from "@nx/playwright/preset";
|
|
3
1
|
import { defineConfig, devices } from "@playwright/test";
|
|
4
2
|
const baseURL = process.env.BASE_URL ?? "http://127.0.0.1:4200";
|
|
5
3
|
const projectName = process.env.NEXT_PUBLIC_APP_NAME ?? "unknown";
|
|
6
4
|
const withBase = (filename, config = {}) => defineConfig({
|
|
7
|
-
...nxE2EPreset(filename, { testDir: "./app" }),
|
|
5
|
+
// ...nxE2EPreset(filename, { testDir: "./app" }),
|
|
8
6
|
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
|
|
9
7
|
use: {
|
|
10
8
|
baseURL,
|
|
@@ -15,8 +13,8 @@ const withBase = (filename, config = {}) => defineConfig({
|
|
|
15
13
|
webServer: {
|
|
16
14
|
command: `nx serve ${projectName}`,
|
|
17
15
|
url: "http://127.0.0.1:4200",
|
|
18
|
-
reuseExistingServer: !process.env.CI
|
|
19
|
-
cwd: workspaceRoot
|
|
16
|
+
reuseExistingServer: !process.env.CI
|
|
17
|
+
// cwd: workspaceRoot,
|
|
20
18
|
},
|
|
21
19
|
projects: [
|
|
22
20
|
{
|