$ date
--- stdout ---
Tue Aug 19 01:07:17 UTC 2025
--- end ---
$ git clone file:///srv/git/mediawiki-extensions-CommunityConfiguration.git repo --depth=1 -b master
--- stderr ---
Cloning into 'repo'...
--- stdout ---
--- end ---
$ git config user.name libraryupgrader
--- stdout ---
--- end ---
$ git config user.email tools.libraryupgrader@tools.wmflabs.org
--- stdout ---
--- end ---
$ git submodule update --init
--- stdout ---
--- end ---
$ grr init
--- stdout ---
Installed commit-msg hook.
--- end ---
$ git show-ref refs/heads/master
--- stdout ---
eff6c3068891b95bdc6b66ace7f1ba4330e084a8 refs/heads/master
--- end ---
$ /usr/bin/npm audit --json
--- stdout ---
{
"auditReportVersion": 2,
"vulnerabilities": {
"tmp": {
"name": "tmp",
"severity": "low",
"isDirect": false,
"via": [
{
"source": 1106849,
"name": "tmp",
"dependency": "tmp",
"title": "tmp allows arbitrary temporary file / directory write via symbolic link `dir` parameter",
"url": "https://github.com/advisories/GHSA-52f5-9888-hmc6",
"severity": "low",
"cwe": [
"CWE-59"
],
"cvss": {
"score": 2.5,
"vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N"
},
"range": "<=0.2.3"
}
],
"effects": [],
"range": "<=0.2.3",
"nodes": [
"node_modules/tmp"
],
"fixAvailable": true
}
},
"metadata": {
"vulnerabilities": {
"info": 0,
"low": 1,
"moderate": 0,
"high": 0,
"critical": 0,
"total": 1
},
"dependencies": {
"prod": 1,
"dev": 1203,
"optional": 4,
"peer": 2,
"peerOptional": 0,
"total": 1203
}
}
}
--- end ---
$ /usr/bin/composer install
--- stderr ---
No composer.lock file present. Updating dependencies to latest instead of installing from lock file. See https://getcomposer.org/install for more information.
Loading composer repositories with package information
Updating dependencies
Lock file operations: 39 installs, 0 updates, 0 removals
- Locking composer/pcre (3.3.2)
- Locking composer/semver (3.4.3)
- Locking composer/spdx-licenses (1.5.9)
- Locking composer/xdebug-handler (3.0.5)
- Locking dealerdirect/phpcodesniffer-composer-installer (v1.1.2)
- Locking doctrine/deprecations (1.1.5)
- Locking felixfbecker/advanced-json-rpc (v3.2.1)
- Locking justinrainbow/json-schema (5.3.0)
- Locking mediawiki/mediawiki-codesniffer (v47.0.0)
- Locking mediawiki/mediawiki-phan-config (0.17.0)
- Locking mediawiki/minus-x (1.1.3)
- Locking mediawiki/phan-taint-check-plugin (7.0.0)
- Locking microsoft/tolerant-php-parser (v0.1.2)
- Locking netresearch/jsonmapper (v4.5.0)
- Locking phan/phan (5.5.1)
- Locking php-parallel-lint/php-console-color (v1.0.1)
- Locking php-parallel-lint/php-console-highlighter (v1.0.0)
- Locking php-parallel-lint/php-parallel-lint (v1.4.0)
- Locking phpcsstandards/phpcsextra (1.2.1)
- Locking phpcsstandards/phpcsutils (1.0.12)
- Locking phpdocumentor/reflection-common (2.2.0)
- Locking phpdocumentor/reflection-docblock (5.6.3)
- Locking phpdocumentor/type-resolver (1.10.0)
- Locking phpstan/phpdoc-parser (2.2.0)
- Locking psr/container (2.0.2)
- Locking psr/log (3.0.2)
- Locking sabre/event (5.1.7)
- Locking squizlabs/php_codesniffer (3.12.2)
- Locking symfony/console (v7.3.2)
- Locking symfony/deprecation-contracts (v3.6.0)
- Locking symfony/polyfill-ctype (v1.32.0)
- Locking symfony/polyfill-intl-grapheme (v1.32.0)
- Locking symfony/polyfill-intl-normalizer (v1.32.0)
- Locking symfony/polyfill-mbstring (v1.32.0)
- Locking symfony/polyfill-php80 (v1.32.0)
- Locking symfony/service-contracts (v3.6.0)
- Locking symfony/string (v7.3.2)
- Locking tysonandre/var_representation_polyfill (0.1.3)
- Locking webmozart/assert (1.11.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 39 installs, 0 updates, 0 removals
0 [>---------------------------] 0 [->--------------------------]
- Installing squizlabs/php_codesniffer (3.12.2): Extracting archive
- Installing dealerdirect/phpcodesniffer-composer-installer (v1.1.2): Extracting archive
- Installing composer/pcre (3.3.2): Extracting archive
- Installing justinrainbow/json-schema (5.3.0): Extracting archive
- Installing symfony/polyfill-php80 (v1.32.0): Extracting archive
- Installing phpcsstandards/phpcsutils (1.0.12): Extracting archive
- Installing phpcsstandards/phpcsextra (1.2.1): Extracting archive
- Installing symfony/polyfill-mbstring (v1.32.0): Extracting archive
- Installing composer/spdx-licenses (1.5.9): Extracting archive
- Installing composer/semver (3.4.3): Extracting archive
- Installing mediawiki/mediawiki-codesniffer (v47.0.0): Extracting archive
- Installing tysonandre/var_representation_polyfill (0.1.3): Extracting archive
- Installing symfony/polyfill-intl-normalizer (v1.32.0): Extracting archive
- Installing symfony/polyfill-intl-grapheme (v1.32.0): Extracting archive
- Installing symfony/polyfill-ctype (v1.32.0): Extracting archive
- Installing symfony/string (v7.3.2): Extracting archive
- Installing symfony/deprecation-contracts (v3.6.0): Extracting archive
- Installing psr/container (2.0.2): Extracting archive
- Installing symfony/service-contracts (v3.6.0): Extracting archive
- Installing symfony/console (v7.3.2): Extracting archive
- Installing sabre/event (5.1.7): Extracting archive
- Installing netresearch/jsonmapper (v4.5.0): Extracting archive
- Installing microsoft/tolerant-php-parser (v0.1.2): Extracting archive
- Installing webmozart/assert (1.11.0): Extracting archive
- Installing phpstan/phpdoc-parser (2.2.0): Extracting archive
- Installing phpdocumentor/reflection-common (2.2.0): Extracting archive
- Installing doctrine/deprecations (1.1.5): Extracting archive
- Installing phpdocumentor/type-resolver (1.10.0): Extracting archive
- Installing phpdocumentor/reflection-docblock (5.6.3): Extracting archive
- Installing felixfbecker/advanced-json-rpc (v3.2.1): Extracting archive
- Installing psr/log (3.0.2): Extracting archive
- Installing composer/xdebug-handler (3.0.5): Extracting archive
- Installing phan/phan (5.5.1): Extracting archive
- Installing mediawiki/phan-taint-check-plugin (7.0.0): Extracting archive
- Installing mediawiki/mediawiki-phan-config (0.17.0): Extracting archive
- Installing mediawiki/minus-x (1.1.3): Extracting archive
- Installing php-parallel-lint/php-console-color (v1.0.1): Extracting archive
- Installing php-parallel-lint/php-console-highlighter (v1.0.0): Extracting archive
- Installing php-parallel-lint/php-parallel-lint (v1.4.0): Extracting archive
0/37 [>---------------------------] 0%
20/37 [===============>------------] 54%
26/37 [===================>--------] 70%
36/37 [===========================>] 97%
37/37 [============================] 100%
1 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating autoload files
17 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
--- stdout ---
PHP CodeSniffer Config installed_paths set to ../../mediawiki/mediawiki-codesniffer,../../phpcsstandards/phpcsextra,../../phpcsstandards/phpcsutils
--- end ---
Upgrading n:@wikimedia/codex from 2.0.0-rc.1 -> 2.2.1
$ /usr/bin/npm install
--- stderr ---
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@wikimedia/codex@2.2.1',
npm WARN EBADENGINE required: { npm: '>=10.8.1', node: '>=20' },
npm WARN EBADENGINE current: { node: 'v18.19.0', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@wikimedia/codex-icons@2.2.1',
npm WARN EBADENGINE required: { npm: '>=10.8.1', node: '>=20' },
npm WARN EBADENGINE current: { node: 'v18.19.0', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm WARN deprecated @humanwhocodes/config-array@0.11.14: Use @eslint/config-array instead
npm WARN deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm WARN deprecated abab@2.0.6: Use your platform's native atob() and btoa() methods instead
npm WARN deprecated supertest@7.1.0: Please upgrade to supertest v7.1.3+, see release notes at https://github.com/forwardemail/supertest/releases/tag/v7.1.3 - maintenance is supported by Forward Email @ https://forwardemail.net
npm WARN deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm WARN deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead
npm WARN deprecated domexception@4.0.0: Use your platform's native DOMException instead
npm WARN deprecated superagent@9.0.2: Please upgrade to superagent v10.2.2+, see release notes at https://github.com/forwardemail/superagent/releases/tag/v10.2.2 - maintenance is supported by Forward Email @ https://forwardemail.net
npm WARN deprecated eslint@8.57.0: This version is no longer supported. Please see https://eslint.org/version-support for other options.
--- stdout ---
added 1203 packages, and audited 1204 packages in 32s
230 packages are looking for funding
run `npm fund` for details
1 low severity vulnerability
To address all issues, run:
npm audit fix
Run `npm audit` for details.
--- end ---
$ package-lock-lint package-lock.json
--- stdout ---
Checking package-lock.json
--- end ---
$ /usr/bin/npm ci
--- stderr ---
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@wikimedia/codex@2.2.1',
npm WARN EBADENGINE required: { node: '>=20', npm: '>=10.8.1' },
npm WARN EBADENGINE current: { node: 'v18.19.0', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@wikimedia/codex-icons@2.2.1',
npm WARN EBADENGINE required: { node: '>=20', npm: '>=10.8.1' },
npm WARN EBADENGINE current: { node: 'v18.19.0', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm WARN deprecated @humanwhocodes/config-array@0.11.14: Use @eslint/config-array instead
npm WARN deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm WARN deprecated abab@2.0.6: Use your platform's native atob() and btoa() methods instead
npm WARN deprecated supertest@7.1.0: Please upgrade to supertest v7.1.3+, see release notes at https://github.com/forwardemail/supertest/releases/tag/v7.1.3 - maintenance is supported by Forward Email @ https://forwardemail.net
npm WARN deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm WARN deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead
npm WARN deprecated domexception@4.0.0: Use your platform's native DOMException instead
npm WARN deprecated superagent@9.0.2: Please upgrade to superagent v10.2.2+, see release notes at https://github.com/forwardemail/superagent/releases/tag/v10.2.2 - maintenance is supported by Forward Email @ https://forwardemail.net
npm WARN deprecated eslint@8.57.0: This version is no longer supported. Please see https://eslint.org/version-support for other options.
--- stdout ---
added 1203 packages, and audited 1204 packages in 24s
230 packages are looking for funding
run `npm fund` for details
1 low severity vulnerability
To address all issues, run:
npm audit fix
Run `npm audit` for details.
--- end ---
$ /usr/bin/npm test
--- stderr ---
PASS resources/ext.communityConfiguration.Editor/lib/json-form/core/__tests__/i18n.test.js
PASS resources/ext.communityConfiguration.Editor/lib/json-form/form/composables/useValidationErrors.test.js
PASS resources/ext.communityConfiguration.Editor/lib/json-form/controls-codex/src/mediawiki/PageTitleControl.test.js
PASS resources/ext.communityConfiguration.Editor/lib/json-form/controls-codex/src/complex/ArrayControl.test.js
PASS resources/ext.communityConfiguration.Editor/lib/json-form/core/__tests__/uischema.test.js
PASS resources/ext.communityConfiguration.Editor/lib/json-form/controls-codex/src/controls/StringControl.test.js
FAIL resources/ext.communityConfiguration.Editor/app/App.test.js
● submit results › shows a success message if submitting was successful
Expected test not to call console.warn().
If the warn is expected, test for it explicitly by mocking it out using jest.spyOn(console, 'warn').mockImplementation() and test that the warning occurs.
[CdxMessage]: The boolean `allowUserDismiss` prop is required to show the dismiss button.
Refer to https://doc.wikimedia.org/codex/latest/components/demos/message.html#props.
at console.captureMessage [as warn] (/src/repo/node_modules/jest-fail-on-console/index.js:83:25)
at validator (/src/repo/node_modules/@wikimedia/codex/dist/codex.cjs:9:89194)
at validateProp (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4367:21)
at validateProps (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4335:5)
at initProps (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4036:5)
at setupComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7807:3)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5159:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at patchBlockChildren (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5008:7)
at processFragment (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5086:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4628:9)
at patchBlockChildren (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5008:7)
at patchElement (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4926:7)
at processElement (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4785:7)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4642:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5349:9)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at ReactiveEffect.runIfDirty (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:267:12)
at callWithErrorHandling (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:200:33)
at flushJobs (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:405:9)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Object.<anonymous> (/src/repo/resources/ext.communityConfiguration.Editor/app/App.test.js:115:3)
[Vue warn]: Invalid prop: custom validator check failed for prop "dismissButtonLabel".
at <CdxMessage dismiss-button-label="communityconfiguration-editor-message-dismiss-button-label" type="success" fade-in=true ... >
at <EditorMessage status="success" is-dismissable=true class="ext-communityConfiguration-FooterMessage" >
at <SuccessMessage key=0 class="ext-communityConfiguration-FooterMessage" >
at <JsonForm config= {} data= {} renderers= [
{
renderer: {
name: 'BooleanControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'StringControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'NumberControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'MultiselectEnumControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'EnumControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'ChipStringsControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'ObjectControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'ArrayControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'PageTitleControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'PageTitlesControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'NamespacesControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'CommonsFileControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
}
] ... >
at <App ref="VTU_COMPONENT" >
at <VTUROOT>
at console.captureMessage [as warn] (/src/repo/node_modules/jest-fail-on-console/index.js:83:25)
at warn$1 (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:53:13)
at validateProp (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4368:5)
at validateProps (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4335:5)
at initProps (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4036:5)
at setupComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7807:3)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5159:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at patchBlockChildren (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5008:7)
at processFragment (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5086:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4628:9)
at patchBlockChildren (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5008:7)
at patchElement (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4926:7)
at processElement (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4785:7)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4642:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5349:9)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at ReactiveEffect.runIfDirty (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:267:12)
at callWithErrorHandling (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:200:33)
at flushJobs (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:405:9)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Object.<anonymous> (/src/repo/resources/ext.communityConfiguration.Editor/app/App.test.js:115:3)
at flushUnexpectedConsoleCalls (node_modules/jest-fail-on-console/index.js:48:13)
at Object.<anonymous> (node_modules/jest-fail-on-console/index.js:145:7)
● submit results › shows a generic error if there is an internal server error
Expected test not to call console.warn().
If the warn is expected, test for it explicitly by mocking it out using jest.spyOn(console, 'warn').mockImplementation() and test that the warning occurs.
[CdxMessage]: The boolean `allowUserDismiss` prop is required to show the dismiss button.
Refer to https://doc.wikimedia.org/codex/latest/components/demos/message.html#props.
at console.captureMessage [as warn] (/src/repo/node_modules/jest-fail-on-console/index.js:83:25)
at validator (/src/repo/node_modules/@wikimedia/codex/dist/codex.cjs:9:89194)
at validateProp (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4367:21)
at validateProps (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4335:5)
at initProps (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4036:5)
at setupComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7807:3)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5159:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at patchBlockChildren (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5008:7)
at processFragment (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5086:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4628:9)
at patchBlockChildren (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5008:7)
at patchElement (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4926:7)
at processElement (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4785:7)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4642:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5349:9)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at ReactiveEffect.runIfDirty (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:267:12)
at callWithErrorHandling (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:200:33)
at flushJobs (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:405:9)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Object.<anonymous> (/src/repo/resources/ext.communityConfiguration.Editor/app/App.test.js:152:3)
[Vue warn]: Invalid prop: custom validator check failed for prop "dismissButtonLabel".
at <CdxMessage dismiss-button-label="communityconfiguration-editor-message-dismiss-button-label" type="error" fade-in=true ... >
at <EditorMessage status="error" is-dismissable=true class="ext-communityConfiguration-FooterMessage" >
at <GenericSubmitErrorMessage key=0 errorResponse= {
errors: [
{
code: 'internal_api_error_RuntimeException',
html: '[183c02467dd6df6e8690dc68] Exception caught: Did not work',
data: [Object]
}
],
trace: 'Trace'
} errorCode="internal_api_error_RuntimeException" ... >
at <JsonForm config= {} data= {} renderers= [
{
renderer: {
name: 'BooleanControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'StringControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'NumberControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'MultiselectEnumControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'EnumControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'ChipStringsControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'ObjectControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'ArrayControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'PageTitleControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'PageTitlesControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'NamespacesControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'CommonsFileControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
}
] ... >
at <App ref="VTU_COMPONENT" >
at <VTUROOT>
at console.captureMessage [as warn] (/src/repo/node_modules/jest-fail-on-console/index.js:83:25)
at warn$1 (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:53:13)
at validateProp (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4368:5)
at validateProps (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4335:5)
at initProps (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4036:5)
at setupComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7807:3)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5159:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at patchBlockChildren (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5008:7)
at processFragment (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5086:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4628:9)
at patchBlockChildren (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5008:7)
at patchElement (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4926:7)
at processElement (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4785:7)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4642:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5349:9)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at ReactiveEffect.runIfDirty (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:267:12)
at callWithErrorHandling (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:200:33)
at flushJobs (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:405:9)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Object.<anonymous> (/src/repo/resources/ext.communityConfiguration.Editor/app/App.test.js:152:3)
at flushUnexpectedConsoleCalls (node_modules/jest-fail-on-console/index.js:48:13)
at Object.<anonymous> (node_modules/jest-fail-on-console/index.js:145:7)
● submit results › shows a generic error if there is no network
Expected test not to call console.warn().
If the warn is expected, test for it explicitly by mocking it out using jest.spyOn(console, 'warn').mockImplementation() and test that the warning occurs.
[CdxMessage]: The boolean `allowUserDismiss` prop is required to show the dismiss button.
Refer to https://doc.wikimedia.org/codex/latest/components/demos/message.html#props.
at console.captureMessage [as warn] (/src/repo/node_modules/jest-fail-on-console/index.js:83:25)
at validator (/src/repo/node_modules/@wikimedia/codex/dist/codex.cjs:9:89194)
at validateProp (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4367:21)
at validateProps (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4335:5)
at initProps (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4036:5)
at setupComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7807:3)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5159:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at patchBlockChildren (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5008:7)
at processFragment (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5086:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4628:9)
at patchBlockChildren (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5008:7)
at patchElement (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4926:7)
at processElement (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4785:7)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4642:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5349:9)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at ReactiveEffect.runIfDirty (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:267:12)
at callWithErrorHandling (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:200:33)
at flushJobs (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:405:9)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Object.<anonymous> (/src/repo/resources/ext.communityConfiguration.Editor/app/App.test.js:181:3)
[Vue warn]: Invalid prop: custom validator check failed for prop "dismissButtonLabel".
at <CdxMessage dismiss-button-label="communityconfiguration-editor-message-dismiss-button-label" type="error" fade-in=true ... >
at <EditorMessage status="error" is-dismissable=true class="ext-communityConfiguration-FooterMessage" >
at <NetworkErrorMessage key=0 class="ext-communityConfiguration-FooterMessage" >
at <JsonForm config= {} data= {} renderers= [
{
renderer: {
name: 'BooleanControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'StringControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'NumberControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'MultiselectEnumControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'EnumControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'ChipStringsControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'ObjectControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'ArrayControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'PageTitleControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'PageTitlesControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'NamespacesControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'CommonsFileControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
}
] ... >
at <App ref="VTU_COMPONENT" >
at <VTUROOT>
at console.captureMessage [as warn] (/src/repo/node_modules/jest-fail-on-console/index.js:83:25)
at warn$1 (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:53:13)
at validateProp (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4368:5)
at validateProps (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4335:5)
at initProps (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4036:5)
at setupComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7807:3)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5159:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at patchBlockChildren (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5008:7)
at processFragment (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5086:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4628:9)
at patchBlockChildren (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5008:7)
at patchElement (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4926:7)
at processElement (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4785:7)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4642:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5349:9)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at ReactiveEffect.runIfDirty (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:267:12)
at callWithErrorHandling (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:200:33)
at flushJobs (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:405:9)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Object.<anonymous> (/src/repo/resources/ext.communityConfiguration.Editor/app/App.test.js:181:3)
at flushUnexpectedConsoleCalls (node_modules/jest-fail-on-console/index.js:48:13)
at Object.<anonymous> (node_modules/jest-fail-on-console/index.js:145:7)
● submit results › shows a permissions error if user is missing rights
Expected test not to call console.warn().
If the warn is expected, test for it explicitly by mocking it out using jest.spyOn(console, 'warn').mockImplementation() and test that the warning occurs.
[CdxMessage]: The boolean `allowUserDismiss` prop is required to show the dismiss button.
Refer to https://doc.wikimedia.org/codex/latest/components/demos/message.html#props.
at console.captureMessage [as warn] (/src/repo/node_modules/jest-fail-on-console/index.js:83:25)
at validator (/src/repo/node_modules/@wikimedia/codex/dist/codex.cjs:9:89194)
at validateProp (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4367:21)
at validateProps (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4335:5)
at initProps (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4036:5)
at setupComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7807:3)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5159:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at patchBlockChildren (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5008:7)
at processFragment (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5086:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4628:9)
at patchBlockChildren (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5008:7)
at patchElement (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4926:7)
at processElement (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4785:7)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4642:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5349:9)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at ReactiveEffect.runIfDirty (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:267:12)
at callWithErrorHandling (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:200:33)
at flushJobs (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:405:9)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Object.<anonymous> (/src/repo/resources/ext.communityConfiguration.Editor/app/App.test.js:217:3)
[Vue warn]: Invalid prop: custom validator check failed for prop "dismissButtonLabel".
at <CdxMessage dismiss-button-label="communityconfiguration-editor-message-dismiss-button-label" type="error" fade-in=true ... >
at <EditorMessage status="error" is-dismissable=true class="ext-communityConfiguration-FooterMessage" >
at <PermissionsErrorMessage key=0 errors= [
{
code: 'protectednamespace-interface',
html: 'This page provides interface text for the software on this wiki, and is protected to prevent abuse. To add or change translations for all wikis, please use <a rel="nofollow" class="external text" href="https://translatewiki.net/">translatewiki.net</a>, the MediaWiki localisation project.',
module: 'communityconfigurationedit'
},
{
code: 'sitejsonprotected',
html: 'You do not have permission to edit this JSON page because it may affect all visitors.',
module: 'communityconfigurationedit'
}
] class="ext-communityConfiguration-FooterMessage" >
at <JsonForm config= {} data= {} renderers= [
{
renderer: {
name: 'BooleanControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'StringControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'NumberControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'MultiselectEnumControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'EnumControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'ChipStringsControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'ObjectControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'ArrayControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'PageTitleControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'PageTitlesControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'NamespacesControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'CommonsFileControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
}
] ... >
at <App ref="VTU_COMPONENT" >
at <VTUROOT>
at console.captureMessage [as warn] (/src/repo/node_modules/jest-fail-on-console/index.js:83:25)
at warn$1 (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:53:13)
at validateProp (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4368:5)
at validateProps (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4335:5)
at initProps (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4036:5)
at setupComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7807:3)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5159:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at patchBlockChildren (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5008:7)
at processFragment (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5086:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4628:9)
at patchBlockChildren (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5008:7)
at patchElement (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4926:7)
at processElement (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4785:7)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4642:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5349:9)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at ReactiveEffect.runIfDirty (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:267:12)
at callWithErrorHandling (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:200:33)
at flushJobs (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:405:9)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Object.<anonymous> (/src/repo/resources/ext.communityConfiguration.Editor/app/App.test.js:217:3)
at flushUnexpectedConsoleCalls (node_modules/jest-fail-on-console/index.js:48:13)
at Object.<anonymous> (node_modules/jest-fail-on-console/index.js:145:7)
PASS resources/ext.communityConfiguration.Editor/lib/json-form/controls-codex/src/complex/EnumControl.test.js
PASS resources/ext.communityConfiguration.Editor/lib/json-form/controls-codex/src/complex/MultiselectEnumControl.test.js
PASS resources/ext.communityConfiguration.Editor/lib/json-form/form/composables/useJsonForm.test.js
PASS resources/ext.communityConfiguration.Editor/lib/json-form/controls-codex/src/mediawiki/api.test.js
PASS resources/ext.communityConfiguration.Editor/lib/json-form/controls-codex/src/controls/BooleanControl.test.js
PASS resources/ext.communityConfiguration.Editor/lib/json-form/controls-codex/src/controls/NumberControl.test.js
FAIL resources/ext.communityConfiguration.Editor.common/components/ClientErrorMessage.test.js
● ClientErrorMessage › matches snapshot
Expected test not to call console.warn().
If the warn is expected, test for it explicitly by mocking it out using jest.spyOn(console, 'warn').mockImplementation() and test that the warning occurs.
[CdxMessage]: The boolean `allowUserDismiss` prop is required to show the dismiss button.
Refer to https://doc.wikimedia.org/codex/latest/components/demos/message.html#props.
at console.captureMessage [as warn] (/src/repo/node_modules/jest-fail-on-console/index.js:83:25)
at validator (/src/repo/node_modules/@wikimedia/codex/dist/codex.cjs:9:89194)
at validateProp (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4367:21)
at validateProps (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4335:5)
at initProps (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4036:5)
at setupComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7807:3)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5159:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at render (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5922:7)
at mount (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:3922:13)
at Object.app.mount (/src/repo/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.js:1703:19)
at mount (/src/repo/node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8415:18)
at Object.<anonymous> (/src/repo/resources/ext.communityConfiguration.Editor.common/components/ClientErrorMessage.test.js:10:19)
at Promise.then.completed (/src/repo/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/src/repo/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/src/repo/node_modules/jest-circus/build/run.js:316:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at _runTest (/src/repo/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/src/repo/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/src/repo/node_modules/jest-circus/build/run.js:121:9)
at run (/src/repo/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/src/repo/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/src/repo/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/src/repo/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/src/repo/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/src/repo/node_modules/jest-runner/build/testWorker.js:106:12)
[Vue warn]: Invalid prop: custom validator check failed for prop "dismissButtonLabel".
at <CdxMessage dismiss-button-label="communityconfiguration-editor-message-dismiss-button-label" type="error" fade-in=true ... >
at <EditorMessage status="error" is-dismissable=true >
at <ClientErrorMessage componentName="App" info="setup function" err= [[stack trace here]] ... >
at <VTUROOT>
at console.captureMessage [as warn] (/src/repo/node_modules/jest-fail-on-console/index.js:83:25)
at warn$1 (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:53:13)
at validateProp (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4368:5)
at validateProps (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4335:5)
at initProps (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4036:5)
at setupComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7807:3)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5159:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at render (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5922:7)
at mount (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:3922:13)
at Object.app.mount (/src/repo/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.js:1703:19)
at mount (/src/repo/node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8415:18)
at Object.<anonymous> (/src/repo/resources/ext.communityConfiguration.Editor.common/components/ClientErrorMessage.test.js:10:19)
at Promise.then.completed (/src/repo/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/src/repo/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/src/repo/node_modules/jest-circus/build/run.js:316:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at _runTest (/src/repo/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/src/repo/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/src/repo/node_modules/jest-circus/build/run.js:121:9)
at run (/src/repo/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/src/repo/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/src/repo/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/src/repo/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/src/repo/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/src/repo/node_modules/jest-runner/build/testWorker.js:106:12)
at flushUnexpectedConsoleCalls (node_modules/jest-fail-on-console/index.js:48:13)
at Object.<anonymous> (node_modules/jest-fail-on-console/index.js:145:7)
Test Suites: 2 failed, 12 passed, 14 total
Tests: 5 failed, 71 passed, 76 total
Snapshots: 1 passed, 1 total
Time: 8.231 s
Ran all test suites.
ERROR: "test:jest" exited with 1.
--- stdout ---
> test
> npm-run-all test:*
> test:lint
> eslint --cache --max-warnings 0 .
> test:types
> tsc --noEmit -p cypress/tsconfig.json
> test:lintcss
> stylelint --cache "**/*.{css,less,vue}"
> test:linti18n
> banana-checker i18n/
Checked 1 message directory.
> test:jest
> jest
--------------------------------------------------|---------|----------|---------|---------|---------------------------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
--------------------------------------------------|---------|----------|---------|---------|---------------------------------------
All files | 74.23 | 64.49 | 66.27 | 74.97 |
app | 58.26 | 72.34 | 50 | 58.26 |
App.vue | 84.81 | 82.92 | 73.33 | 84.81 | 71,79,97,135-136,166-177,251-255
MwApiCommunityConfigurationWritingRepository.js | 0 | 100 | 0 | 0 | 1-15
init.js | 0 | 0 | 0 | 0 | 1-66
lib/json-form/controls-codex/config | 100 | 100 | 100 | 100 |
index.js | 100 | 100 | 100 | 100 |
lib/json-form/controls-codex/src | 100 | 100 | 100 | 100 |
index.js | 100 | 100 | 100 | 100 |
utils.js | 100 | 100 | 100 | 100 |
lib/json-form/controls-codex/src/complex | 91.56 | 80.76 | 82.69 | 92.35 |
ArrayControl.vue | 100 | 70 | 100 | 100 | 74-122
ChipStringsControl.vue | 50 | 0 | 0 | 55 | 29-36,51-58
EnumControl.vue | 100 | 100 | 100 | 100 |
MultiselectEnumControl.vue | 96.87 | 92.3 | 94.73 | 96.61 | 103,155
ObjectControl.vue | 95.65 | 75 | 87.5 | 95.65 | 86
index.js | 100 | 100 | 100 | 100 |
lib/json-form/controls-codex/src/controls | 94.11 | 88.46 | 92.3 | 94.87 |
BooleanControl.vue | 90.9 | 75 | 100 | 90.9 | 31-32
ControlWrapper.vue | 93.33 | 100 | 83.33 | 93.33 | 42
NumberControl.vue | 97.29 | 87.5 | 100 | 97.29 | 57
StringControl.vue | 94.44 | 91.66 | 100 | 94.44 | 42-43
index.js | 88.88 | 0 | 50 | 100 | 17
lib/json-form/controls-codex/src/mediawiki | 44.21 | 22.72 | 20.58 | 45.58 |
CommonsFileControl.vue | 19.67 | 0 | 0 | 19.67 | 31-124,146-165
NamespacesControl.vue | 19.69 | 0 | 0 | 21.31 | 21-24,37-114,127-154
PageTitleControl.vue | 94.33 | 75 | 81.81 | 94.23 | 82,101,139
PageTitlesControl.vue | 21.21 | 0 | 0 | 23.33 | 24,41-125,138-164
api.js | 89.47 | 62.5 | 100 | 89.47 | 17,46
constants.js | 100 | 100 | 100 | 100 |
index.js | 100 | 100 | 100 | 100 |
lib/json-form/core | 86.13 | 70.58 | 80.64 | 86.86 |
i18n.js | 98.18 | 95.45 | 100 | 98.14 | 104
index.js | 100 | 100 | 100 | 100 |
testers.js | 50 | 6.25 | 40 | 52 | 14-18,31-50,70
uischema.js | 100 | 62.5 | 100 | 100 | 15,19
lib/json-form/form | 100 | 100 | 100 | 100 |
index.js | 100 | 100 | 100 | 100 |
lib/json-form/form/components | 90.74 | 70 | 69.23 | 90.56 |
DispatchRenderer.vue | 95.65 | 83.33 | 83.33 | 95.45 | 44
FormLayout.vue | 90.9 | 100 | 50 | 90.9 | 24
JsonForm.vue | 85 | 50 | 60 | 85 | 47-48,80
lib/json-form/form/composables | 90.72 | 75.75 | 100 | 90.54 |
props.js | 100 | 100 | 100 | 100 |
useJsonForm.js | 86.04 | 69.23 | 100 | 86.04 | 31-34,56,76,91-92,101,135,182,200,262
useValidationErrors.js | 96.77 | 85.18 | 100 | 96.66 | 46,195
--------------------------------------------------|---------|----------|---------|---------|---------------------------------------
--- end ---
$ node_modules/.bin/jest -u
--- stderr ---
FAIL resources/ext.communityConfiguration.Editor.common/components/ClientErrorMessage.test.js
● ClientErrorMessage › matches snapshot
Expected test not to call console.warn().
If the warn is expected, test for it explicitly by mocking it out using jest.spyOn(console, 'warn').mockImplementation() and test that the warning occurs.
[CdxMessage]: The boolean `allowUserDismiss` prop is required to show the dismiss button.
Refer to https://doc.wikimedia.org/codex/latest/components/demos/message.html#props.
at console.captureMessage [as warn] (/src/repo/node_modules/jest-fail-on-console/index.js:83:25)
at validator (/src/repo/node_modules/@wikimedia/codex/dist/codex.cjs:9:89194)
at validateProp (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4367:21)
at validateProps (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4335:5)
at initProps (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4036:5)
at setupComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7807:3)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5159:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at render (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5922:7)
at mount (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:3922:13)
at Object.app.mount (/src/repo/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.js:1703:19)
at mount (/src/repo/node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8415:18)
at Object.<anonymous> (/src/repo/resources/ext.communityConfiguration.Editor.common/components/ClientErrorMessage.test.js:10:19)
at Promise.then.completed (/src/repo/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/src/repo/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/src/repo/node_modules/jest-circus/build/run.js:316:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at _runTest (/src/repo/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/src/repo/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/src/repo/node_modules/jest-circus/build/run.js:121:9)
at run (/src/repo/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/src/repo/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/src/repo/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/src/repo/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/src/repo/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/src/repo/node_modules/jest-runner/build/testWorker.js:106:12)
[Vue warn]: Invalid prop: custom validator check failed for prop "dismissButtonLabel".
at <CdxMessage dismiss-button-label="communityconfiguration-editor-message-dismiss-button-label" type="error" fade-in=true ... >
at <EditorMessage status="error" is-dismissable=true >
at <ClientErrorMessage componentName="App" info="setup function" err= [[stack trace here]] ... >
at <VTUROOT>
at console.captureMessage [as warn] (/src/repo/node_modules/jest-fail-on-console/index.js:83:25)
at warn$1 (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:53:13)
at validateProp (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4368:5)
at validateProps (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4335:5)
at initProps (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4036:5)
at setupComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7807:3)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5159:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at render (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5922:7)
at mount (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:3922:13)
at Object.app.mount (/src/repo/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.js:1703:19)
at mount (/src/repo/node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8415:18)
at Object.<anonymous> (/src/repo/resources/ext.communityConfiguration.Editor.common/components/ClientErrorMessage.test.js:10:19)
at Promise.then.completed (/src/repo/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/src/repo/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/src/repo/node_modules/jest-circus/build/run.js:316:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at _runTest (/src/repo/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/src/repo/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/src/repo/node_modules/jest-circus/build/run.js:121:9)
at run (/src/repo/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/src/repo/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/src/repo/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/src/repo/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/src/repo/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/src/repo/node_modules/jest-runner/build/testWorker.js:106:12)
at flushUnexpectedConsoleCalls (node_modules/jest-fail-on-console/index.js:48:13)
at Object.<anonymous> (node_modules/jest-fail-on-console/index.js:145:7)
PASS resources/ext.communityConfiguration.Editor/lib/json-form/controls-codex/src/mediawiki/PageTitleControl.test.js
FAIL resources/ext.communityConfiguration.Editor/app/App.test.js
● submit results › shows a success message if submitting was successful
Expected test not to call console.warn().
If the warn is expected, test for it explicitly by mocking it out using jest.spyOn(console, 'warn').mockImplementation() and test that the warning occurs.
[CdxMessage]: The boolean `allowUserDismiss` prop is required to show the dismiss button.
Refer to https://doc.wikimedia.org/codex/latest/components/demos/message.html#props.
at console.captureMessage [as warn] (/src/repo/node_modules/jest-fail-on-console/index.js:83:25)
at validator (/src/repo/node_modules/@wikimedia/codex/dist/codex.cjs:9:89194)
at validateProp (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4367:21)
at validateProps (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4335:5)
at initProps (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4036:5)
at setupComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7807:3)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5159:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at patchBlockChildren (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5008:7)
at processFragment (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5086:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4628:9)
at patchBlockChildren (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5008:7)
at patchElement (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4926:7)
at processElement (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4785:7)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4642:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5349:9)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at ReactiveEffect.runIfDirty (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:267:12)
at callWithErrorHandling (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:200:33)
at flushJobs (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:405:9)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Object.<anonymous> (/src/repo/resources/ext.communityConfiguration.Editor/app/App.test.js:115:3)
[Vue warn]: Invalid prop: custom validator check failed for prop "dismissButtonLabel".
at <CdxMessage dismiss-button-label="communityconfiguration-editor-message-dismiss-button-label" type="success" fade-in=true ... >
at <EditorMessage status="success" is-dismissable=true class="ext-communityConfiguration-FooterMessage" >
at <SuccessMessage key=0 class="ext-communityConfiguration-FooterMessage" >
at <JsonForm config= {} data= {} renderers= [
{
renderer: {
name: 'BooleanControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'StringControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'NumberControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'MultiselectEnumControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'EnumControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'ChipStringsControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'ObjectControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'ArrayControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'PageTitleControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'PageTitlesControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'NamespacesControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'CommonsFileControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
}
] ... >
at <App ref="VTU_COMPONENT" >
at <VTUROOT>
at console.captureMessage [as warn] (/src/repo/node_modules/jest-fail-on-console/index.js:83:25)
at warn$1 (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:53:13)
at validateProp (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4368:5)
at validateProps (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4335:5)
at initProps (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4036:5)
at setupComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7807:3)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5159:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at patchBlockChildren (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5008:7)
at processFragment (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5086:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4628:9)
at patchBlockChildren (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5008:7)
at patchElement (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4926:7)
at processElement (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4785:7)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4642:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5349:9)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at ReactiveEffect.runIfDirty (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:267:12)
at callWithErrorHandling (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:200:33)
at flushJobs (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:405:9)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Object.<anonymous> (/src/repo/resources/ext.communityConfiguration.Editor/app/App.test.js:115:3)
at flushUnexpectedConsoleCalls (node_modules/jest-fail-on-console/index.js:48:13)
at Object.<anonymous> (node_modules/jest-fail-on-console/index.js:145:7)
● submit results › shows a generic error if there is an internal server error
Expected test not to call console.warn().
If the warn is expected, test for it explicitly by mocking it out using jest.spyOn(console, 'warn').mockImplementation() and test that the warning occurs.
[CdxMessage]: The boolean `allowUserDismiss` prop is required to show the dismiss button.
Refer to https://doc.wikimedia.org/codex/latest/components/demos/message.html#props.
at console.captureMessage [as warn] (/src/repo/node_modules/jest-fail-on-console/index.js:83:25)
at validator (/src/repo/node_modules/@wikimedia/codex/dist/codex.cjs:9:89194)
at validateProp (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4367:21)
at validateProps (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4335:5)
at initProps (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4036:5)
at setupComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7807:3)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5159:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at patchBlockChildren (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5008:7)
at processFragment (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5086:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4628:9)
at patchBlockChildren (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5008:7)
at patchElement (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4926:7)
at processElement (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4785:7)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4642:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5349:9)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at ReactiveEffect.runIfDirty (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:267:12)
at callWithErrorHandling (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:200:33)
at flushJobs (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:405:9)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Object.<anonymous> (/src/repo/resources/ext.communityConfiguration.Editor/app/App.test.js:152:3)
[Vue warn]: Invalid prop: custom validator check failed for prop "dismissButtonLabel".
at <CdxMessage dismiss-button-label="communityconfiguration-editor-message-dismiss-button-label" type="error" fade-in=true ... >
at <EditorMessage status="error" is-dismissable=true class="ext-communityConfiguration-FooterMessage" >
at <GenericSubmitErrorMessage key=0 errorResponse= {
errors: [
{
code: 'internal_api_error_RuntimeException',
html: '[183c02467dd6df6e8690dc68] Exception caught: Did not work',
data: [Object]
}
],
trace: 'Trace'
} errorCode="internal_api_error_RuntimeException" ... >
at <JsonForm config= {} data= {} renderers= [
{
renderer: {
name: 'BooleanControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'StringControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'NumberControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'MultiselectEnumControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'EnumControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'ChipStringsControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'ObjectControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'ArrayControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'PageTitleControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'PageTitlesControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'NamespacesControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'CommonsFileControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
}
] ... >
at <App ref="VTU_COMPONENT" >
at <VTUROOT>
at console.captureMessage [as warn] (/src/repo/node_modules/jest-fail-on-console/index.js:83:25)
at warn$1 (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:53:13)
at validateProp (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4368:5)
at validateProps (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4335:5)
at initProps (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4036:5)
at setupComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7807:3)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5159:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at patchBlockChildren (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5008:7)
at processFragment (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5086:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4628:9)
at patchBlockChildren (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5008:7)
at patchElement (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4926:7)
at processElement (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4785:7)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4642:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5349:9)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at ReactiveEffect.runIfDirty (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:267:12)
at callWithErrorHandling (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:200:33)
at flushJobs (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:405:9)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Object.<anonymous> (/src/repo/resources/ext.communityConfiguration.Editor/app/App.test.js:152:3)
at flushUnexpectedConsoleCalls (node_modules/jest-fail-on-console/index.js:48:13)
at Object.<anonymous> (node_modules/jest-fail-on-console/index.js:145:7)
● submit results › shows a generic error if there is no network
Expected test not to call console.warn().
If the warn is expected, test for it explicitly by mocking it out using jest.spyOn(console, 'warn').mockImplementation() and test that the warning occurs.
[CdxMessage]: The boolean `allowUserDismiss` prop is required to show the dismiss button.
Refer to https://doc.wikimedia.org/codex/latest/components/demos/message.html#props.
at console.captureMessage [as warn] (/src/repo/node_modules/jest-fail-on-console/index.js:83:25)
at validator (/src/repo/node_modules/@wikimedia/codex/dist/codex.cjs:9:89194)
at validateProp (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4367:21)
at validateProps (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4335:5)
at initProps (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4036:5)
at setupComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7807:3)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5159:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at patchBlockChildren (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5008:7)
at processFragment (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5086:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4628:9)
at patchBlockChildren (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5008:7)
at patchElement (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4926:7)
at processElement (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4785:7)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4642:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5349:9)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at ReactiveEffect.runIfDirty (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:267:12)
at callWithErrorHandling (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:200:33)
at flushJobs (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:405:9)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Object.<anonymous> (/src/repo/resources/ext.communityConfiguration.Editor/app/App.test.js:181:3)
[Vue warn]: Invalid prop: custom validator check failed for prop "dismissButtonLabel".
at <CdxMessage dismiss-button-label="communityconfiguration-editor-message-dismiss-button-label" type="error" fade-in=true ... >
at <EditorMessage status="error" is-dismissable=true class="ext-communityConfiguration-FooterMessage" >
at <NetworkErrorMessage key=0 class="ext-communityConfiguration-FooterMessage" >
at <JsonForm config= {} data= {} renderers= [
{
renderer: {
name: 'BooleanControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'StringControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'NumberControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'MultiselectEnumControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'EnumControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'ChipStringsControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'ObjectControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'ArrayControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'PageTitleControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'PageTitlesControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'NamespacesControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'CommonsFileControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
}
] ... >
at <App ref="VTU_COMPONENT" >
at <VTUROOT>
at console.captureMessage [as warn] (/src/repo/node_modules/jest-fail-on-console/index.js:83:25)
at warn$1 (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:53:13)
at validateProp (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4368:5)
at validateProps (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4335:5)
at initProps (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4036:5)
at setupComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7807:3)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5159:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at patchBlockChildren (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5008:7)
at processFragment (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5086:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4628:9)
at patchBlockChildren (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5008:7)
at patchElement (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4926:7)
at processElement (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4785:7)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4642:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5349:9)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at ReactiveEffect.runIfDirty (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:267:12)
at callWithErrorHandling (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:200:33)
at flushJobs (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:405:9)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Object.<anonymous> (/src/repo/resources/ext.communityConfiguration.Editor/app/App.test.js:181:3)
at flushUnexpectedConsoleCalls (node_modules/jest-fail-on-console/index.js:48:13)
at Object.<anonymous> (node_modules/jest-fail-on-console/index.js:145:7)
● submit results › shows a permissions error if user is missing rights
Expected test not to call console.warn().
If the warn is expected, test for it explicitly by mocking it out using jest.spyOn(console, 'warn').mockImplementation() and test that the warning occurs.
[CdxMessage]: The boolean `allowUserDismiss` prop is required to show the dismiss button.
Refer to https://doc.wikimedia.org/codex/latest/components/demos/message.html#props.
at console.captureMessage [as warn] (/src/repo/node_modules/jest-fail-on-console/index.js:83:25)
at validator (/src/repo/node_modules/@wikimedia/codex/dist/codex.cjs:9:89194)
at validateProp (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4367:21)
at validateProps (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4335:5)
at initProps (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4036:5)
at setupComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7807:3)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5159:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at patchBlockChildren (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5008:7)
at processFragment (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5086:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4628:9)
at patchBlockChildren (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5008:7)
at patchElement (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4926:7)
at processElement (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4785:7)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4642:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5349:9)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at ReactiveEffect.runIfDirty (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:267:12)
at callWithErrorHandling (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:200:33)
at flushJobs (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:405:9)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Object.<anonymous> (/src/repo/resources/ext.communityConfiguration.Editor/app/App.test.js:217:3)
[Vue warn]: Invalid prop: custom validator check failed for prop "dismissButtonLabel".
at <CdxMessage dismiss-button-label="communityconfiguration-editor-message-dismiss-button-label" type="error" fade-in=true ... >
at <EditorMessage status="error" is-dismissable=true class="ext-communityConfiguration-FooterMessage" >
at <PermissionsErrorMessage key=0 errors= [
{
code: 'protectednamespace-interface',
html: 'This page provides interface text for the software on this wiki, and is protected to prevent abuse. To add or change translations for all wikis, please use <a rel="nofollow" class="external text" href="https://translatewiki.net/">translatewiki.net</a>, the MediaWiki localisation project.',
module: 'communityconfigurationedit'
},
{
code: 'sitejsonprotected',
html: 'You do not have permission to edit this JSON page because it may affect all visitors.',
module: 'communityconfigurationedit'
}
] class="ext-communityConfiguration-FooterMessage" >
at <JsonForm config= {} data= {} renderers= [
{
renderer: {
name: 'BooleanControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'StringControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'NumberControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'MultiselectEnumControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'EnumControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'ChipStringsControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'ObjectControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'ArrayControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'PageTitleControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'PageTitlesControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'NamespacesControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
},
{
renderer: {
name: 'CommonsFileControl',
components: [Object],
props: [Object],
setup: [Function: setup],
render: [Function: render],
default: [Object]
},
tester: [Function (anonymous)]
}
] ... >
at <App ref="VTU_COMPONENT" >
at <VTUROOT>
at console.captureMessage [as warn] (/src/repo/node_modules/jest-fail-on-console/index.js:83:25)
at warn$1 (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:53:13)
at validateProp (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4368:5)
at validateProps (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4335:5)
at initProps (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4036:5)
at setupComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7807:3)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5159:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5269:11)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at setupRenderEffect (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5397:5)
at mountComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5172:7)
at processComponent (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5125:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4654:11)
at patchBlockChildren (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5008:7)
at processFragment (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5086:9)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4628:9)
at patchBlockChildren (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5008:7)
at patchElement (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4926:7)
at processElement (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4785:7)
at patch (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4642:11)
at ReactiveEffect.componentUpdateFn [as fn] (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5349:9)
at ReactiveEffect.run (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at ReactiveEffect.runIfDirty (/src/repo/node_modules/@vue/reactivity/dist/reactivity.cjs.js:267:12)
at callWithErrorHandling (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:200:33)
at flushJobs (/src/repo/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:405:9)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Object.<anonymous> (/src/repo/resources/ext.communityConfiguration.Editor/app/App.test.js:217:3)
at flushUnexpectedConsoleCalls (node_modules/jest-fail-on-console/index.js:48:13)
at Object.<anonymous> (node_modules/jest-fail-on-console/index.js:145:7)
PASS resources/ext.communityConfiguration.Editor/lib/json-form/controls-codex/src/complex/ArrayControl.test.js
PASS resources/ext.communityConfiguration.Editor/lib/json-form/core/__tests__/i18n.test.js
PASS resources/ext.communityConfiguration.Editor/lib/json-form/form/composables/useValidationErrors.test.js
PASS resources/ext.communityConfiguration.Editor/lib/json-form/controls-codex/src/complex/MultiselectEnumControl.test.js
PASS resources/ext.communityConfiguration.Editor/lib/json-form/controls-codex/src/controls/StringControl.test.js
PASS resources/ext.communityConfiguration.Editor/lib/json-form/controls-codex/src/controls/NumberControl.test.js
PASS resources/ext.communityConfiguration.Editor/lib/json-form/form/composables/useJsonForm.test.js
PASS resources/ext.communityConfiguration.Editor/lib/json-form/controls-codex/src/complex/EnumControl.test.js
PASS resources/ext.communityConfiguration.Editor/lib/json-form/controls-codex/src/controls/BooleanControl.test.js
PASS resources/ext.communityConfiguration.Editor/lib/json-form/controls-codex/src/mediawiki/api.test.js
PASS resources/ext.communityConfiguration.Editor/lib/json-form/core/__tests__/uischema.test.js
Test Suites: 2 failed, 12 passed, 14 total
Tests: 5 failed, 71 passed, 76 total
Snapshots: 1 passed, 1 total
Time: 5.875 s
Ran all test suites.
--- stdout ---
--------------------------------------------------|---------|----------|---------|---------|---------------------------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
--------------------------------------------------|---------|----------|---------|---------|---------------------------------------
All files | 74.23 | 64.49 | 66.27 | 74.97 |
app | 58.26 | 72.34 | 50 | 58.26 |
App.vue | 84.81 | 82.92 | 73.33 | 84.81 | 71,79,97,135-136,166-177,251-255
MwApiCommunityConfigurationWritingRepository.js | 0 | 100 | 0 | 0 | 1-15
init.js | 0 | 0 | 0 | 0 | 1-66
lib/json-form/controls-codex/config | 100 | 100 | 100 | 100 |
index.js | 100 | 100 | 100 | 100 |
lib/json-form/controls-codex/src | 100 | 100 | 100 | 100 |
index.js | 100 | 100 | 100 | 100 |
utils.js | 100 | 100 | 100 | 100 |
lib/json-form/controls-codex/src/complex | 91.56 | 80.76 | 82.69 | 92.35 |
ArrayControl.vue | 100 | 70 | 100 | 100 | 74-122
ChipStringsControl.vue | 50 | 0 | 0 | 55 | 29-36,51-58
EnumControl.vue | 100 | 100 | 100 | 100 |
MultiselectEnumControl.vue | 96.87 | 92.3 | 94.73 | 96.61 | 103,155
ObjectControl.vue | 95.65 | 75 | 87.5 | 95.65 | 86
index.js | 100 | 100 | 100 | 100 |
lib/json-form/controls-codex/src/controls | 94.11 | 88.46 | 92.3 | 94.87 |
BooleanControl.vue | 90.9 | 75 | 100 | 90.9 | 31-32
ControlWrapper.vue | 93.33 | 100 | 83.33 | 93.33 | 42
NumberControl.vue | 97.29 | 87.5 | 100 | 97.29 | 57
StringControl.vue | 94.44 | 91.66 | 100 | 94.44 | 42-43
index.js | 88.88 | 0 | 50 | 100 | 17
lib/json-form/controls-codex/src/mediawiki | 44.21 | 22.72 | 20.58 | 45.58 |
CommonsFileControl.vue | 19.67 | 0 | 0 | 19.67 | 31-124,146-165
NamespacesControl.vue | 19.69 | 0 | 0 | 21.31 | 21-24,37-114,127-154
PageTitleControl.vue | 94.33 | 75 | 81.81 | 94.23 | 82,101,139
PageTitlesControl.vue | 21.21 | 0 | 0 | 23.33 | 24,41-125,138-164
api.js | 89.47 | 62.5 | 100 | 89.47 | 17,46
constants.js | 100 | 100 | 100 | 100 |
index.js | 100 | 100 | 100 | 100 |
lib/json-form/core | 86.13 | 70.58 | 80.64 | 86.86 |
i18n.js | 98.18 | 95.45 | 100 | 98.14 | 104
index.js | 100 | 100 | 100 | 100 |
testers.js | 50 | 6.25 | 40 | 52 | 14-18,31-50,70
uischema.js | 100 | 62.5 | 100 | 100 | 15,19
lib/json-form/form | 100 | 100 | 100 | 100 |
index.js | 100 | 100 | 100 | 100 |
lib/json-form/form/components | 90.74 | 70 | 69.23 | 90.56 |
DispatchRenderer.vue | 95.65 | 83.33 | 83.33 | 95.45 | 44
FormLayout.vue | 90.9 | 100 | 50 | 90.9 | 24
JsonForm.vue | 85 | 50 | 60 | 85 | 47-48,80
lib/json-form/form/composables | 90.72 | 75.75 | 100 | 90.54 |
props.js | 100 | 100 | 100 | 100 |
useJsonForm.js | 86.04 | 69.23 | 100 | 86.04 | 31-34,56,76,91-92,101,135,182,200,262
useValidationErrors.js | 96.77 | 85.18 | 100 | 96.66 | 46,195
--------------------------------------------------|---------|----------|---------|---------|---------------------------------------
--- end ---
Traceback (most recent call last):
File "/venv/lib/python3.11/site-packages/runner-0.1.0-py3.11.egg/runner/__init__.py", line 325, in npm_test
self.check_call(["npm", "test"])
File "/venv/lib/python3.11/site-packages/runner-0.1.0-py3.11.egg/runner/shell2.py", line 63, in check_call
res.check_returncode()
File "/usr/lib/python3.11/subprocess.py", line 502, in check_returncode
raise CalledProcessError(self.returncode, self.args, self.stdout,
subprocess.CalledProcessError: Command '['/usr/bin/npm', 'test']' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/venv/lib/python3.11/site-packages/runner-0.1.0-py3.11.egg/runner/__init__.py", line 2031, in main
libup.run(args.repo, args.output, args.branch)
File "/venv/lib/python3.11/site-packages/runner-0.1.0-py3.11.egg/runner/__init__.py", line 1967, in run
self.npm_upgrade(plan)
File "/venv/lib/python3.11/site-packages/runner-0.1.0-py3.11.egg/runner/__init__.py", line 1256, in npm_upgrade
self.npm_test()
File "/venv/lib/python3.11/site-packages/runner-0.1.0-py3.11.egg/runner/__init__.py", line 330, in npm_test
self.check_call(["node_modules/.bin/jest", "-u"])
File "/venv/lib/python3.11/site-packages/runner-0.1.0-py3.11.egg/runner/shell2.py", line 63, in check_call
res.check_returncode()
File "/usr/lib/python3.11/subprocess.py", line 502, in check_returncode
raise CalledProcessError(self.returncode, self.args, self.stdout,
subprocess.CalledProcessError: Command '['node_modules/.bin/jest', '-u']' returned non-zero exit status 1.