mirror of
https://github.com/logto-io/logto.git
synced 2025-01-06 20:40:08 -05:00
20 lines
429 B
TypeScript
20 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 {};
|