[js] update mocha to v11.0.1 (#23254)
### Description
Update `mocha` to v11.0.1 and `fs-extra` to v11.2.0
```
# npm audit report
nanoid <3.3.8
Severity: moderate
Predictable results in nanoid generation when given non-integer values - https://github.com/advisories/GHSA-mwcw-c2x4-8c55
fix available via `npm audit fix`
node_modules/nanoid
mocha 8.2.0 - 10.2.0
Depends on vulnerable versions of nanoid
node_modules/mocha
2 moderate severity vulnerabilities
```