From 736f893f72bde44d53db1e503eba2587c9ad1880 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Thu, 8 Dec 2022 23:22:53 +0100 Subject: [PATCH] changesets: added changeset for moving to next tests by default Signed-off-by: Patrik Oldsberg --- .changeset/neat-insects-share.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .changeset/neat-insects-share.md diff --git a/.changeset/neat-insects-share.md b/.changeset/neat-insects-share.md new file mode 100644 index 0000000000..1fadb9b9a1 --- /dev/null +++ b/.changeset/neat-insects-share.md @@ -0,0 +1,7 @@ +--- +'@backstage/cli': minor +--- + +The Jest configuration that was previously enabled with `BACKSTAGE_NEXT_TESTS` is now enabled by default. To revert to the old configuration you can now instead set `BACKSTAGE_OLD_TESTS`. + +This new configuration uses the `babel` coverage provider rather than `v8`. It used to be that `v8` worked better when using Sucrase for transpilation, but now that we have switched to SWC, `babel` seems to work better. In addition, the new configuration also enables source maps by default, as they no longer have a negative impact on code coverage accuracy, and it also enables a modified Jest runtime with additional caching of script objects.