From 5378eee7c4b04e6d09e7bb961c292524996bac43 Mon Sep 17 00:00:00 2001 From: Tim Leslie Date: Tue, 23 Mar 2021 11:10:59 +1100 Subject: [PATCH] Remove legacy references to test projects (#5185) --- .eslintignore | 1 - .prettierignore | 1 - package.json | 5 +---- tests/api-tests/README.md | 1 - tests/test-projects/README.md | 25 ------------------------- tests/test-projects/package.json | 11 ----------- 6 files changed, 1 insertion(+), 43 deletions(-) delete mode 100644 tests/test-projects/README.md delete mode 100644 tests/test-projects/package.json diff --git a/.eslintignore b/.eslintignore index 5a98a78a471..f15d93aeecf 100644 --- a/.eslintignore +++ b/.eslintignore @@ -2,4 +2,3 @@ node_modules coverage dist reports -tests/test-projects/**/cypress \ No newline at end of file diff --git a/.prettierignore b/.prettierignore index 6cd86300bcd..d3bf4db34e9 100644 --- a/.prettierignore +++ b/.prettierignore @@ -2,7 +2,6 @@ package.json packages/icons/icons/* reports coverage -packages/test-project/public .changeset/**/* **/dist **/.next diff --git a/package.json b/package.json index 0584ca25773..0333f8a1dd4 100644 --- a/package.json +++ b/package.json @@ -11,8 +11,6 @@ "prisma": "prisma", "docs-next": "manypkg run @keystone-next/website dev", "coverage": "cross-env DISABLE_LOGGING=true NODE_ENV=test jest --maxWorkers=1 --coverage", - "cypress:run": "status=0; yarn workspace @keystone-next/cypress-project-twitter-login-legacy run cypress:run || status=$?; exit $status", - "cypress:open": "status=0; yarn workspace @keystone-next/cypress-project-twitter-login-legacy run cypress:open || status=$?; exit $status", "format:file": "prettier --write", "format": "prettier --write \"**/*.{js,json,ts,tsx,md,mdx}\" && remark . --output", "fresh": "yarn clean && yarn", @@ -22,7 +20,7 @@ "lint:markdown": "remark . --frail --quiet", "lint:types": "tsc", "lint": "yarn lint:prettier && yarn lint:eslint && yarn lint:markdown && yarn lint:types", - "test": "yarn lint && yarn test:unit && yarn cypress:run", + "test": "yarn lint && yarn test:unit", "test:unit": "cross-env DISABLE_LOGGING=true NODE_ENV=test jest --no-watchman --maxWorkers=1 --logHeapUsage", "test:unit:debug": "cross-env NODE_ENV=test node --inspect-brk `which jest` --runInBand", "benchmark": "yarn workspace @keystone-next/benchmarks-legacy go", @@ -102,7 +100,6 @@ "workspaces": { "packages": [ "packages/*", - "tests/test-projects/*", "tests/api-tests", "tests/benchmarks", "tests/examples-smoke-tests", diff --git a/tests/api-tests/README.md b/tests/api-tests/README.md index f2f02c9887b..b7c644ae12e 100644 --- a/tests/api-tests/README.md +++ b/tests/api-tests/README.md @@ -3,4 +3,3 @@ Keystone, as a system, can be summarised as `schema => ({ api, adminUI })`. This directory contains system level test to ensure that `schema => ({ api })` behaves as expected. These system level tests should be considered complimentary to the unit tests contained in each package. -Tests for `schema => ({ adminUI })` can be found in the `test-projects` directory. diff --git a/tests/test-projects/README.md b/tests/test-projects/README.md deleted file mode 100644 index 57b3785b196..00000000000 --- a/tests/test-projects/README.md +++ /dev/null @@ -1,25 +0,0 @@ -## ATTENTION - -This folder contains projects used for Cypress tests. You do not want to use these as starting points for your own project. You are better off using the example projects for that, which are located in `/examples-next`. - -## Cypress Projects - -Each directory here is part of the Yarn Workspaces monorepo, and represents a single -runnable project which tests can be run against. - -This is to help with unique setups (eg; testing mongo vs postgres, etc). - -Think very carefully before you create new projects, as you may find it's -easier/faster/better to add a new List to an existing test project if possible. - -### Environment Variables - -Make sure that for each project (eg `tests/test-projects/basic`), you setup the `.env` file -with the necessary values filled out (see `.env.example` for what's required). - -### Continuous Integration - -When creating a new project, it must be added to the CI config. - -Look in `.circleci/config.yml` for examples, and copy one of those. -Be sure to setup the correct environment variables too. diff --git a/tests/test-projects/package.json b/tests/test-projects/package.json deleted file mode 100644 index 2df2f6a0b0f..00000000000 --- a/tests/test-projects/package.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "scripts": { - "start": "yarn basic start", - "access-control": "yarn --cwd access-control", - "basic": "yarn --cwd basic", - "login": "yarn --cwd login" - }, - "repository": "https://github.com/keystonejs/keystone.git", - "homepage": "https://github.com/keystonejs/keystone", - "license": "MIT" -}