Yesterday the CI failed on my PR and not on my branch. I looked for what could have cause this error but couldn't find anything. After relaunching the CI, all is green now. I'll put the traces on if anyone finds out
FAIL packages/cozy-pouch-link/src/PouchManager.spec.js
● PouchManager › should call on sync with doctype updates
expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
Object {
- "io.cozy.todos": Array [
- Object {
- "_id": "1",
- "name": "Make replication work",
- },
- Object {
- "_id": "2",
- "name": "Profit!",
- },
- ],
+ "io.cozy.todos": Array [],
},
Number of calls: 1
216 | onSync.mockReset()
217 | await manager.replicateOnce()
> 218 | expect(onSync).toHaveBeenCalledWith({
| ^
219 | 'io.cozy.todos': [
220 | {
221 | _id: '1',
at _callee9$ (packages/cozy-pouch-link/src/PouchManager.spec.js:218:20)
at tryCatch (node_modules/regenerator-runtime/runtime.js:63:40)
at Generator.invoke [as _invoke] (node_modules/regenerator-runtime/runtime.js:293:22)
at Generator.next (node_modules/regenerator-runtime/runtime.js:118:21)
at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)
Yesterday the CI failed on my PR and not on my branch. I looked for what could have cause this error but couldn't find anything. After relaunching the CI, all is green now. I'll put the traces on if anyone finds out