Merge pull request #10861 from backstage/rugvip/test-speed

cli: added experimental test configuration and module loader
This commit is contained in:
Fredrik Adelöw
2022-04-16 18:30:11 +02:00
committed by GitHub
8 changed files with 108 additions and 2 deletions
+7
View File
@@ -0,0 +1,7 @@
---
'@backstage/cli': patch
---
Introduced a new experimental test configuration with a number of changes. It switches the coverage provider from `v8` to the default Babel provider, along with always enabling source maps in the Sucrase transform. It also adds a custom module loader that caches both file transforms and VM script objects across all projects in a test run, which provides a big performance boost when running tests from the project root, increasing speed and reducing memory usage.
This new configuration is not enabled by default. It is enabled by setting the environment variable `BACKSTAGE_NEXT_TESTS` to a non-empty value.