@entifix/testing-e2e 0.1.0 → 0.1.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.
Files changed (2) hide show
  1. package/README.md +10 -10
  2. package/package.json +11 -12
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # @entifix/testing-e2e
2
2
 
3
- The e2e layer: one set of journeys, two profiles. Test-only — private, no build
4
- target, resolves straight to source through the `@r10c/source` condition. Depend
5
- on it as a `devDependency`.
3
+ The e2e layer: one set of journeys, two profiles. Test-only. Depend on it as a
4
+ `devDependency`; Playwright, Vitest, msw and the datastore adapters are optional
5
+ peers, needed only by the entry points that use them.
6
6
 
7
7
  ## `E2E_PROFILE`
8
8
 
@@ -12,9 +12,9 @@ on it as a `devDependency`.
12
12
  | `live` | everything, down to Mongo and RabbitMQ | yes | locally, on demand |
13
13
 
14
14
  ```sh
15
- pnpm nx e2e marketplace-admin-app-e2e # mock, the default
16
- E2E_PROFILE=live MARKETPLACE_ADMIN_SERVICE_URL=http://localhost:3101 \
17
- pnpm nx e2e marketplace-admin-app-e2e
15
+ pnpm nx e2e my-app-e2e # mock, the default
16
+ E2E_PROFILE=live MY_SERVICE_URL=http://localhost:3000 \
17
+ pnpm nx e2e my-app-e2e
18
18
  ```
19
19
 
20
20
  `mock` is the default because the default has to run anywhere. `live` never
@@ -74,7 +74,7 @@ its transport needs.
74
74
  // playwright.config.ts
75
75
  export default defineEntifixE2eConfig({
76
76
  configFile: __filename,
77
- appDir: 'apps/marketplace-admin-app',
77
+ appDir: 'apps/my-app',
78
78
  port: 3001,
79
79
  });
80
80
 
@@ -103,7 +103,7 @@ is not something each suite has to remember.
103
103
 
104
104
  ```ts
105
105
  const service = defineServiceE2e({
106
- liveUrlEnvVar: 'MARKETPLACE_ADMIN_SERVICE_URL',
106
+ liveUrlEnvVar: 'MY_SERVICE_URL',
107
107
  startMock: () => serveTestService({ name, port: 0, router, appLayer: MockAppLayer }),
108
108
  });
109
109
 
@@ -120,9 +120,9 @@ execute — what is absent is the infrastructure, not the service.
120
120
 
121
121
  ## Why the e2e targets set `NODE_OPTIONS`
122
122
 
123
- `nx.json` gives every `e2e` target `NODE_OPTIONS=--conditions=@r10c/source`.
123
+ `nx.json` gives every `e2e` target `NODE_OPTIONS=--conditions=@entifix/source`.
124
124
 
125
- Vitest applies the workspace's `@r10c/source` condition through its own
125
+ Vitest applies the workspace's `@entifix/source` condition through its own
126
126
  `resolve.conditions` (see `vitest.shared.mts`), but Playwright resolves specs
127
127
  with plain Node, which knows nothing about it — so a spec importing a workspace
128
128
  package would resolve to its `dist/` and fail with `Cannot find module …/dist/index.js`
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@entifix/testing-e2e",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
+ "description": "End-to-end testing with one set of journeys and two profiles: mocked backends by default, real infrastructure on demand.",
4
5
  "license": "MIT",
5
6
  "repository": {
6
7
  "type": "git",
@@ -48,8 +49,6 @@
48
49
  },
49
50
  "nx": {
50
51
  "tags": [
51
- "layer:entifix",
52
- "scope:shared",
53
52
  "type:testing",
54
53
  "tier:5"
55
54
  ],
@@ -72,9 +71,9 @@
72
71
  },
73
72
  "dependencies": {
74
73
  "@swc/helpers": "0.5.23",
75
- "@entifix/core": "0.1.0",
76
- "@entifix/business": "0.1.0",
77
- "@entifix/testing-unit": "0.1.0"
74
+ "@entifix/testing-unit": "0.1.2",
75
+ "@entifix/core": "0.1.2",
76
+ "@entifix/business": "0.1.2"
78
77
  },
79
78
  "peerDependencies": {
80
79
  "@nx/devkit": ">=23 <24",
@@ -84,9 +83,9 @@
84
83
  "effect": ">=3.22 <4",
85
84
  "msw": "*",
86
85
  "vitest": "*",
87
- "@entifix/amqp": "0.1.0",
88
- "@entifix/redis": "0.1.0",
89
- "@entifix/mongo": "0.1.0"
86
+ "@entifix/mongo": "0.1.2",
87
+ "@entifix/amqp": "0.1.2",
88
+ "@entifix/redis": "0.1.2"
90
89
  },
91
90
  "peerDependenciesMeta": {
92
91
  "@msw/playwright": {
@@ -124,8 +123,8 @@
124
123
  "@nx/devkit": "23.0.1",
125
124
  "@nx/playwright": "23.0.1",
126
125
  "effect": "3.22.1",
127
- "@entifix/amqp": "0.1.0",
128
- "@entifix/mongo": "0.1.0",
129
- "@entifix/redis": "0.1.0"
126
+ "@entifix/mongo": "0.1.2",
127
+ "@entifix/amqp": "0.1.2",
128
+ "@entifix/redis": "0.1.2"
130
129
  }
131
130
  }