Closed dlss-infra-bot closed 1 year ago
See https://docs.npmjs.com/cli/v8/configuring-npm/package-json#overrides.
Note that you will need to:
package.json
rm package-lock.json
rm -rf node_modules
npm install
without steps 2 and 3, package-lock.json
is not updated.
Note further that I was unable to successfully get anywhere with this approach, partly because more packages got updated since Monday, and those updates didn't magically fix the issues (see PR #3667 where I tried it)
The diff for package-lock.json
is large. I did a slow visual review of that diff and found:
Gen-mapping from 0.1.1 to 0.3.3 - babel/core
Fast-xml-parser 4.1.3 to 4.2.0
Memes 3.4.13 to 3.5.0
Sass 1.60.0 to 1.61.0 <— testing
Web pack 5.77.0 to 5.78.0 <— testing
Sourcemap-codec Cli-spinners 2.7.0 to 2.8.0 Core-js 3.29.1 to 3.30.0 Core-js-compact 3.21.1 to 3.30.0
As it stands, we are getting deprecation warnings for a number of npm packages:
$ npm install
npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated querystring@0.2.1: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated w3c-hr-time@1.0.2: Use your platform's native performance.now() and performance.timeOrigin.
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated uglify-es@3.3.9: support for ECMAScript is superseded by `uglify-js` as of v3.13.0
npm WARN deprecated popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
npm WARN deprecated core-js@1.2.7: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
added 2448 packages, and audited 2449 packages in 47s
I believe a lot of these are secondary dependencies; maybe we could bump the version of the primary dependency???
Closing. Declaring bankruptcy on this app's dep update for this week.
$ npx jest __tests__/actionCreators/*
Summary reporter output:
Passed suites:
PASS /__tests__/actionCreators/history.test.js
PASS /__tests__/actionCreators/lookups.test.js
PASS /__tests__/actionCreators/languages.test.js
PASS /__tests__/actionCreators/authenticate.test.js
PASS /__tests__/actionCreators/exports.test.js
PASS /__tests__/actionCreators/transfer.test.js
PASS /__tests__/actionCreators/relationships.test.js
PASS /__tests__/actionCreators/user.test.js
PASS /__tests__/actionCreators/templates.test.js
PASS /__tests__/actionCreators/search.test.js
PASS /__tests__/actionCreators/templateValidationHelpers.test.js
PASS /__tests__/actionCreators/resources.newResourceCopy.test.js
PASS /__tests__/actionCreators/resources.newResource.test.js
PASS /__tests__/actionCreators/resources.test.js
PASS /__tests__/actionCreators/resources.loadResource.test.js
PASS /__tests__/actionCreators/resources.newResourceFromDataset.test.js
Summary:
Suites: 16/16
Tests: 81/81
Time: 7s 428ms
I then went through the various directories and such.
(I tried to be methodical and try each directory, and then, for failures, try each subdirectory or even individual tests, but I don't think I pulled it off)
console.error
Error: Uncaught [SyntaxError: '.disabled):not(:disabled)' is not a valid selector]
at reportException (/Users/ndushay/ld4p-github/sinopia_editor/node_modules/jest-environment-jsdom/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24)
at innerInvokeEventListeners (/Users/ndushay/ld4p-github/sinopia_editor/node_modules/jest-environment-jsdom/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:343:9)
at invokeEventListeners (/Users/ndushay/ld4p-github/sinopia_editor/node_modules/jest-environment-jsdom/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:276:3)
at HTMLAnchorElementImpl._dispatch (/Users/ndushay/ld4p-github/sinopia_editor/node_modules/jest-environment-jsdom/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:207:9)
at HTMLAnchorElementImpl.dispatchEvent (/Users/ndushay/ld4p-github/sinopia_editor/node_modules/jest-environment-jsdom/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:94:17)
at HTMLAnchorElement.dispatchEvent (/Users/ndushay/ld4p-github/sinopia_editor/node_modules/jest-environment-jsdom/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34)
at /Users/ndushay/ld4p-github/sinopia_editor/node_modules/@testing-library/dom/dist/events.js:19:20
at /Users/ndushay/ld4p-github/sinopia_editor/node_modules/@testing-library/react/dist/pure.js:66:16
at batchedUpdates$1 (/Users/ndushay/ld4p-github/sinopia_editor/node_modules/react-dom/cjs/react-dom.development.js:22380:12)
at act (/Users/ndushay/ld4p-github/sinopia_editor/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1042:14) {
detail: DOMException {},
type: 'unhandled exception'
}
at console.Object.<anonymous>.console.error (node_modules/jest-prop-type-error/index.js:8:9)
● <Search /> › retains sort order when paging
SyntaxError: '.disabled):not(:disabled)' is not a valid selector
at emit (node_modules/nwsapi/src/nwsapi.js:557:17)
at Object._matches [as match] (node_modules/nwsapi/src/nwsapi.js:1400:9)
at Array.Resolver (eval at compile (node_modules/nwsapi/src/nwsapi.js:760:17), <anonymous>:3:105)
at collect (node_modules/nwsapi/src/nwsapi.js:1552:21)
at Object._querySelectorAll [as select] (node_modules/nwsapi/src/nwsapi.js:1509:36)
at Document.querySelectorAll (node_modules/bootstrap/js/src/dom/event-handler.js:104:33)
Tests Hang
The tests for this PR are hanging, without information. Running the tests locally, even with test-verbose:
Does not show any activity except checkpoints in the docker containers: