getMockNanoSpawn = async (mockReturnValue) => {
  jest.unstable_mockModule('nano-spawn', () => {
    return {
      default: jest.fn(() => mockNanoSpawnReturnValue(mockReturnValue)),
      SubprocessError,
    }
  })

  return import('nano-spawn')
}
@returns {Promise<jest.Mocked<import('nano-spawn')>>}