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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user