Fix incorrect to.contain transformation

For `to.contain`, `jest-codemods` seems to have converted these to be
`expect.arrayContaining`, even for strings. This will make the correct
change for strings.
This commit is contained in:
Koen Vlaswinkel
2022-11-24 10:20:23 +01:00
parent d02a5cd3dc
commit 31b64d2f73

View File

@@ -95,9 +95,9 @@ describe("Use cli", () => {
console.log(`resolving printAST queries for ${lang}`);
const pack = await getQlPackForDbscheme(cli, languageToDbScheme[lang]);
expect(pack.dbschemePack).toEqual(expect.arrayContaining([lang]));
expect(pack.dbschemePack).toContain(lang);
if (pack.dbschemePackIsLibraryPack) {
expect(pack.queryPack).toEqual(expect.arrayContaining([lang]));
expect(pack.queryPack).toContain(lang);
}
const result = await resolveQueries(cli, pack, KeyType.PrintAstQuery);