Replace `jest` with `test:js` in package scripts

This commit is contained in:
Matt Jankowski 2024-04-12 13:35:45 -04:00
parent d9eee9bf9a
commit a3d4090998
2 changed files with 3 additions and 3 deletions

View File

@ -39,4 +39,4 @@ jobs:
uses: ./.github/actions/setup-javascript uses: ./.github/actions/setup-javascript
- name: JavaScript testing - name: JavaScript testing
run: yarn jest --reporters github-actions summary run: yarn test:js --reporters github-actions summary

View File

@ -18,14 +18,14 @@
"format": "prettier --write --log-level warn .", "format": "prettier --write --log-level warn .",
"format:check": "prettier --check --ignore-unknown .", "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", "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:js": "eslint . --ext=.js,.jsx,.ts,.tsx --cache --report-unused-disable-directives",
"lint:css": "stylelint \"**/*.{css,scss}\"", "lint:css": "stylelint \"**/*.{css,scss}\"",
"lint": "yarn lint:js && yarn lint:css", "lint": "yarn lint:js && yarn lint:css",
"postversion": "git push --tags", "postversion": "git push --tags",
"prepare": "husky", "prepare": "husky",
"start": "node ./streaming/index.js", "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" "typecheck": "tsc --noEmit"
}, },
"repository": { "repository": {