Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Manual Mocks for scoped packages #1774
Is it possible to create a manual mock for a scoped package? Since the file system doesn't allow for @scoped/package.js as a file name, I tried creating a @Scoped directory with a package.js file that exports a mock
but I'm just getting the default jest mocking behavior when calling jest.mock('@scoped/package') within a test file.