(config: SerializedConfig)
| 129 | } |
| 130 | |
| 131 | function wrapConfig(config: SerializedConfig): SerializedConfig { |
| 132 | config = { ...config } |
| 133 | |
| 134 | // workaround RegExp serialization |
| 135 | config.testNamePattern &&= config.testNamePattern.toString() as any as RegExp |
| 136 | |
| 137 | // workaround RegExp serialization |
| 138 | if (typeof config.retry === 'object') { |
| 139 | config.retry.condition &&= config.retry.condition.toString() as any as RegExp |
| 140 | } |
| 141 | |
| 142 | return config |
| 143 | } |
no test coverage detected