@webex/internal-plugin-avatar 3.13.0-next.5 → 3.13.0-next.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.
- package/.repo-context.json +38 -39
- package/.sdd/manifest.json +10 -19
- package/AGENTS.md +12 -16
- package/dist/avatar.js +1 -1
- package/docs/architecture.md +4 -4
- package/docs/getting-started.md +12 -23
- package/docs/specs/README.md +1 -1
- package/package.json +12 -12
package/.repo-context.json
CHANGED
|
@@ -7,13 +7,12 @@
|
|
|
7
7
|
},
|
|
8
8
|
"commands": {
|
|
9
9
|
"install": "yarn",
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"deploy": "yarn deploy:npm"
|
|
10
|
+
"compile": "yarn workspace @webex/internal-plugin-avatar build",
|
|
11
|
+
"build": "yarn workspace @webex/internal-plugin-avatar build:src",
|
|
12
|
+
"unit-test": "yarn workspace @webex/internal-plugin-avatar test:unit",
|
|
13
|
+
"lint": "yarn workspace @webex/internal-plugin-avatar test:style",
|
|
14
|
+
"browser-test": "yarn workspace @webex/internal-plugin-avatar test:browser",
|
|
15
|
+
"deploy": "yarn workspace @webex/internal-plugin-avatar deploy:npm"
|
|
17
16
|
},
|
|
18
17
|
"public_interfaces": [
|
|
19
18
|
{
|
|
@@ -70,11 +69,11 @@
|
|
|
70
69
|
"dist"
|
|
71
70
|
],
|
|
72
71
|
"refresh_with": [
|
|
73
|
-
"yarn build:src"
|
|
72
|
+
"yarn workspace @webex/internal-plugin-avatar build:src"
|
|
74
73
|
],
|
|
75
74
|
"validate_with": [
|
|
76
|
-
"yarn test:unit",
|
|
77
|
-
"yarn test:style"
|
|
75
|
+
"yarn workspace @webex/internal-plugin-avatar test:unit",
|
|
76
|
+
"yarn workspace @webex/internal-plugin-avatar test:style"
|
|
78
77
|
]
|
|
79
78
|
},
|
|
80
79
|
{
|
|
@@ -95,7 +94,7 @@
|
|
|
95
94
|
{
|
|
96
95
|
"path": "dist",
|
|
97
96
|
"generated_from": "src",
|
|
98
|
-
"refresh_with": "yarn build:src"
|
|
97
|
+
"refresh_with": "yarn workspace @webex/internal-plugin-avatar build:src"
|
|
99
98
|
},
|
|
100
99
|
{
|
|
101
100
|
"path": "../../../.sdd/templates/repo-standards/template-map.json",
|
|
@@ -109,9 +108,9 @@
|
|
|
109
108
|
"src/**"
|
|
110
109
|
],
|
|
111
110
|
"minimum": [
|
|
112
|
-
"yarn build:src",
|
|
113
|
-
"yarn test:unit",
|
|
114
|
-
"yarn test:style"
|
|
111
|
+
"yarn workspace @webex/internal-plugin-avatar build:src",
|
|
112
|
+
"yarn workspace @webex/internal-plugin-avatar test:unit",
|
|
113
|
+
"yarn workspace @webex/internal-plugin-avatar test:style"
|
|
115
114
|
],
|
|
116
115
|
"recommended": [
|
|
117
116
|
"add or update cases in test/unit/spec/avatar.js, test/unit/spec/avatar-url-batcher.js, or test/unit/spec/avatar-url-store.js for the changed behavior"
|
|
@@ -123,9 +122,9 @@
|
|
|
123
122
|
"src/avatar-url-batcher.js"
|
|
124
123
|
],
|
|
125
124
|
"minimum": [
|
|
126
|
-
"yarn build:src",
|
|
127
|
-
"yarn test:unit",
|
|
128
|
-
"yarn test:style"
|
|
125
|
+
"yarn workspace @webex/internal-plugin-avatar build:src",
|
|
126
|
+
"yarn workspace @webex/internal-plugin-avatar test:unit",
|
|
127
|
+
"yarn workspace @webex/internal-plugin-avatar test:style"
|
|
129
128
|
],
|
|
130
129
|
"recommended": [
|
|
131
130
|
"keep the assertion that a burst of lookups sends one request (INV-002), and add a case for a partial response or an HTTP error when the batch handling changes (INV-003)"
|
|
@@ -137,9 +136,9 @@
|
|
|
137
136
|
"src/config.js"
|
|
138
137
|
],
|
|
139
138
|
"minimum": [
|
|
140
|
-
"yarn build:src",
|
|
141
|
-
"yarn test:unit",
|
|
142
|
-
"yarn test:style"
|
|
139
|
+
"yarn workspace @webex/internal-plugin-avatar build:src",
|
|
140
|
+
"yarn workspace @webex/internal-plugin-avatar test:unit",
|
|
141
|
+
"yarn workspace @webex/internal-plugin-avatar test:style"
|
|
143
142
|
],
|
|
144
143
|
"recommended": [
|
|
145
144
|
"change config.sizes and the fixed size list in AvatarUrlStore.remove together, and pin the expiry timer with sinon fake timers (INV-001)"
|
|
@@ -150,9 +149,9 @@
|
|
|
150
149
|
"src/index.js"
|
|
151
150
|
],
|
|
152
151
|
"minimum": [
|
|
153
|
-
"yarn build:src",
|
|
154
|
-
"yarn test:unit",
|
|
155
|
-
"yarn test:style"
|
|
152
|
+
"yarn workspace @webex/internal-plugin-avatar build:src",
|
|
153
|
+
"yarn workspace @webex/internal-plugin-avatar test:unit",
|
|
154
|
+
"yarn workspace @webex/internal-plugin-avatar test:style"
|
|
156
155
|
],
|
|
157
156
|
"recommended": [
|
|
158
157
|
"check the packages that register the plugin (@webex/webex-server, @webex/recipe-private-web-client) when the registered name or an import changes"
|
|
@@ -170,11 +169,11 @@
|
|
|
170
169
|
"the setAvatar upload phases and cache invalidation"
|
|
171
170
|
],
|
|
172
171
|
"refresh_with": [
|
|
173
|
-
"yarn build:src"
|
|
172
|
+
"yarn workspace @webex/internal-plugin-avatar build:src"
|
|
174
173
|
],
|
|
175
174
|
"validate_with": [
|
|
176
|
-
"yarn test:unit",
|
|
177
|
-
"yarn test:style"
|
|
175
|
+
"yarn workspace @webex/internal-plugin-avatar test:unit",
|
|
176
|
+
"yarn workspace @webex/internal-plugin-avatar test:style"
|
|
178
177
|
],
|
|
179
178
|
"avoid_direct_edits": [
|
|
180
179
|
"dist"
|
|
@@ -190,11 +189,11 @@
|
|
|
190
189
|
"response mapping, the size-substitution warning, and error fan-out"
|
|
191
190
|
],
|
|
192
191
|
"refresh_with": [
|
|
193
|
-
"yarn build:src"
|
|
192
|
+
"yarn workspace @webex/internal-plugin-avatar build:src"
|
|
194
193
|
],
|
|
195
194
|
"validate_with": [
|
|
196
|
-
"yarn test:unit",
|
|
197
|
-
"yarn test:style"
|
|
195
|
+
"yarn workspace @webex/internal-plugin-avatar test:unit",
|
|
196
|
+
"yarn workspace @webex/internal-plugin-avatar test:style"
|
|
198
197
|
],
|
|
199
198
|
"avoid_direct_edits": [
|
|
200
199
|
"dist"
|
|
@@ -212,11 +211,11 @@
|
|
|
212
211
|
"the batcher timings"
|
|
213
212
|
],
|
|
214
213
|
"refresh_with": [
|
|
215
|
-
"yarn build:src"
|
|
214
|
+
"yarn workspace @webex/internal-plugin-avatar build:src"
|
|
216
215
|
],
|
|
217
216
|
"validate_with": [
|
|
218
|
-
"yarn test:unit",
|
|
219
|
-
"yarn test:style"
|
|
217
|
+
"yarn workspace @webex/internal-plugin-avatar test:unit",
|
|
218
|
+
"yarn workspace @webex/internal-plugin-avatar test:style"
|
|
220
219
|
],
|
|
221
220
|
"avoid_direct_edits": [
|
|
222
221
|
"dist"
|
|
@@ -232,11 +231,11 @@
|
|
|
232
231
|
"the user and device plugin imports"
|
|
233
232
|
],
|
|
234
233
|
"refresh_with": [
|
|
235
|
-
"yarn build:src"
|
|
234
|
+
"yarn workspace @webex/internal-plugin-avatar build:src"
|
|
236
235
|
],
|
|
237
236
|
"validate_with": [
|
|
238
|
-
"yarn test:unit",
|
|
239
|
-
"yarn test:style"
|
|
237
|
+
"yarn workspace @webex/internal-plugin-avatar test:unit",
|
|
238
|
+
"yarn workspace @webex/internal-plugin-avatar test:style"
|
|
240
239
|
],
|
|
241
240
|
"avoid_direct_edits": [
|
|
242
241
|
"dist"
|
|
@@ -354,7 +353,7 @@
|
|
|
354
353
|
"dist"
|
|
355
354
|
],
|
|
356
355
|
"generated_from": "src",
|
|
357
|
-
"refresh_with": "yarn build:src",
|
|
356
|
+
"refresh_with": "yarn workspace @webex/internal-plugin-avatar build:src",
|
|
358
357
|
"notes": "JavaScript and source maps from webex-legacy-tools; no type declarations. Do not edit by hand."
|
|
359
358
|
},
|
|
360
359
|
{
|
|
@@ -370,19 +369,19 @@
|
|
|
370
369
|
"validation_entrypoints": [
|
|
371
370
|
{
|
|
372
371
|
"name": "compile",
|
|
373
|
-
"command": "yarn build",
|
|
372
|
+
"command": "yarn workspace @webex/internal-plugin-avatar build",
|
|
374
373
|
"scope": "src",
|
|
375
374
|
"notes": "Runs build:src."
|
|
376
375
|
},
|
|
377
376
|
{
|
|
378
377
|
"name": "unit-test",
|
|
379
|
-
"command": "yarn test:unit",
|
|
378
|
+
"command": "yarn workspace @webex/internal-plugin-avatar test:unit",
|
|
380
379
|
"scope": "test/unit/spec",
|
|
381
380
|
"notes": "Run build:src first; the specs test dist."
|
|
382
381
|
},
|
|
383
382
|
{
|
|
384
383
|
"name": "lint",
|
|
385
|
-
"command": "yarn test:style",
|
|
384
|
+
"command": "yarn workspace @webex/internal-plugin-avatar test:style",
|
|
386
385
|
"scope": "src",
|
|
387
386
|
"notes": "eslint via the local .eslintrc.js; docs/** and *.md are ignored."
|
|
388
387
|
}
|
package/.sdd/manifest.json
CHANGED
|
@@ -15,42 +15,33 @@
|
|
|
15
15
|
"source_file": "../../../.github/workflows/deploy.yml",
|
|
16
16
|
"role": "install"
|
|
17
17
|
},
|
|
18
|
-
"prebuild": {
|
|
19
|
-
"command": "yarn prebuild:modules",
|
|
20
|
-
"source_file": "../../../CONTRIBUTING.md",
|
|
21
|
-
"role": "other"
|
|
22
|
-
},
|
|
23
18
|
"compile": {
|
|
24
|
-
"command": "yarn build",
|
|
19
|
+
"command": "yarn workspace @webex/internal-plugin-avatar build",
|
|
25
20
|
"source_file": "package.json",
|
|
26
|
-
"role": "compile"
|
|
27
|
-
"verified_at": "2026-11-12T15:27:46Z"
|
|
21
|
+
"role": "compile"
|
|
28
22
|
},
|
|
29
23
|
"build": {
|
|
30
|
-
"command": "yarn build:src",
|
|
24
|
+
"command": "yarn workspace @webex/internal-plugin-avatar build:src",
|
|
31
25
|
"source_file": "package.json",
|
|
32
|
-
"role": "package"
|
|
33
|
-
"verified_at": "2026-11-12T15:27:26Z"
|
|
26
|
+
"role": "package"
|
|
34
27
|
},
|
|
35
28
|
"unit-test": {
|
|
36
|
-
"command": "yarn test:unit",
|
|
29
|
+
"command": "yarn workspace @webex/internal-plugin-avatar test:unit",
|
|
37
30
|
"source_file": "package.json",
|
|
38
|
-
"role": "unit-test"
|
|
39
|
-
"verified_at": "2026-11-12T15:27:36Z"
|
|
31
|
+
"role": "unit-test"
|
|
40
32
|
},
|
|
41
33
|
"lint": {
|
|
42
|
-
"command": "yarn test:style",
|
|
34
|
+
"command": "yarn workspace @webex/internal-plugin-avatar test:style",
|
|
43
35
|
"source_file": "package.json",
|
|
44
|
-
"role": "lint"
|
|
45
|
-
"verified_at": "2026-11-12T15:27:44Z"
|
|
36
|
+
"role": "lint"
|
|
46
37
|
},
|
|
47
38
|
"browser-test": {
|
|
48
|
-
"command": "yarn test:browser",
|
|
39
|
+
"command": "yarn workspace @webex/internal-plugin-avatar test:browser",
|
|
49
40
|
"source_file": "package.json",
|
|
50
41
|
"role": "other"
|
|
51
42
|
},
|
|
52
43
|
"deploy": {
|
|
53
|
-
"command": "yarn deploy:npm",
|
|
44
|
+
"command": "yarn workspace @webex/internal-plugin-avatar deploy:npm",
|
|
54
45
|
"source_file": "package.json",
|
|
55
46
|
"role": "deploy"
|
|
56
47
|
}
|
package/AGENTS.md
CHANGED
|
@@ -39,24 +39,23 @@ entry. It serves no HTTP, so no OpenAPI applies.
|
|
|
39
39
|
|
|
40
40
|
## 1. Commands (Run First)
|
|
41
41
|
|
|
42
|
-
Use only documented commands. Do not invent alternatives when a command is missing. Run `yarn
|
|
43
|
-
|
|
44
|
-
directory, `packages/@webex/internal-plugin-avatar`, where `package.json` defines them. From the workspace root, `yarn workspace @webex/internal-plugin-avatar <script>` runs the same script.
|
|
42
|
+
Use only documented commands. Do not invent alternatives when a command is missing. Run every command from the workspace root; package scripts run as `yarn workspace @webex/internal-plugin-avatar <script>`.
|
|
43
|
+
Fresh-checkout workspace setup (building `webex-legacy-tools` and sibling `dist/`) is owned by the workspace root; see [Prebuilding](../../../CONTRIBUTING.md#prebuilding).
|
|
45
44
|
|
|
46
45
|
| Task | Command |
|
|
47
46
|
| ---------------------- | ------- |
|
|
48
|
-
| Install dependencies | `yarn` (workspace root; the deploy workflow runs the same command)
|
|
47
|
+
| Install dependencies | `yarn` (workspace root; the deploy workflow runs the same command) |
|
|
49
48
|
| Start dev environment | N/A — library package with no start script in `package.json` |
|
|
50
|
-
| Run tests | `yarn test:unit` (after `build:src`; the specs import the package by name, so they test `dist/`) |
|
|
51
|
-
| Run linters | `yarn test:style` |
|
|
52
|
-
| Build/release artifact | `yarn build:src` (JavaScript and source maps to `dist/`) |
|
|
49
|
+
| Run tests | `yarn workspace @webex/internal-plugin-avatar test:unit` (after `build:src`; the specs import the package by name, so they test `dist/`) |
|
|
50
|
+
| Run linters | `yarn workspace @webex/internal-plugin-avatar test:style` |
|
|
51
|
+
| Build/release artifact | `yarn workspace @webex/internal-plugin-avatar build:src` (JavaScript and source maps to `dist/`) |
|
|
53
52
|
| Format code | N/A — no format script; `prettier` is a devDependency used through eslint |
|
|
54
53
|
|
|
55
|
-
`yarn build` runs `
|
|
54
|
+
`yarn workspace @webex/internal-plugin-avatar build` runs the `build:src` script and produces the same output; the package emits no type
|
|
56
55
|
declarations.
|
|
57
56
|
|
|
58
57
|
Do not use the aggregate `test` script: after lint and unit tests it calls `test:integration`, which
|
|
59
|
-
this package does not define, and exits 1. `yarn test:browser` runs `test/integration/spec` through
|
|
58
|
+
this package does not define, and exits 1. `yarn workspace @webex/internal-plugin-avatar test:browser` runs `test/integration/spec` through
|
|
60
59
|
karma but verifies nothing today; see [Getting started](docs/getting-started.md#tests) for its state.
|
|
61
60
|
|
|
62
61
|
If a required command is unknown, stop and ask for the exact command.
|
|
@@ -123,14 +122,11 @@ Definition of done:
|
|
|
123
122
|
|
|
124
123
|
## 4. Testing Workflow
|
|
125
124
|
|
|
126
|
-
Run checks in this order, from the
|
|
125
|
+
Run checks in this order, from the workspace root:
|
|
127
126
|
|
|
128
|
-
1. `yarn build:src`
|
|
129
|
-
2. `yarn test:unit`
|
|
130
|
-
3. `yarn test:style`
|
|
131
|
-
|
|
132
|
-
Run `yarn prebuild:modules` once on a fresh checkout so `webex-legacy-tools` and the sibling packages'
|
|
133
|
-
`dist/` exist.
|
|
127
|
+
1. `yarn workspace @webex/internal-plugin-avatar build:src`
|
|
128
|
+
2. `yarn workspace @webex/internal-plugin-avatar test:unit`
|
|
129
|
+
3. `yarn workspace @webex/internal-plugin-avatar test:style`
|
|
134
130
|
|
|
135
131
|
Testing rules:
|
|
136
132
|
|
package/dist/avatar.js
CHANGED
|
@@ -158,7 +158,7 @@ var Avatar = _webexCore.WebexPlugin.extend((_dec = (0, _common.oneFlight)({
|
|
|
158
158
|
return res.url;
|
|
159
159
|
});
|
|
160
160
|
},
|
|
161
|
-
version: "3.13.0-next.
|
|
161
|
+
version: "3.13.0-next.7"
|
|
162
162
|
}, (0, _applyDecoratedDescriptor2.default)(_obj, "_fetchAllAvatarUrlSizes", [_dec], (0, _getOwnPropertyDescriptor.default)(_obj, "_fetchAllAvatarUrlSizes"), _obj), (0, _applyDecoratedDescriptor2.default)(_obj, "_fetchAvatarUrl", [_dec2], (0, _getOwnPropertyDescriptor.default)(_obj, "_fetchAvatarUrl"), _obj), _obj));
|
|
163
163
|
var _default2 = exports.default = Avatar;
|
|
164
164
|
//# sourceMappingURL=avatar.js.map
|
package/docs/architecture.md
CHANGED
|
@@ -222,10 +222,10 @@ flowchart LR
|
|
|
222
222
|
|
|
223
223
|
| Command or artifact | Owner | Inputs | Output or side effect | Compatibility boundary |
|
|
224
224
|
| ------------------- | ----- | ------ | --------------------- | ---------------------- |
|
|
225
|
-
| `yarn build:src` | Package scripts | `src` | Writes `dist/` (JavaScript and source maps) through `webex-legacy-tools` | `dist/` is generated and never edited by hand |
|
|
226
|
-
| `yarn build` | Package scripts | `src` | Runs `build:src` | Same output |
|
|
227
|
-
| `yarn test:unit` | Package scripts | `test/unit/spec`, `dist/` | Jest run | Run `build:src` first |
|
|
228
|
-
| `yarn test:style` | Package scripts | `src` | ESLint run | The shared config ignores `docs/**` and `*.md` |
|
|
225
|
+
| `yarn workspace @webex/internal-plugin-avatar build:src` | Package scripts | `src` | Writes `dist/` (JavaScript and source maps) through `webex-legacy-tools` | `dist/` is generated and never edited by hand |
|
|
226
|
+
| `yarn workspace @webex/internal-plugin-avatar build` | Package scripts | `src` | Runs `build:src` | Same output |
|
|
227
|
+
| `yarn workspace @webex/internal-plugin-avatar test:unit` | Package scripts | `test/unit/spec`, `dist/` | Jest run | Run `build:src` first |
|
|
228
|
+
| `yarn workspace @webex/internal-plugin-avatar test:style` | Package scripts | `src` | ESLint run | The shared config ignores `docs/**` and `*.md` |
|
|
229
229
|
|
|
230
230
|
## Cross-repository topology
|
|
231
231
|
|
package/docs/getting-started.md
CHANGED
|
@@ -16,9 +16,7 @@ validation_status: pass
|
|
|
16
16
|
# Getting started
|
|
17
17
|
|
|
18
18
|
Onboarding for **@webex/internal-plugin-avatar**, a package inside the `webex-js-sdk` Yarn workspace.
|
|
19
|
-
Run
|
|
20
|
-
package directory, `packages/@webex/internal-plugin-avatar`, where `package.json` defines them.
|
|
21
|
-
From the workspace root, `yarn workspace @webex/internal-plugin-avatar <script>` runs the same script.
|
|
19
|
+
Run every command from the workspace root; package scripts run as `yarn workspace @webex/internal-plugin-avatar <script>`.
|
|
22
20
|
|
|
23
21
|
## Prerequisites
|
|
24
22
|
|
|
@@ -36,29 +34,20 @@ yarn
|
|
|
36
34
|
|
|
37
35
|
The workspace `deploy.yml` workflow installs with the same command.
|
|
38
36
|
|
|
39
|
-
|
|
40
|
-
`@webex/legacy-tools`, whose `webex-legacy-tools` binary runs this package's build and tests, or the
|
|
41
|
-
sibling packages' `dist/`:
|
|
42
|
-
|
|
43
|
-
```bash
|
|
44
|
-
yarn prebuild:modules
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
It runs `yarn`, then builds the tools, the legacy tools, `@webex/webex-core`, and every package, in
|
|
48
|
-
that order (root `package.json`; see the workspace `CONTRIBUTING.md` "Prebuilding").
|
|
37
|
+
Fresh-checkout workspace setup (building `webex-legacy-tools` and sibling `dist/`) is owned by the workspace root; see [Prebuilding](../../../../CONTRIBUTING.md#prebuilding).
|
|
49
38
|
|
|
50
39
|
## Build
|
|
51
40
|
|
|
52
41
|
```bash
|
|
53
|
-
yarn build:src
|
|
42
|
+
yarn workspace @webex/internal-plugin-avatar build:src
|
|
54
43
|
```
|
|
55
44
|
|
|
56
45
|
`build:src` writes JavaScript and source maps for the five source files to `dist/` through
|
|
57
|
-
`webex-legacy-tools`. `dist/` is ignored by Git. The `build` script runs `
|
|
46
|
+
`webex-legacy-tools`. `dist/` is ignored by Git. The `build` script runs `build:src`; the package
|
|
58
47
|
emits no type declarations.
|
|
59
48
|
|
|
60
49
|
```bash
|
|
61
|
-
yarn build
|
|
50
|
+
yarn workspace @webex/internal-plugin-avatar build
|
|
62
51
|
```
|
|
63
52
|
|
|
64
53
|
## Run
|
|
@@ -69,16 +58,16 @@ N/A — this is a library with no start script. Importing `@webex/internal-plugi
|
|
|
69
58
|
## Tests
|
|
70
59
|
|
|
71
60
|
```bash
|
|
72
|
-
yarn test:unit
|
|
61
|
+
yarn workspace @webex/internal-plugin-avatar test:unit
|
|
73
62
|
```
|
|
74
63
|
|
|
75
64
|
```bash
|
|
76
|
-
yarn test:style
|
|
65
|
+
yarn workspace @webex/internal-plugin-avatar test:style
|
|
77
66
|
```
|
|
78
67
|
|
|
79
68
|
| Tier | Command | Test location | Framework | External dependencies |
|
|
80
69
|
| ---- | ------- | ------------- | --------- | --------------------- |
|
|
81
|
-
| Unit | `yarn test:unit` | `test/unit/spec` | jest through `webex-legacy-tools` and `@webex/jest-config-legacy` | None; `@webex/test-helper-mock-webex` and sinon stubs |
|
|
70
|
+
| Unit | `yarn workspace @webex/internal-plugin-avatar test:unit` | `test/unit/spec` | jest through `webex-legacy-tools` and `@webex/jest-config-legacy` | None; `@webex/test-helper-mock-webex` and sinon stubs |
|
|
82
71
|
|
|
83
72
|
Run `build:src` before `test:unit`. The unit specs import `@webex/internal-plugin-avatar` by name,
|
|
84
73
|
which resolves to `dist/index.js`, so a stale build tests old code.
|
|
@@ -90,7 +79,7 @@ which resolves to `dist/index.js`, so a stale build tests old code.
|
|
|
90
79
|
- Enforcement source: N/A
|
|
91
80
|
- Test environment or QA dependencies: none for unit tests and lint
|
|
92
81
|
|
|
93
|
-
`yarn test:browser` (manifest command `browser-test`) runs `webex-legacy-tools test --integration
|
|
82
|
+
`yarn workspace @webex/internal-plugin-avatar test:browser` (manifest command `browser-test`) runs `webex-legacy-tools test --integration
|
|
94
83
|
--runner karma` over `test/integration/spec/avatar.js`, which creates two test users and registers
|
|
95
84
|
their devices but has every case commented out. On 2026-11-12 under Node 22.14 the karma bundle also
|
|
96
85
|
failed to parse `isbot` (an ES module in the workspace `node_modules`), so the run reported "0 tests
|
|
@@ -119,10 +108,10 @@ instead.
|
|
|
119
108
|
|
|
120
109
|
## First-run verification
|
|
121
110
|
|
|
122
|
-
1. Run `yarn build:src` and check that it reports
|
|
111
|
+
1. Run `yarn workspace @webex/internal-plugin-avatar build:src` and check that it reports
|
|
123
112
|
`Built internal-plugin-avatar: 5 files`.
|
|
124
|
-
2. Run `yarn test:unit`.
|
|
125
|
-
3. Run `yarn test:style`.
|
|
113
|
+
2. Run `yarn workspace @webex/internal-plugin-avatar test:unit`.
|
|
114
|
+
3. Run `yarn workspace @webex/internal-plugin-avatar test:style`.
|
|
126
115
|
|
|
127
116
|
Expected result: all three commands exit zero. The unit run reports 23 passing tests and 1 skipped in 3
|
|
128
117
|
suites. `test:style` prints warnings but no errors: 13 in `src/` (missing JSDoc in
|
package/docs/specs/README.md
CHANGED
|
@@ -50,7 +50,7 @@ Generator-side field measurement for the module is complete (100%, assessed 2026
|
|
|
50
50
|
|
|
51
51
|
| Change affects | Load and update | Verification route |
|
|
52
52
|
| -------------- | --------------- | ------------------ |
|
|
53
|
-
| Package boundaries or cross-cutting architecture | `docs/architecture.md` and applicable ADRs | `yarn build:src`, then `test:unit` and `test:style`, and the module spec |
|
|
53
|
+
| Package boundaries or cross-cutting architecture | `docs/architecture.md` and applicable ADRs | `yarn workspace @webex/internal-plugin-avatar build:src`, then `test:unit` and `test:style`, and the module spec |
|
|
54
54
|
| A stable code, package, or component boundary | `src/docs/README.md` | Build, unit tests, and lint |
|
|
55
55
|
| A public method, request path or body, store key or TTL, size list, or config default | The owning architecture section, `src/docs/README.md`, and the native definition in `src/avatar.js`, `src/avatar-url-batcher.js`, `src/avatar-url-store.js`, `src/index.js`, `src/config.js`, or `package.json` | Build, unit tests, and lint; keep the one-request assertions in `test/unit/spec/avatar.js` passing |
|
|
56
56
|
|
package/package.json
CHANGED
|
@@ -25,22 +25,22 @@
|
|
|
25
25
|
"@webex/eslint-config-legacy": "0.0.0",
|
|
26
26
|
"@webex/jest-config-legacy": "0.0.0",
|
|
27
27
|
"@webex/legacy-tools": "0.0.0",
|
|
28
|
-
"@webex/test-helper-chai": "3.13.0-next.
|
|
29
|
-
"@webex/test-helper-file": "3.13.0-next.
|
|
30
|
-
"@webex/test-helper-mocha": "3.13.0-next.
|
|
31
|
-
"@webex/test-helper-mock-webex": "3.13.0-next.
|
|
32
|
-
"@webex/test-helper-test-users": "3.13.0-next.
|
|
28
|
+
"@webex/test-helper-chai": "3.13.0-next.3",
|
|
29
|
+
"@webex/test-helper-file": "3.13.0-next.3",
|
|
30
|
+
"@webex/test-helper-mocha": "3.13.0-next.3",
|
|
31
|
+
"@webex/test-helper-mock-webex": "3.13.0-next.3",
|
|
32
|
+
"@webex/test-helper-test-users": "3.13.0-next.3",
|
|
33
33
|
"eslint": "^8.24.0",
|
|
34
34
|
"prettier": "^2.7.1",
|
|
35
35
|
"sinon": "^9.2.4"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@webex/common": "3.13.0-next.
|
|
39
|
-
"@webex/common-timers": "3.13.0-next.
|
|
40
|
-
"@webex/helper-image": "3.13.0-next.
|
|
41
|
-
"@webex/internal-plugin-device": "3.13.0-next.
|
|
42
|
-
"@webex/internal-plugin-user": "3.13.0-next.
|
|
43
|
-
"@webex/webex-core": "3.13.0-next.
|
|
38
|
+
"@webex/common": "3.13.0-next.3",
|
|
39
|
+
"@webex/common-timers": "3.13.0-next.3",
|
|
40
|
+
"@webex/helper-image": "3.13.0-next.3",
|
|
41
|
+
"@webex/internal-plugin-device": "3.13.0-next.7",
|
|
42
|
+
"@webex/internal-plugin-user": "3.13.0-next.7",
|
|
43
|
+
"@webex/webex-core": "3.13.0-next.7",
|
|
44
44
|
"lodash": "^4.17.21"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"test:style": "eslint ./src/**/*.*",
|
|
53
53
|
"test:unit": "webex-legacy-tools test --unit --runner jest"
|
|
54
54
|
},
|
|
55
|
-
"version": "3.13.0-next.
|
|
55
|
+
"version": "3.13.0-next.7"
|
|
56
56
|
}
|