export function createRoom(name = 'basement') {
return cy.dataSession({
name,
setup: () => {
// yields the new room's ID
return cy.task('makeRoom', name)
},
validate(id) {
// yields undefined if the room was not found
// which we convert into a boolean value
return cy.task('getRoom', id, { log: false }).then(Boolean)
},
shareAcrossSpecs: true,
})
} i watching this, and can’t find what is makeRoom?