One of the new features in Cypress 12 is the testIsolation property. As I work on upgrading from version 11 to 13, I've encountered an issue with this property. According to the documentation, it should be a string:
(property) testIsolation?: "on" | "off" | null | undefined
However, when I try to use 'on', TypeScript throws an error:
cypress.config.ts(72,9): error TS2322: Type 'string' is not assignable to type 'boolean | undefined'.
This raises the question - is testIsolation meant to be a boolean or a string? The official Cypress documentation suggests it's a boolean: https://docs.cypress.io/guides/core-concepts/test-isolation But that doesn't seem to be working for me.
Do I need to somehow inform TypeScript about Cypress types?