Skip to content
This repository was archived by the owner on Aug 13, 2025. It is now read-only.

Using intermock in tests ? #53

@bogdan-calapod

Description

@bogdan-calapod

Hello there and thank you for this great project!

I wanted to use intermock to generate stub data while testing. I tried to run it as:

import {mock} from 'intermock'

describe('generate mocked types', () => {
   it('should generate mocked types', () => {
     const mck = mock({files: [['./types.ts', 'MyType']]})
     console.log(mck)
  }
})

But whenever I run this, mck is empty ({}) - any idea what I'm doing wrong ? There's no error printed to the terminal, so I'm thinking that I'm doing something wrong somewhere 🤔

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions