node-tdd icon indicating copy to clipboard operation
node-tdd copied to clipboard

Not displaying the tests passed and % coverage

Open zahidirfan opened this issue 6 years ago • 2 comments

The results are not displayed in the status bar. I have restarted everything NodeTDD extension, VS Code and Laptop.

I am using the following :

  • macOS High Sierra Version 10.13.6
  • VS Code Version 1.29.1 (1.29.1)
  • Node Version : 11.2.0
  • Mocha Version : 5.2.0
  • NodeTDD version : 0.2.4

The bug screen shot : TDD results not shown

Zipped Project Folder is also attached for reference :

mocha-TDD.zip

zahidirfan avatar Dec 10 '18 09:12 zahidirfan

Did you change Settings -> Glob? It is {src,test}/**/*.{js,ts,jsx,tsx} by default

MarsiBarsi avatar Jul 17 '19 14:07 MarsiBarsi

Hi,

Thanks for the extension !

On the following setup it works !! BUT it is very sensitive !! on the percent part so source control it very carefully (check very often and revert quickly) At the moment I cannot get this extension and ESlint to work at the same time

Here is my setup macOS Catalina Version 10.15.3 VS Code Version 1.43.1 Node.js v13.8.0 NodeTDD version : 0.2.4

jest.config.js (full file here)

module.exports = {
  roots: ["<rootDir>/test"],
  testMatch: ["**/*.test.ts"],
  transform: {
    "^.+\\.tsx?$": "ts-jest",
  },
  reporters: ["jest-tap-reporter"],
  collectCoverage: true,
  coverageThreshold: {
    global: {
      branches: 80,
      functions: 80,
      lines: 80,
      statements: 80,
    },
  },
  coverageReporters: ["tap"],
};

Chewbee avatar Mar 19 '20 20:03 Chewbee