[Bug] Mochapack always runs into AWS Codebuild Segmentation fault (core dumped)
- [ ] I'd be willing to submit the fix
Describe the bug
Running mochapack on our CI using AWS Codebuild it randomlys returns an error of: segmentation fault (core dumped) and fails the unit test. It feels like a chance of success and fail using mochapack.
To Reproduce
Unfortunately the code is private property of the organization.
Screenshots
Running command yarn coverage:dot --timeout=45000
113 | yarn run .22.19 114 | $ nyc npm run test:dot --timeout=45000 115 | 116 | > [email protected] test:dot 117 | > mochapack -R dot --recursive -r tests/setup.js --webpack-config mochapack.config.js "{,!(node_modules)//}*.spec.js" 118 | 119 | WEBPACK Compiling... 120 | 121 | WEBPACK Compiled successfully in 4953ms 122 | 123 | MOCHA Testing... 124 | 125 | Segmentation fault (core dumped) 126 | ERROR: Coverage for lines (0%) does not meet global threshold (90%) 127 | ERROR: Coverage for functions (0%) does not meet global threshold (90%) 128 | ERROR: Coverage for branches (0%) does not meet global threshold (80%) 129 | ERROR: Coverage for statements (0%) does not meet global threshold (90%)
Environment if relevant (please complete the following information):
- OS:
- Ubuntu on CI
22.04 - Windows locally using Node:
16.15.X
- Ubuntu on CI
- Node version:
node/16.15.1 - NPM version:
8.11.0 - Mochapack version:
^2.1.4 - Mocha version:
^9.2.1 - Nuxt:
^2.15.8 - Webpack version:
@nuxt/webpack: 2.15.8
Additional context
Also happens locally where mochapack will randomly fail test.