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
Create a decorator with JavaScript stage 3 decorator features. (No experimentalDecorators or emitDecoratorMetadata needed)
Add a test to decorated function
Run the test with coverage report
Expected behavior
Coverage report should cover 100% of the code in every category
Actual behavior
Coverage report leave the line below the decorator as uncovered line.
Debug log
{"context":{"call":null,"logLevel":10,"namespace":"ts:serviceHost","package":"ts-jest","version":"29.2.5"},"message":"readFile","sequence":430,"time":"2024-09-04T17:35:54.788Z"}
{"context":{"fileName":"/home/s1n7ax/Workspace/decorator-issue/__tests__/app.test.ts","logLevel":20,"namespace":"ts-jest-transformer","package":"ts-jest","transformOptions":{"cacheFS":{},"collectCoverage":true,"collectCoverageFrom":["./src/**/*","!./src/server.ts"],"config":{"automock":false,"cache":true,"cacheDirectory":"/tmp/jest_rs","clearMocks":false,"collectCoverageFrom":["./src/**/*","!./src/server.ts"],"coverageDirectory":"/home/s1n7ax/Workspace/decorator-issue/coverage","coveragePathIgnorePatterns":["./dist"],"cwd":"/home/s1n7ax/Workspace/decorator-issue","detectLeaks":false,"detectOpenHandles":true,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{"computeSha1":false,"enableSymlinks":false,"forceNodeFilesystemAPI":true,"throwOnModuleCollision":false},"id":"0e9a0f71dae6fa2d56bf23e07acbfba6","injectGlobals":true,"moduleDirectories":["node_modules"],"moduleFileExtensions":["js","mjs","cjs","jsx","ts","tsx","json","node"],"moduleNameMapper":[],"modulePathIgnorePatterns":["./dist"],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/home/s1n7ax/Workspace/decorator-issue","roots":["/home/s1n7ax/Workspace/decorator-issue"],"runner":"/home/s1n7ax/Workspace/decorator-issue/node_modules/jest-runner/build/index.js","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"slowTestThreshold":5,"snapshotFormat":{"escapeString":false,"printBasicPrototype":false},"snapshotSerializers":[],"testEnvironment":"/home/s1n7ax/Workspace/decorator-issue/node_modules/jest-environment-node/build/index.js","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":["**/__tests__/**/*.[jt]s?(x)","**/?(*.)+(spec|test).[tj]s?(x)"],"testPathIgnorePatterns":["/node_modules/"],"testRegex":[],"testRunner":"/home/s1n7ax/Workspace/decorator-issue/node_modules/jest-circus/runner.js","transform":[[".*","/home/s1n7ax/Workspace/decorator-issue/node_modules/ts-jest/dist/index.js",{"ignoreCoverageForAllDecorators":true}]],"transformIgnorePatterns":["/node_modules/","\\.pnp\\.[^\\/]+$"],"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/tmp/jest_rs\",\"clearMocks\":false,\"collectCoverageFrom\":[\"./src/**/*\",\"!./src/server.ts\"],\"coverageDirectory\":\"/home/s1n7ax/Workspace/decorator-issue/coverage\",\"coveragePathIgnorePatterns\":[\"./dist\"],\"cwd\":\"/home/s1n7ax/Workspace/decorator-issue\",\"detectLeaks\":false,\"detectOpenHandles\":true,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{\"computeSha1\":false,\"enableSymlinks\":false,\"forceNodeFilesystemAPI\":true,\"throwOnModuleCollision\":false},\"id\":\"0e9a0f71dae6fa2d56bf23e07acbfba6\",\"injectGlobals\":true,\"moduleDirectories\":[\"node_modules\"],\"moduleFileExtensions\":[\"js\",\"mjs\",\"cjs\",\"jsx\",\"ts\",\"tsx\",\"json\",\"node\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[\"./dist\"],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/home/s1n7ax/Workspace/decorator-issue\",\"roots\":[\"/home/s1n7ax/Workspace/decorator-issue\"],\"runner\":\"/home/s1n7ax/Workspace/decorator-issue/node_modules/jest-runner/build/index.js\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{\"escapeString\":false,\"printBasicPrototype\":false},\"snapshotSerializers\":[],\"testEnvironment\":\"/home/s1n7ax/Workspace/decorator-issue/node_modules/jest-environment-node/build/index.js\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[\"**/__tests__/**/*.[jt]s?(x)\",\"**/?(*.)+(spec|test).[tj]s?(x)\"],\"testPathIgnorePatterns\":[\"/node_modules/\"],\"testRegex\":[],\"testRunner\":\"/home/s1n7ax/Workspace/decorator-issue/node_modules/jest-circus/runner.js\",\"transform\":[[\".*\",\"/home/s1n7ax/Workspace/decorator-issue/node_modules/ts-jest/dist/index.js\",{\"ignoreCoverageForAllDecorators\":true}]],\"transformIgnorePatterns\":[\"/node_modules/\",\"\\\\.pnp\\\\.[^\\\\/]+$\"],\"watchPathIgnorePatterns\":[]}","coverageProvider":"babel","instrument":false,"isInternalModule":false,"supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"transformerConfig":{"ignoreCoverageForAllDecorators":true}},"version":"29.2.5"},"message":"computing cache key for /home/s1n7ax/Workspace/decorator-issue/__tests__/app.test.ts","sequence":431,"time":"2024-09-04T17:35:55.005Z"}
{"context":{"fileName":"/home/s1n7ax/Workspace/decorator-issue/__tests__/app.test.ts","logLevel":20,"namespace":"ts-jest-transformer","package":"ts-jest","transformOptions":{"cacheFS":{},"collectCoverage":true,"collectCoverageFrom":["./src/**/*","!./src/server.ts"],"config":{"automock":false,"cache":true,"cacheDirectory":"/tmp/jest_rs","clearMocks":false,"collectCoverageFrom":["./src/**/*","!./src/server.ts"],"coverageDirectory":"/home/s1n7ax/Workspace/decorator-issue/coverage","coveragePathIgnorePatterns":["./dist"],"cwd":"/home/s1n7ax/Workspace/decorator-issue","detectLeaks":false,"detectOpenHandles":true,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{"computeSha1":false,"enableSymlinks":false,"forceNodeFilesystemAPI":true,"throwOnModuleCollision":false},"id":"0e9a0f71dae6fa2d56bf23e07acbfba6","injectGlobals":true,"moduleDirectories":["node_modules"],"moduleFileExtensions":["js","mjs","cjs","jsx","ts","tsx","json","node"],"moduleNameMapper":[],"modulePathIgnorePatterns":["./dist"],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/home/s1n7ax/Workspace/decorator-issue","roots":["/home/s1n7ax/Workspace/decorator-issue"],"runner":"/home/s1n7ax/Workspace/decorator-issue/node_modules/jest-runner/build/index.js","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"slowTestThreshold":5,"snapshotFormat":{"escapeString":false,"printBasicPrototype":false},"snapshotSerializers":[],"testEnvironment":"/home/s1n7ax/Workspace/decorator-issue/node_modules/jest-environment-node/build/index.js","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":["**/__tests__/**/*.[jt]s?(x)","**/?(*.)+(spec|test).[tj]s?(x)"],"testPathIgnorePatterns":["/node_modules/"],"testRegex":[],"testRunner":"/home/s1n7ax/Workspace/decorator-issue/node_modules/jest-circus/runner.js","transform":[[".*","/home/s1n7ax/Workspace/decorator-issue/node_modules/ts-jest/dist/index.js",{"ignoreCoverageForAllDecorators":true}]],"transformIgnorePatterns":["/node_modules/","\\.pnp\\.[^\\/]+$"],"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/tmp/jest_rs\",\"clearMocks\":false,\"collectCoverageFrom\":[\"./src/**/*\",\"!./src/server.ts\"],\"coverageDirectory\":\"/home/s1n7ax/Workspace/decorator-issue/coverage\",\"coveragePathIgnorePatterns\":[\"./dist\"],\"cwd\":\"/home/s1n7ax/Workspace/decorator-issue\",\"detectLeaks\":false,\"detectOpenHandles\":true,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{\"computeSha1\":false,\"enableSymlinks\":false,\"forceNodeFilesystemAPI\":true,\"throwOnModuleCollision\":false},\"id\":\"0e9a0f71dae6fa2d56bf23e07acbfba6\",\"injectGlobals\":true,\"moduleDirectories\":[\"node_modules\"],\"moduleFileExtensions\":[\"js\",\"mjs\",\"cjs\",\"jsx\",\"ts\",\"tsx\",\"json\",\"node\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[\"./dist\"],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/home/s1n7ax/Workspace/decorator-issue\",\"roots\":[\"/home/s1n7ax/Workspace/decorator-issue\"],\"runner\":\"/home/s1n7ax/Workspace/decorator-issue/node_modules/jest-runner/build/index.js\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{\"escapeString\":false,\"printBasicPrototype\":false},\"snapshotSerializers\":[],\"testEnvironment\":\"/home/s1n7ax/Workspace/decorator-issue/node_modules/jest-environment-node/build/index.js\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[\"**/__tests__/**/*.[jt]s?(x)\",\"**/?(*.)+(spec|test).[tj]s?(x)\"],\"testPathIgnorePatterns\":[\"/node_modules/\"],\"testRegex\":[],\"testRunner\":\"/home/s1n7ax/Workspace/decorator-issue/node_modules/jest-circus/runner.js\",\"transform\":[[\".*\",\"/home/s1n7ax/Workspace/decorator-issue/node_modules/ts-jest/dist/index.js\",{\"ignoreCoverageForAllDecorators\":true}]],\"transformIgnorePatterns\":[\"/node_modules/\",\"\\\\.pnp\\\\.[^\\\\/]+$\"],\"watchPathIgnorePatterns\":[]}","coverageProvider":"babel","instrument":false,"isInternalModule":false,"supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"transformerConfig":{"ignoreCoverageForAllDecorators":true}},"version":"29.2.5"},"message":"getting resolved modules from TypeScript API for /home/s1n7ax/Workspace/decorator-issue/__tests__/app.test.ts","sequence":432,"time":"2024-09-04T17:35:55.005Z"}
{"context":{"fileName":"/home/s1n7ax/Workspace/decorator-issue/__tests__/app.test.ts","logLevel":20,"namespace":"ts-compiler","package":"ts-jest","version":"29.2.5"},"message":"getResolvedModules(): resolve direct imported module paths","sequence":433,"time":"2024-09-04T17:35:55.005Z"}
{"context":{"fileName":"/home/s1n7ax/Workspace/decorator-issue/__tests__/app.test.ts","logLevel":20,"namespace":"ts-compiler","package":"ts-jest","version":"29.2.5"},"message":"getResolvedModules(): resolve nested imported module paths from directed imported module paths","sequence":434,"time":"2024-09-04T17:35:55.006Z"}
{"context":{"call":null,"logLevel":10,"namespace":"ts:serviceHost","package":"ts-jest","version":"29.2.5"},"message":"readFile","sequence":435,"time":"2024-09-04T17:35:55.006Z"}
{"context":{"fileName":"/home/s1n7ax/Workspace/decorator-issue/src/app.ts","logLevel":20,"namespace":"ts-jest-transformer","package":"ts-jest","transformOptions":{"cacheFS":{},"collectCoverage":true,"collectCoverageFrom":["./src/**/*","!./src/server.ts"],"config":{"automock":false,"cache":true,"cacheDirectory":"/tmp/jest_rs","clearMocks":false,"collectCoverageFrom":["./src/**/*","!./src/server.ts"],"coverageDirectory":"/home/s1n7ax/Workspace/decorator-issue/coverage","coveragePathIgnorePatterns":["./dist"],"cwd":"/home/s1n7ax/Workspace/decorator-issue","detectLeaks":false,"detectOpenHandles":true,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{"computeSha1":false,"enableSymlinks":false,"forceNodeFilesystemAPI":true,"throwOnModuleCollision":false},"id":"0e9a0f71dae6fa2d56bf23e07acbfba6","injectGlobals":true,"moduleDirectories":["node_modules"],"moduleFileExtensions":["js","mjs","cjs","jsx","ts","tsx","json","node"],"moduleNameMapper":[],"modulePathIgnorePatterns":["./dist"],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/home/s1n7ax/Workspace/decorator-issue","roots":["/home/s1n7ax/Workspace/decorator-issue"],"runner":"/home/s1n7ax/Workspace/decorator-issue/node_modules/jest-runner/build/index.js","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"slowTestThreshold":5,"snapshotFormat":{"escapeString":false,"printBasicPrototype":false},"snapshotSerializers":[],"testEnvironment":"/home/s1n7ax/Workspace/decorator-issue/node_modules/jest-environment-node/build/index.js","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":["**/__tests__/**/*.[jt]s?(x)","**/?(*.)+(spec|test).[tj]s?(x)"],"testPathIgnorePatterns":["/node_modules/"],"testRegex":[],"testRunner":"/home/s1n7ax/Workspace/decorator-issue/node_modules/jest-circus/runner.js","transform":[[".*","/home/s1n7ax/Workspace/decorator-issue/node_modules/ts-jest/dist/index.js",{"ignoreCoverageForAllDecorators":true}]],"transformIgnorePatterns":["/node_modules/","\\.pnp\\.[^\\/]+$"],"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/tmp/jest_rs\",\"clearMocks\":false,\"collectCoverageFrom\":[\"./src/**/*\",\"!./src/server.ts\"],\"coverageDirectory\":\"/home/s1n7ax/Workspace/decorator-issue/coverage\",\"coveragePathIgnorePatterns\":[\"./dist\"],\"cwd\":\"/home/s1n7ax/Workspace/decorator-issue\",\"detectLeaks\":false,\"detectOpenHandles\":true,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{\"computeSha1\":false,\"enableSymlinks\":false,\"forceNodeFilesystemAPI\":true,\"throwOnModuleCollision\":false},\"id\":\"0e9a0f71dae6fa2d56bf23e07acbfba6\",\"injectGlobals\":true,\"moduleDirectories\":[\"node_modules\"],\"moduleFileExtensions\":[\"js\",\"mjs\",\"cjs\",\"jsx\",\"ts\",\"tsx\",\"json\",\"node\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[\"./dist\"],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/home/s1n7ax/Workspace/decorator-issue\",\"roots\":[\"/home/s1n7ax/Workspace/decorator-issue\"],\"runner\":\"/home/s1n7ax/Workspace/decorator-issue/node_modules/jest-runner/build/index.js\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{\"escapeString\":false,\"printBasicPrototype\":false},\"snapshotSerializers\":[],\"testEnvironment\":\"/home/s1n7ax/Workspace/decorator-issue/node_modules/jest-environment-node/build/index.js\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[\"**/__tests__/**/*.[jt]s?(x)\",\"**/?(*.)+(spec|test).[tj]s?(x)\"],\"testPathIgnorePatterns\":[\"/node_modules/\"],\"testRegex\":[],\"testRunner\":\"/home/s1n7ax/Workspace/decorator-issue/node_modules/jest-circus/runner.js\",\"transform\":[[\".*\",\"/home/s1n7ax/Workspace/decorator-issue/node_modules/ts-jest/dist/index.js\",{\"ignoreCoverageForAllDecorators\":true}]],\"transformIgnorePatterns\":[\"/node_modules/\",\"\\\\.pnp\\\\.[^\\\\/]+$\"],\"watchPathIgnorePatterns\":[]}","coverageProvider":"babel","instrument":true,"isInternalModule":false,"supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"transformerConfig":{"ignoreCoverageForAllDecorators":true}},"version":"29.2.5"},"message":"computing cache key for /home/s1n7ax/Workspace/decorator-issue/src/app.ts","sequence":436,"time":"2024-09-04T17:35:55.007Z"}
{"context":{"fileName":"/home/s1n7ax/Workspace/decorator-issue/src/app.ts","logLevel":20,"namespace":"ts-jest-transformer","package":"ts-jest","transformOptions":{"cacheFS":{},"collectCoverage":true,"collectCoverageFrom":["./src/**/*","!./src/server.ts"],"config":{"automock":false,"cache":true,"cacheDirectory":"/tmp/jest_rs","clearMocks":false,"collectCoverageFrom":["./src/**/*","!./src/server.ts"],"coverageDirectory":"/home/s1n7ax/Workspace/decorator-issue/coverage","coveragePathIgnorePatterns":["./dist"],"cwd":"/home/s1n7ax/Workspace/decorator-issue","detectLeaks":false,"detectOpenHandles":true,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{"computeSha1":false,"enableSymlinks":false,"forceNodeFilesystemAPI":true,"throwOnModuleCollision":false},"id":"0e9a0f71dae6fa2d56bf23e07acbfba6","injectGlobals":true,"moduleDirectories":["node_modules"],"moduleFileExtensions":["js","mjs","cjs","jsx","ts","tsx","json","node"],"moduleNameMapper":[],"modulePathIgnorePatterns":["./dist"],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/home/s1n7ax/Workspace/decorator-issue","roots":["/home/s1n7ax/Workspace/decorator-issue"],"runner":"/home/s1n7ax/Workspace/decorator-issue/node_modules/jest-runner/build/index.js","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"slowTestThreshold":5,"snapshotFormat":{"escapeString":false,"printBasicPrototype":false},"snapshotSerializers":[],"testEnvironment":"/home/s1n7ax/Workspace/decorator-issue/node_modules/jest-environment-node/build/index.js","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":["**/__tests__/**/*.[jt]s?(x)","**/?(*.)+(spec|test).[tj]s?(x)"],"testPathIgnorePatterns":["/node_modules/"],"testRegex":[],"testRunner":"/home/s1n7ax/Workspace/decorator-issue/node_modules/jest-circus/runner.js","transform":[[".*","/home/s1n7ax/Workspace/decorator-issue/node_modules/ts-jest/dist/index.js",{"ignoreCoverageForAllDecorators":true}]],"transformIgnorePatterns":["/node_modules/","\\.pnp\\.[^\\/]+$"],"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/tmp/jest_rs\",\"clearMocks\":false,\"collectCoverageFrom\":[\"./src/**/*\",\"!./src/server.ts\"],\"coverageDirectory\":\"/home/s1n7ax/Workspace/decorator-issue/coverage\",\"coveragePathIgnorePatterns\":[\"./dist\"],\"cwd\":\"/home/s1n7ax/Workspace/decorator-issue\",\"detectLeaks\":false,\"detectOpenHandles\":true,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{\"computeSha1\":false,\"enableSymlinks\":false,\"forceNodeFilesystemAPI\":true,\"throwOnModuleCollision\":false},\"id\":\"0e9a0f71dae6fa2d56bf23e07acbfba6\",\"injectGlobals\":true,\"moduleDirectories\":[\"node_modules\"],\"moduleFileExtensions\":[\"js\",\"mjs\",\"cjs\",\"jsx\",\"ts\",\"tsx\",\"json\",\"node\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[\"./dist\"],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/home/s1n7ax/Workspace/decorator-issue\",\"roots\":[\"/home/s1n7ax/Workspace/decorator-issue\"],\"runner\":\"/home/s1n7ax/Workspace/decorator-issue/node_modules/jest-runner/build/index.js\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{\"escapeString\":false,\"printBasicPrototype\":false},\"snapshotSerializers\":[],\"testEnvironment\":\"/home/s1n7ax/Workspace/decorator-issue/node_modules/jest-environment-node/build/index.js\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[\"**/__tests__/**/*.[jt]s?(x)\",\"**/?(*.)+(spec|test).[tj]s?(x)\"],\"testPathIgnorePatterns\":[\"/node_modules/\"],\"testRegex\":[],\"testRunner\":\"/home/s1n7ax/Workspace/decorator-issue/node_modules/jest-circus/runner.js\",\"transform\":[[\".*\",\"/home/s1n7ax/Workspace/decorator-issue/node_modules/ts-jest/dist/index.js\",{\"ignoreCoverageForAllDecorators\":true}]],\"transformIgnorePatterns\":[\"/node_modules/\",\"\\\\.pnp\\\\.[^\\\\/]+$\"],\"watchPathIgnorePatterns\":[]}","coverageProvider":"babel","instrument":true,"isInternalModule":false,"supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"transformerConfig":{"ignoreCoverageForAllDecorators":true}},"version":"29.2.5"},"message":"getting resolved modules from TypeScript API for /home/s1n7ax/Workspace/decorator-issue/src/app.ts","sequence":437,"time":"2024-09-04T17:35:55.008Z"}
{"context":{"fileName":"/home/s1n7ax/Workspace/decorator-issue/src/app.ts","logLevel":20,"namespace":"ts-compiler","package":"ts-jest","version":"29.2.5"},"message":"getResolvedModules(): resolve direct imported module paths","sequence":438,"time":"2024-09-04T17:35:55.008Z"}
{"context":{"fileName":"/home/s1n7ax/Workspace/decorator-issue/src/app.ts","logLevel":20,"namespace":"ts-compiler","package":"ts-jest","version":"29.2.5"},"message":"getResolvedModules(): resolve nested imported module paths from directed imported module paths","sequence":439,"time":"2024-09-04T17:35:55.008Z"}
{"context":{"logLevel":20,"namespace":"ts-jest-transformer","package":"ts-jest","version":"29.2.5"},"message":"created new transformer","sequence":440,"time":"2024-09-04T17:35:55.028Z"}
Version
29.2.5
Steps to reproduce
experimentalDecorators
oremitDecoratorMetadata
needed)Expected behavior
Coverage report should cover 100% of the code in every category
Actual behavior
Coverage report leave the line below the decorator as uncovered line.
Debug log
Additional context
Repo where you can recreate this issue:
https://github.com/srinesha/decorator-coverage-issue
Environment
The text was updated successfully, but these errors were encountered: