vscode-jest-runner icon indicating copy to clipboard operation
vscode-jest-runner copied to clipboard

Support custom file extensions as set up in jest.config.ts

Open aristofun opened this issue 3 years ago • 1 comments

I see no context menu run/debug options with Jest Runner 0.4.48 on *.e2e.ts files even though my jest.config.js is:

module.exports = {
  preset: 'ts-jest',
  testEnvironment: 'node',
  globalSetup: '<rootDir>/__tests__/setup.ts',
  globalTeardown: '<rootDir>/__tests__/teardown.ts',
  testRegex: '/*/.*\\.(spec|e2e|it)\\.(ts)$',
  testPathIgnorePatterns: ['/node_modules/', '/dist/'],
};

How to make the extension see all the files actual Jest sees in the repo?

aristofun avatar Jun 12 '22 17:06 aristofun

for the explorer/context menu its hardcoded here:

https://github.com/firsttris/vscode-jest-runner/blob/master/package.json#L180

we would need to add e2e

for codeLens there is a extenion setting: jestrunner.codeLensSelector https://github.com/firsttris/vscode-jest-runner#extension-settings

firsttris avatar Jun 28 '22 11:06 firsttris