0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-06 20:40:08 -05:00
logto/packages/cli/jest.setup.ts

20 lines
429 B
TypeScript
Raw Normal View History

2022-11-21 11:31:25 -05:00
/**
* 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 {};