infosum / cypress-tags

Use custom tags to slice up Cypress test runs
83 stars 20 forks source link

When setting CYPRESS_INCLUDE_TAGS with a single numeric tag the library crashes #259

Open davidcarguz opened 9 months ago

davidcarguz commented 9 months ago

When setting the CYPRESS_INCLUDE_TAGS with a single numeric tag (1243) the library crashes when trying to split the includeEnvVar. Below Stacktrace of the error: TypeError: includeEnvVar.split is not a function at extractTags (/home/vsts/work/1/s/CMCloudSPA/node_modules/cypress-tags/dist/index.js:57:55) at /home/vsts/work/1/s/CMCloudSPA/node_modules/cypress-tags/dist/index.js:161:42 at transformation (/home/vsts/work/1/s/CMCloudSPA/node_modules/typescript/lib/typescript.js:107888:24) at Object.transformNodes (/home/vsts/work/1/s/CMCloudSPA/node_modules/typescript/lib/typescript.js:107899:78) at Object.transform (/home/vsts/work/1/s/CMCloudSPA/node_modules/typescript/lib/typescript.js:164130:25) at processFile (/home/vsts/work/1/s/CMCloudSPA/node_modules/cypress-tags/dist/index.js:223:52) at Stream.onend (/home/vsts/work/1/s/CMCloudSPA/node_modules/cypress-tags/dist/index.js:234:20) at _end (/home/vsts/work/1/s/CMCloudSPA/node_modules/through/index.js:65:9) at Stream.stream.end (/home/vsts/work/1/s/CMCloudSPA/node_modules/through/index.js:74:5) at DestroyableTransform.onend (/home/vsts/work/1/s/CMCloudSPA/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:577:10) at Object.onceWrapper (node:events:645:28) at DestroyableTransform.emit (node:events:538:35) at DestroyableTransform.emit (node:domain:475:12) at endReadableNT (/home/vsts/work/1/s/CMCloudSPA/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:1010:12) at processTicksAndRejections (node:internal/process/task_queues:83:21)