Page MenuHomePhabricator

[cashtab-components] upgrading jest
ClosedPublic

Authored by bytesofman on Sep 19 2022, 18:18.

Details

Reviewers
emack
Group Reviewers
Restricted Project
Commits
rABC46b9125f603c: [cashtab-components] upgrading jest
Summary

T2678

Depends on D12005

Upgrading jest to resolve dependabot alerts

Test Plan

npm test and unit test passes
npm run build and build completes

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Tail of the build log:

  npm audit fix --force

Run `npm audit` for details.
npm notice 
npm notice New major version of npm available! 7.7.6 -> 8.19.2
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.19.2>
npm notice Run `npm install -g npm@8.19.2` to update!
npm notice 

> cashtab-components@1.0.2 build
> rm -rf dist/ && webpack --mode=production

assets by path atoms/ 1.88 KiB 12 assets
assets by path components/ 15 KiB 10 assets
assets by path utils/ 5.6 KiB
  asset utils/currency-helpers.d.ts 4.51 KiB [emitted]
  asset utils/cashtab-helpers.d.ts 1.01 KiB [emitted]
  + 2 assets
assets by path hoc/ 6.5 KiB
  asset hoc/CashtabBase/CashtabBase.d.ts 6.23 KiB [emitted]
  asset hoc/CashtabBase/index.d.ts 218 bytes [emitted]
  asset hoc/index.d.ts 56 bytes [emitted]
assets by path images/*.ts 134 bytes
  asset images/CheckSVG.d.ts 68 bytes [emitted]
  asset images/LoadSVG.d.ts 66 bytes [emitted]
asset index.js 138 KiB [emitted] [minimized] (name: main) 1 related asset
asset index.d.ts 103 bytes [emitted]
orphan modules 211 KiB [orphan] 30 modules
runtime modules 1.19 KiB 5 modules
built modules 275 KiB [built]
  cacheable modules 63.9 KiB
    modules by path ./node_modules/lodash/*.js 13.9 KiB 14 modules
    modules by path ./node_modules/qr.js/lib/*.js 24.8 KiB 9 modules
    modules by path ./node_modules/prop-types/ 2.6 KiB 3 modules
    modules by path ./node_modules/react/ 1.15 KiB
      ./node_modules/react/jsx-runtime.js 214 bytes [built] [code generated]
      ./node_modules/react/cjs/react-jsx-runtime.production.min.js 962 bytes [built] [code generated]
    ./node_modules/qrcode.react/lib/index.js 19.4 KiB [built] [code generated]
    ./node_modules/object-assign/index.js 2.06 KiB [built] [code generated]
  ./src/index.ts + 30 modules 211 KiB [not cacheable] [built] [code generated]
  external {"commonjs2":"react","commonjs":"react","amd":"react"} 42 bytes [built] [code generated]
webpack 5.74.0 compiled successfully in 7069 ms

> cashtab-components@1.0.2 test
> jest "--reporters=default" "--reporters=jest-junit"

Error: Could not resolve a module for a custom reporter.
  Module name: jest-junit
    at /work/web/cashtab-components/node_modules/jest-config/build/normalize.js:509:15
    at Array.map (<anonymous>)
    at normalizeReporters (/work/web/cashtab-components/node_modules/jest-config/build/normalize.js:491:20)
    at /work/web/cashtab-components/node_modules/jest-config/build/normalize.js:863:17
    at Array.reduce (<anonymous>)
    at normalize (/work/web/cashtab-components/node_modules/jest-config/build/normalize.js:716:14)
    at readConfig (/work/web/cashtab-components/node_modules/jest-config/build/index.js:219:74)
    at async readConfigs (/work/web/cashtab-components/node_modules/jest-config/build/index.js:404:26)
    at async runCLI (/work/web/cashtab-components/node_modules/@jest/core/build/cli/index.js:182:59)
    at async Object.run (/work/web/cashtab-components/node_modules/jest-cli/build/cli/index.js:155:37)
mv: cannot stat 'test': No such file or directory
Build cashtab-components-tests failed with exit code 1
This revision is now accepted and ready to land.Sep 20 2022, 13:53
This revision was automatically updated to reflect the committed changes.