async function importMock(modulePath, importMeta) {
  const mock = await import(new URL(modulePath, importMeta.url).href);
  if (!Object.keys(mock).some(key => mock[key]?.mock)) {
    throw new Error(`${modulePath} was not mocked!`);
  }
  return mock;
}
Use to import a module in tests with Mock types.
Asserts that the module is actually a mock.
Resolves module path relative to importMeta.url.

@param {string} modulePath
@param {ImportMeta} importMeta
@return {Promise<Record<string, Mock<any>>>}