Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions __mocks__/vscode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

import * as vscodeAdapter from '../src/vscodeAdapter';
import { getFakeVsCode } from '../test/fakes';
import * as vscodeAdapter from '../src/vscodeAdapter.ts';
import { getFakeVsCode } from '../test/fakes.ts';

// This module creates a manual mock for the vscode module for running in unit tests.
// Jest will automatically pick this up as it is in the __mocks__ directory next to node_modules.
Expand Down
3 changes: 3 additions & 0 deletions baseJestConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@ import type { Config } from 'jest';
export const baseProjectConfig: Config = {
preset: 'ts-jest',
testEnvironment: 'node',
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1',
},
transformIgnorePatterns: ['/dist/.+\\.js'],
};
Loading