Skip to content

[ADR] Mother Objects #2619

[ADR] Mother Objects

[ADR] Mother Objects #2619

Triggered via pull request February 7, 2024 09:58
Status Failure
Total duration 1m 45s
Artifacts

node.js.yml

on: pull_request
Checks & Release
1m 36s
Checks & Release
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
Checks & Release: packages/sui-bundler/shared/define.js#L11
Replace `⏎······process.env.MOCKS_API_PATH·||·process.env.PWD·+·'/mocks/routes'⏎····` with `process.env.MOCKS_API_PATH·||·process.env.PWD·+·'/mocks/routes'`
Checks & Release: packages/sui-mock/src/index.js#L51
Replace `⏎······`[sui-mock]·Not·found·route·folder·in·${__MOCKS_API_PATH__}·autoload·of·msw·handlers·disabled`⏎····` with ``[sui-mock]·Not·found·route·folder·in·${__MOCKS_API_PATH__}·autoload·of·msw·handlers·disabled``
Checks & Release: packages/sui-mock/src/index.js#L57
Replace `⏎····...legacyHandlers,⏎····...(apiContextRequest·&&·generateHandlerFromContext(apiContextRequest))⏎··` with `...legacyHandlers,·...(apiContextRequest·&&·generateHandlerFromContext(apiContextRequest))`
Checks & Release: packages/sui-test/bin/karma/config.js#L90
Replace `⏎··········process.env.MOCKS_API_PATH·||·process.env.PWD·+·'/mocks/routes'⏎········` with `process.env.MOCKS_API_PATH·||·process.env.PWD·+·'/mocks/routes'`
Checks & Release: packages/sui-test/src/MotherObject/Fetcher.js#L21
Replace `⏎······method·=>·this.FetchFetcher.prototype[method]⏎····` with `method·=>·this.FetchFetcher.prototype[method]`
Checks & Release: packages/sui-test/src/MotherObject/Fetcher.js#L34
Replace `⏎········`[MockFetcherManager#addMock]·forbidden·overwrite·the·request·${key}`⏎······` with ``[MockFetcherManager#addMock]·forbidden·overwrite·the·request·${key}``
Checks & Release: packages/sui-test/src/MotherObject/Fetcher.js#L43
Replace `⏎······throw·new·Error(⏎········`[MockFetcherManager#validate]·request·${key}·don't·consume`⏎······` with `·throw·new·Error(`[MockFetcherManager#validate]·request·${key}·don't·consume``
Checks & Release: packages/sui-test/src/MotherObject/Fetcher.js#L51
Replace `⏎········(method,·index)·=>⏎··········(this.FetchFetcher.prototype[method]·=·this._originalsFetcher[index])⏎······` with `(method,·index)·=>·(this.FetchFetcher.prototype[method]·=·this._originalsFetcher[index])`
Checks & Release
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: styfle/cancel-workflow-action@0.6.0, actions/checkout@v2, actions/setup-node@v2, browser-actions/setup-chrome@latest. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Checks & Release
The following actions uses node12 which is deprecated and will be forced to run on node16: styfle/cancel-workflow-action@0.6.0, actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/