Depends on D15257
Move babel settings to own file. It's otherwise not obvious they would be in package.json.
Differential D15258
[Cashtab] Remove babel settings from package.json bytesofman on Jan 23 2024, 23:53. Authored by Tags None Subscribers None
Details
Depends on D15257 Move babel settings to own file. It's otherwise not obvious they would be in package.json. Re-insert key and npm run build The hashes are unchanged (can see in extension of build/static/js/*.js files) npm test
Diff Detail
Event TimelineComment Actions Build Bitcoin ABC Diffs / Diff Testing (cashtab-tests) failed.
Tail of the build log: SyntaxError: Cannot use import statement outside a module at Module._compile (node_modules/pirates/lib/index.js:117:24) at Object.newLoader [as .js] (node_modules/pirates/lib/index.js:121:7) FAIL src/opreturn/__tests__/index.test.js ● Test suite failed to run /work/cashtab/config/jest/uint8array-environment.js:1 import JSDOMEnvironment from 'jest-environment-jsdom'; ^^^^^^ SyntaxError: Cannot use import statement outside a module at Module._compile (node_modules/pirates/lib/index.js:117:24) at Object.newLoader [as .js] (node_modules/pirates/lib/index.js:121:7) FAIL src/utils/__tests__/formatting.test.js ● Test suite failed to run /work/cashtab/config/jest/uint8array-environment.js:1 import JSDOMEnvironment from 'jest-environment-jsdom'; ^^^^^^ SyntaxError: Cannot use import statement outside a module at Module._compile (node_modules/pirates/lib/index.js:117:24) at Object.newLoader [as .js] (node_modules/pirates/lib/index.js:121:7) FAIL src/utils/__tests__/aliasUtils.test.js ● Test suite failed to run /work/cashtab/config/jest/uint8array-environment.js:1 import JSDOMEnvironment from 'jest-environment-jsdom'; ^^^^^^ SyntaxError: Cannot use import statement outside a module at Module._compile (node_modules/pirates/lib/index.js:117:24) at Object.newLoader [as .js] (node_modules/pirates/lib/index.js:121:7) FAIL src/components/Home/__tests__/Home.test.js ● Test suite failed to run /work/cashtab/config/jest/uint8array-environment.js:1 import JSDOMEnvironment from 'jest-environment-jsdom'; ^^^^^^ SyntaxError: Cannot use import statement outside a module at Module._compile (node_modules/pirates/lib/index.js:117:24) at Object.newLoader [as .js] (node_modules/pirates/lib/index.js:121:7) Test Suites: 21 failed, 21 total Tests: 0 total Snapshots: 0 total Time: 2.634 s Ran all test suites. Build cashtab-tests failed with exit code 1 |