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
Have been running gulp-mocha 6.0.0/gulp 3.9.1 on script builds--tests ran well. However, gulp 3.9.1 dependencies have (minimatch) ReDOS vulnerabilities. Updating to Gulp 4 (including moving away from gulp-utils) to resolve. After my update, my gulp-mocha tests aren't running, printing, although artifacts from my builds are being generated to expectations. If you can help me spot any obvious errors (syntax or otherwise), that would be super helpful. Below is a before and after:
(node:3916) DeprecationWarning: "--compilers" will be removed in a future version of Mocha; see https://git.io/vdcSr for more info
attachHandlers
✓ attaches all the event handlers without duplicates
✓ debounces bufferedEvents (505ms)
defineDetails
- configures high detail events correctly
configure
✓ merges new configs into main config object
✓ includes a userid if present in the window.location
getUserIdFromParams
✓ fetches userId from URL params
✓ returns null if no matching param
getInitialSettings
timeStampScale
✓ no event.timestamp
✓ zero
✓ epoch milliseconds
✓ epoch microseconds
✓ performance navigation time
getInitialSettings
✓ fetches all settings from a script tag (101ms)
✓ grabs user id from params
Userale API
✓ provides configs
✓ edits configs
✓ starts + stops (216ms)
✓ sends custom logs
packageLogs
setLogFilter
✓ assigns the handler to the provided value
✓ allows the handler to be nulled
setLogMapper
✓ assigns the handler to the provided value
✓ allows the handler to be nulled
packageLog
✓ only executes if on
✓ calls detailFcn with the event as an argument if provided
✓ packages logs
✓ filters logs when a handler is assigned and returns false
✓ assigns logs to the mapper's return value if a handler is assigned
✓ does not call the map handler if the log is filtered out
✓ does not attempt to call a non-function filter/mapper
extractTimeFields
✓ returns the millisecond and microsecond portions of a timestamp
✓ sets micro to 0 when no decimal is present
✓ always returns an object
getLocation
✓ returns event page location
✓ calculates page location if unavailable
✓ fails to null
selectorizePath
✓ returns a new array of the same length provided
getSelector
✓ builds a selector
✓ identifies window
✓ handles a non-null unknown value
buildPath
✓ builds a path
✓ defaults to path if available
sendLogs
✓ sends logs on an interval
✓ does not send logs if the config is off
✓ sends logs on page exit with navigator
✓ sends logs on page exit without navigator
✓ does not send logs on page exit if config is off
45 passing (951ms)
1 pending
[23:03:15] Finished 'test' after 3.29 s
gulpfile mods for Gulp 4 (substituing gulplog for gulp-utils)
I see that devDependencies for gulp-mocha list 3.9.1, but Gulp is posting recipes with gulp-mocha in Gulp 4 syntax (https://gulpjs.org/recipes/mocha-test-runner-with-gulp.html), so I figured gulp-mocha would work with syntax mods... Plz let me know if that is not the case.
Thnx
-J
The text was updated successfully, but these errors were encountered:
Hello,
Have been running gulp-mocha 6.0.0/gulp 3.9.1 on script builds--tests ran well. However, gulp 3.9.1 dependencies have (minimatch) ReDOS vulnerabilities. Updating to Gulp 4 (including moving away from gulp-utils) to resolve. After my update, my gulp-mocha tests aren't running, printing, although artifacts from my builds are being generated to expectations. If you can help me spot any obvious errors (syntax or otherwise), that would be super helpful. Below is a before and after:
gulpfile with Gulp 3.9.1 (successful tests)
Output
gulpfile mods for Gulp 4 (substituing gulplog for gulp-utils)
I get no output. Tests finish too fast--likely not running and printing errors. See any obvious mistakes? Source, tests, and full gulpfile can be found here: https://github.com/apache/incubator-senssoft-useralejs/tree/SENSSOFT-192
I see that devDependencies for gulp-mocha list 3.9.1, but Gulp is posting recipes with gulp-mocha in Gulp 4 syntax (https://gulpjs.org/recipes/mocha-test-runner-with-gulp.html), so I figured gulp-mocha would work with syntax mods... Plz let me know if that is not the case.
Thnx
-J
The text was updated successfully, but these errors were encountered: