0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00
logto/packages/cli/jest.setup.ts
2022-11-22 16:11:29 +08:00

19 lines
429 B
TypeScript

/**
* Mocking `import.meta.url` and `got` here since they inevitably needs native ESM, but jest is sticking with CJS.
* Will figure out a way to run tests in native ESM mode.
*/
jest.mock('./src/commands/database/alteration/meta-url.js', () => ({
metaUrl: 'file:///',
}));
jest.mock('./src/meta-url.js', () => ({
metaUrl: 'file:///',
}));
jest.mock('got', () => ({
got: {},
}));
// Make lint-staged happy
export {};