blob: 54f37d3322ed323c00e31076c39441c8a3dfd9ea [file] [edit]
/**
* Central definition of test "mode" strings.
*
* Cypress runs these in a bundled browser environment, so keep it lightweight
* and colocated under `cypress/support/`.
*/
export const Mode = Object.freeze({
zigbee: 'zigbee',
matter: 'matter',
multiprotocol: 'multiprotocol'
})
export const ModeValues = Object.freeze(Object.values(Mode))
// eslint-disable-next-line require-jsdoc
export function isValidMode(mode) {
return ModeValues.includes(mode)
}