mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-01 09:47:56 +08:00
This significantly speeds up Karma execution times to about 12 seconds on an unchanged build folder. It uses the Ninja build output to find the unittest files. You can run the new script with: npm run unittest npm run unittest -- --target=Release To make sure you perform a minimal build and run tests right after it, run: npm run auto-unittest npm run auto-unittest -- --target=Release If no ninja-build-name is set, it assumes that `out/Default` exists. The `auto-unittest` command will run autoninja for you on the output folder. R=jacktfranklin@chromium.org,aerotwist@chromium.org No-Presubmit: true Bug: 1061125 Change-Id: I45edd11e422c5cdc8a4fc0bbb6bc43e386519aa9 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2102717 Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org> Reviewed-by: Brandon Goddard <brgoddar@microsoft.com> Reviewed-by: Jack Franklin <jacktfranklin@chromium.org> Reviewed-by: Paul Lewis <aerotwist@chromium.org>