( siteIndexingConfig: SiteIndexingConfig, )
| 74 | }; |
| 75 | |
| 76 | const removeFromFailedGlobalContext = ( |
| 77 | siteIndexingConfig: SiteIndexingConfig, |
| 78 | ) => { |
| 79 | const globalContext = new GlobalContext(); |
| 80 | const failedDocs = globalContext.get("failedDocs") ?? []; |
| 81 | const newFailedDocs = failedDocs.filter( |
| 82 | (d) => !docConfigsAreEqual(siteIndexingConfig, d), |
| 83 | ); |
| 84 | globalContext.update("failedDocs", newFailedDocs); |
| 85 | }; |
| 86 | |
| 87 | const hasIndexingFailed = (siteIndexingConfig: SiteIndexingConfig) => { |
| 88 | const globalContext = new GlobalContext(); |
no test coverage detected