We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b00160f commit 5c878aeCopy full SHA for 5c878ae
1 file changed
pgpm/cli/__tests__/export-parity.test.ts
@@ -32,8 +32,13 @@ jest.doMock(_graphqlClientPath, () => ({
32
}))
33
}));
34
35
-// Mock @pgpmjs/migrate-client so the ORM-based sql_actions fetch uses our test data
36
-const _migrateClientPath = '@pgpmjs/migrate-client';
+// Mock @pgpmjs/migrate-client so the ORM-based sql_actions fetch uses our test data.
+// Use an absolute path (same pattern as GraphQLClient above) so Jest can resolve
37
+// the module from pgpm/cli even though it is only a dependency of pgpm/core.
38
+const _migrateClientPath = path.resolve(
39
+ __dirname,
40
+ '../../../sdk/migrate-client/dist/index'
41
+);
42
let _mockMigrateClientFindMany: jest.Mock = jest.fn();
43
jest.doMock(_migrateClientPath, () => ({
44
createClient: jest.fn().mockImplementation(() => ({
0 commit comments