feat: post-build manifest validation #4075
Annotations
2 warnings
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/cache@v3, actions/setup-node@v3, docker/login-action@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Run Jest Tests:
packages/app/src/systems/Asset/services/assets.ts#L237
Expected test not to call console.error().
If the error is expected, test for it explicitly by mocking it out using jest.spyOn(console, 'error').mockImplementation() and test that the warning occurs.
<ref *1> DexieError {
_e: Error
at getErrorWithStack (../../node_modules/.pnpm/[email protected]/node_modules/dexie/src/helpers/debug.ts:29:12)
at new DexieError (../../node_modules/.pnpm/[email protected]/node_modules/dexie/src/errors/errors.js:125:19)
at Transaction.Object.<anonymous>.Transaction._promise (../../node_modules/.pnpm/[email protected]/node_modules/dexie/src/classes/transaction/transaction.ts:156:24)
at FuelDB.Object.<anonymous>.Dexie._transaction (../../node_modules/.pnpm/[email protected]/node_modules/dexie/src/classes/dexie/dexie.ts:425:31)
at FuelDB.transaction (../../node_modules/.pnpm/[email protected]/node_modules/dexie/src/classes/dexie/dexie.ts:365:30)
at Function.getAssets (src/systems/Asset/services/assets.ts:237:15)
at fetch (src/systems/Asset/machines/assetsMachine.tsx:198:31)
at Interpreter._exec (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:269:63)
at Interpreter.exec (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:1026:10)
at Interpreter.execute (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:387:14)
at Interpreter.update (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:415:12)
at ../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:675:13
at Scheduler.process (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/scheduler.js:69:7)
at Scheduler.initialize (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/scheduler.js:32:12)
at Interpreter.start (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:674:20)
at Interpreter.spawnMachine (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:1113:8)
at Interpreter.spawn (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:1067:19)
at Interpreter._exec (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:289:21)
at handleAction (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/actions.js:596:11)
at processBlock (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/actions.js:627:24)
at Array.map (<anonymous>)
at Object.resolveActions (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/actions.js:652:52)
at StateNode.resolveTransition (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/StateNode.js:917:36)
at StateNode.transition (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/StateNode.js:840:17)
at ../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:956:28
at Object.provide (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/serviceScope.js:12:16)
at Interpreter._nextState (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:955:34)
at ../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:108:31
at Scheduler.process (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/scheduler.js:69:7)
at Scheduler.schedule (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/scheduler.js:48:10)
at Interpreter.send (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:104:23)
at ../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:1110:13
at Interpreter.update (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:498:11)
at ../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:110:15
at Scheduler.process (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/scheduler.js:69:7)
at Scheduler.schedule (../../node_modules/.pnpm/xstate@
|
Loading