From 80f51f4a15680a0737b776d8ef5b6d630d634677 Mon Sep 17 00:00:00 2001 From: Claas Augner <495429+caugner@users.noreply.github.com> Date: Mon, 8 May 2023 16:19:05 +0200 Subject: [PATCH] fix(jest): use --rootDir option (#8754) --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b64392b4028b..921ad305087b 100644 --- a/package.json +++ b/package.json @@ -44,10 +44,10 @@ "stylelint": "stylelint \"**/*.scss\"", "test": "yarn prettier-check && yarn test:client && yarn test:kumascript && yarn test:content && yarn test:testing", "test:client": "cd client && tsc --noEmit && cross-env NODE_ENV=test BABEL_ENV=test PUBLIC_URL='' node scripts/test.js --env=jsdom", - "test:content": "yarn jest content", + "test:content": "yarn jest --rootDir content", "test:developing": "cross-env CONTENT_ROOT=mdn/content/files TESTING_DEVELOPING=true playwright test developing", "test:headless": "playwright test headless", - "test:kumascript": "yarn jest kumascript --env=node", + "test:kumascript": "yarn jest --rootDir kumascript --env=node", "test:prepare": "yarn build:prepare && yarn build && yarn start:static-server", "test:testing": "yarn jest --rootDir testing", "tool": "ts-node tool/cli.ts",