skip to Main Content

Javascript – Vitest Mock Factory Never Called

Here is my code: import { it, describe, expect, vi, beforeEach } from 'vitest'; const ClientAuthenticator = require('../src/client-authenticator'); const { ssmClient, getParameterCommand } = require('../src/helpers/aws'); const ssmClientMock = vi.fn(); const getParameterCommandMock = vi.fn(); vi.mock('../src/helpers/aws', () => { return { ssmClient:…

VIEW QUESTION
Back To Top
Search