You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue is the code coverage only seems to be working for the common module, not app1 or app2. See screenshot. This has me quite confused! Any ideas much appreciated.
Wallaby.js configuration file
//// Wallaby config reads tsconfig.json and jest.config.js out of the box//module.exports=function(wallaby){return{files: ['**/src/**/*.{ts,tsx}',{pattern: '**/*.json',instrument: false},{pattern: '**/*.js',instrument: false},'!**/src/**/*.test.{ts,tsx}','!**/src/**/*.story.tsx','!**/node_modules/**/*','!**/dist/**/*',],tests: ['**/src/**/*.test.{ts,tsx}','!**/node_modules/**/*'],env: {type: 'node',runner: 'node'},testFramework: 'jest',// make wallaby following lerna packagessetup: ()=>{constjestConfig=require('./jest.config');jestConfig.moduleNameMapper={
...jestConfig.moduleNameMapper,'^@monorepo/common/(.*)$': '<rootDir>/common/src/$1',};wallaby.testFramework.configure(jestConfig);},reportConsoleErrorAsError: true,lowCoverageThreshold: 80,debug: true,};};
Code editor or IDE name and version
Visual Studio Code v1.28.2
OS name and version
Windows 10
The text was updated successfully, but these errors were encountered:
Issue description or question
I've setup an example monorepo for lerna + typescript 3 with project references + jest etc here:
https://github.com/axelnormand/react-typescript-monorepo
The issue is the code coverage only seems to be working for the common module, not app1 or app2. See screenshot. This has me quite confused! Any ideas much appreciated.
Wallaby.js configuration file
Code editor or IDE name and version
Visual Studio Code v1.28.2
OS name and version
Windows 10
The text was updated successfully, but these errors were encountered: