diff --git a/contribute/developer-guide.md b/contribute/developer-guide.md index 1765fee723e..88f6b547178 100644 --- a/contribute/developer-guide.md +++ b/contribute/developer-guide.md @@ -87,7 +87,7 @@ The test suite consists of three types of tests: _Frontend tests_, _backend test We use [jest](https://jestjs.io/) for our frontend tests. Run them using Yarn: ``` -yarn jest +yarn test ``` ### Run backend tests diff --git a/package.json b/package.json index 9df78b731e8..0be778a586e 100644 --- a/package.json +++ b/package.json @@ -12,9 +12,9 @@ "e2e": "./e2e/start-and-run-suite", "e2e:debug": "./e2e/start-and-run-suite debug", "e2e:dev": "./e2e/start-and-run-suite dev", - "jest": "jest --notify --watch", + "test": "jest --notify --watch", "lint": "eslint . --ext .js,.tsx,.ts --cache", - "jest-ci": "mkdir -p reports/junit && export JEST_JUNIT_OUTPUT_DIR=reports/junit && jest --ci --reporters=default --reporters=jest-junit -w ${TEST_MAX_WORKERS:-100%}", + "test:ci": "mkdir -p reports/junit && export JEST_JUNIT_OUTPUT_DIR=reports/junit && jest --ci --reporters=default --reporters=jest-junit -w ${TEST_MAX_WORKERS:-100%}", "lint:fix": "yarn lint --fix", "packages:build": "lerna run clean && lerna run build --ignore @grafana-plugins/input-datasource", "packages:docsExtract": "rm -rf ./reports/docs && lerna run docsExtract", @@ -37,12 +37,11 @@ "stats": "webpack --mode production --config scripts/webpack/webpack.prod.js --profile --json > compilation-stats.json", "storybook": "cd packages/grafana-ui && yarn storybook --ci", "storybook:build": "cd packages/grafana-ui && yarn storybook:build", - "test": "grunt test", "themes:generate": "ts-node --project ./scripts/cli/tsconfig.json ./scripts/cli/generateSassVariableFiles.ts", "typecheck": "tsc --noEmit", "plugins:build-bundled": "grafana-toolkit plugin:bundle-managed", "watch": "yarn start -d watch,start core:start --watchTheme", - "ci:test-frontend": "yarn run prettier:check && yarn run packages:typecheck && yarn run typecheck && yarn run test" + "ci:test-frontend": "yarn run prettier:check && yarn run packages:typecheck && yarn run typecheck && yarn run test:ci" }, "grafana": { "whatsNewUrl": "https://grafana.com/docs/grafana/latest/guides/whats-new-in-v7-3/", diff --git a/scripts/grunt/options/exec.js b/scripts/grunt/options/exec.js index 19d7f1d0c57..4a94b685b73 100644 --- a/scripts/grunt/options/exec.js +++ b/scripts/grunt/options/exec.js @@ -11,7 +11,6 @@ module.exports = function(config, grunt) { typecheckRoot: { command: 'yarn typecheck', }, - jest: 'yarn jest-ci', webpack: 'node ./node_modules/webpack/bin/webpack.js --config scripts/webpack/webpack.prod.js', }; };