From 08204fdcbbcdfd4db6a39aa6c98a3f08c5889481 Mon Sep 17 00:00:00 2001 From: Braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Sun, 10 Apr 2022 23:54:46 +0200 Subject: [PATCH] feat: Test pipeline * Rename tests dir to e2e as tests gets ignored as "package" by turbo --- {tests => e2e}/cypress.json | 0 {tests => e2e}/cypress/integration/1-store/setElements.spec.ts | 0 {tests => e2e}/cypress/integration/1-store/setState.spec.ts | 0 {tests => e2e}/cypress/integration/2-flow/container.spec.ts | 0 {tests => e2e}/cypress/plugins/index.ts | 0 {tests => e2e}/cypress/plugins/vite.config.ts | 0 {tests => e2e}/cypress/support/commands.js | 0 {tests => e2e}/cypress/support/index.js | 0 {tests => e2e}/package.json | 2 +- {tests => e2e}/tsconfig.json | 0 package.json | 2 +- package/package.json | 1 - 12 files changed, 2 insertions(+), 3 deletions(-) rename {tests => e2e}/cypress.json (100%) rename {tests => e2e}/cypress/integration/1-store/setElements.spec.ts (100%) rename {tests => e2e}/cypress/integration/1-store/setState.spec.ts (100%) rename {tests => e2e}/cypress/integration/2-flow/container.spec.ts (100%) rename {tests => e2e}/cypress/plugins/index.ts (100%) rename {tests => e2e}/cypress/plugins/vite.config.ts (100%) rename {tests => e2e}/cypress/support/commands.js (100%) rename {tests => e2e}/cypress/support/index.js (100%) rename {tests => e2e}/package.json (91%) rename {tests => e2e}/tsconfig.json (100%) diff --git a/tests/cypress.json b/e2e/cypress.json similarity index 100% rename from tests/cypress.json rename to e2e/cypress.json diff --git a/tests/cypress/integration/1-store/setElements.spec.ts b/e2e/cypress/integration/1-store/setElements.spec.ts similarity index 100% rename from tests/cypress/integration/1-store/setElements.spec.ts rename to e2e/cypress/integration/1-store/setElements.spec.ts diff --git a/tests/cypress/integration/1-store/setState.spec.ts b/e2e/cypress/integration/1-store/setState.spec.ts similarity index 100% rename from tests/cypress/integration/1-store/setState.spec.ts rename to e2e/cypress/integration/1-store/setState.spec.ts diff --git a/tests/cypress/integration/2-flow/container.spec.ts b/e2e/cypress/integration/2-flow/container.spec.ts similarity index 100% rename from tests/cypress/integration/2-flow/container.spec.ts rename to e2e/cypress/integration/2-flow/container.spec.ts diff --git a/tests/cypress/plugins/index.ts b/e2e/cypress/plugins/index.ts similarity index 100% rename from tests/cypress/plugins/index.ts rename to e2e/cypress/plugins/index.ts diff --git a/tests/cypress/plugins/vite.config.ts b/e2e/cypress/plugins/vite.config.ts similarity index 100% rename from tests/cypress/plugins/vite.config.ts rename to e2e/cypress/plugins/vite.config.ts diff --git a/tests/cypress/support/commands.js b/e2e/cypress/support/commands.js similarity index 100% rename from tests/cypress/support/commands.js rename to e2e/cypress/support/commands.js diff --git a/tests/cypress/support/index.js b/e2e/cypress/support/index.js similarity index 100% rename from tests/cypress/support/index.js rename to e2e/cypress/support/index.js diff --git a/tests/package.json b/e2e/package.json similarity index 91% rename from tests/package.json rename to e2e/package.json index 6dcd6e37..c369e67d 100644 --- a/tests/package.json +++ b/e2e/package.json @@ -3,7 +3,7 @@ "version": "0.0.0", "private": true, "scripts": { - "tests": "cypress run-ct", + "test": "cypress run-ct", "open": "cypress open-ct" }, "dependencies": { diff --git a/tests/tsconfig.json b/e2e/tsconfig.json similarity index 100% rename from tests/tsconfig.json rename to e2e/tsconfig.json diff --git a/package.json b/package.json index ffae3ddf..968846ae 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "0.0.0", "private": true, "workspaces": [ - "tests", + "e2e", "examples", "docs", "package" diff --git a/package/package.json b/package/package.json index 1498ce15..44ac627e 100644 --- a/package/package.json +++ b/package/package.json @@ -26,7 +26,6 @@ "build": "vite build", "types": "vue-tsc --declaration --emitDeclarationOnly && tsc -p tsconfig.build.json && shx rm -rf tmp && yarn lint:dist", "theme": "postcss src/style.css -o dist/style.css && postcss src/theme-default.css -o dist/theme-default.css", - "test": "yarn --cwd .. tests", "lint": "eslint --ext \".js,.jsx,.ts,.tsx\" --fix --ignore-path ../.gitignore .", "lint:dist": "eslint --ext \".ts,.tsx\" -c .eslintrc.js --fix ./dist", "prepublishOnly": "shx cp ../README.md .",