From a5d1904da54b99aa3d11ee5b663b9c066366ddc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Naz=C4=B1m=20Can=20Alt=C4=B1nova?= Date: Tue, 5 Aug 2025 15:37:19 +0200 Subject: [PATCH] Make sure that the test-debug command runs the tests properly We should set these environment variables to make sure that all the tests behave the same way they would with `yarn test`. Also, we added this check so we make sure people run the tests through `yarn test`: https://github.com/firefox-devtools/profiler/blob/082631b9ab95733b5e1e36b5edfb73cbcedcd866/src/test/setup.js#L19-L21 But it was preventing us to run `yarn test-debug` all together too. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a5ee7cc5da..1d0ae145c4 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "test-coverage": "run-s test-build-coverage test-serve-coverage", "test-alex": "alex ./docs-* *.md", "test-lockfile": "lockfile-lint --path yarn.lock --allowed-hosts yarn --validate-https", - "test-debug": "node --inspect-brk node_modules/.bin/jest --runInBand", + "test-debug": "cross-env LC_ALL=C TZ=UTC NODE_ENV=test node --inspect-brk node_modules/.bin/jest --runInBand", "postinstall": "patch-package" }, "license": "MPL-2.0",