From a3d4090998a2a82eb17e8a419d9eb64c1a22f6cf Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Fri, 12 Apr 2024 13:35:45 -0400 Subject: [PATCH] Replace `jest` with `test:js` in package scripts --- .github/workflows/test-js.yml | 2 +- package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-js.yml b/.github/workflows/test-js.yml index 481afdba30..77a97c364d 100644 --- a/.github/workflows/test-js.yml +++ b/.github/workflows/test-js.yml @@ -39,4 +39,4 @@ jobs: uses: ./.github/actions/setup-javascript - name: JavaScript testing - run: yarn jest --reporters github-actions summary + run: yarn test:js --reporters github-actions summary diff --git a/package.json b/package.json index 787ca3600c..5f719af4ca 100644 --- a/package.json +++ b/package.json @@ -18,14 +18,14 @@ "format": "prettier --write --log-level warn .", "format:check": "prettier --check --ignore-unknown .", "i18n:extract": "formatjs extract 'app/javascript/**/*.{js,jsx,ts,tsx}' '--ignore=**/*.d.ts' --out-file app/javascript/mastodon/locales/en.json --format config/formatjs-formatter.js", - "jest": "cross-env NODE_ENV=test jest", "lint:js": "eslint . --ext=.js,.jsx,.ts,.tsx --cache --report-unused-disable-directives", "lint:css": "stylelint \"**/*.{css,scss}\"", "lint": "yarn lint:js && yarn lint:css", "postversion": "git push --tags", "prepare": "husky", "start": "node ./streaming/index.js", - "test": "yarn lint && yarn run typecheck && yarn jest", + "test:js": "cross-env NODE_ENV=test jest", + "test": "yarn lint && yarn run typecheck && yarn test:js", "typecheck": "tsc --noEmit" }, "repository": {