From bc7fcf8e0a4cc6f5bd59a415b877229b98e276a4 Mon Sep 17 00:00:00 2001 From: Aria Minaei Date: Fri, 28 Jul 2023 19:49:52 +0200 Subject: [PATCH] Rename `compatibility-tests` to `compat-tests` --- .eslintrc.js | 2 +- .github/workflows/ci.yml | 6 ++---- .gitignore | 4 ++-- {compatibility-tests => compat-tests}/.gitignore | 0 {compatibility-tests => compat-tests}/README.md | 0 .../fixtures/cra-react18/package/.gitignore | 0 .../fixtures/cra-react18/package/README.md | 0 .../fixtures/cra-react18/package/package.json | 0 .../fixtures/cra-react18/package/public/index.html | 0 .../fixtures/cra-react18/package/src/index.js | 0 .../fixtures/next/package/.gitignore | 0 .../fixtures/next/package/README.md | 0 .../fixtures/next/package/package.json | 0 .../fixtures/next/package/pages/index.js | 0 .../next/package/pages/playgroundState.json | 0 .../fixtures/next/package/pages/theatric.js | 0 .../fixtures/next/package/public/favicon.ico | Bin .../fixtures/next/production.compat-test.ts | 0 .../fixtures/parcel1-react17/package/.gitignore | 0 .../fixtures/parcel1-react17/package/index.html | 0 .../fixtures/parcel1-react17/package/package.json | 0 .../fixtures/parcel1-react17/package/src/index.js | 0 .../fixtures/parcel1-react18/package/.gitignore | 0 .../fixtures/parcel1-react18/package/index.html | 0 .../fixtures/parcel1-react18/package/package.json | 0 .../fixtures/parcel1-react18/package/src/index.js | 0 .../fixtures/parcel2-react18/package/.gitignore | 0 .../fixtures/parcel2-react18/package/index.html | 0 .../fixtures/parcel2-react18/package/package.json | 0 .../fixtures/parcel2-react18/package/src/index.js | 0 .../fixtures/vite-react18/package/.gitignore | 0 .../fixtures/vite-react18/package/index.html | 0 .../fixtures/vite-react18/package/package.json | 0 .../fixtures/vite-react18/package/src/main.tsx | 0 .../fixtures/vite-react18/package/src/vite-env.d.ts | 0 .../fixtures/vite-react18/package/tsconfig.json | 0 .../vite-react18/package/tsconfig.node.json | 0 .../fixtures/vite-react18/package/vite.config.ts | 0 {compatibility-tests => compat-tests}/package.json | 2 +- .../scripts/build-setups.mjs | 0 .../scripts/ci.mjs | 0 .../scripts/clean.mjs | 0 .../scripts/install-fixtures.mjs | 0 .../scripts/scripts.mjs | 2 +- {compatibility-tests => compat-tests}/verdaccio.yml | 0 jest.compat-tests.config.js | 2 +- package.json | 4 ++-- yarn.lock | 4 ++-- 48 files changed, 12 insertions(+), 14 deletions(-) rename {compatibility-tests => compat-tests}/.gitignore (100%) rename {compatibility-tests => compat-tests}/README.md (100%) rename {compatibility-tests => compat-tests}/fixtures/cra-react18/package/.gitignore (100%) rename {compatibility-tests => compat-tests}/fixtures/cra-react18/package/README.md (100%) rename {compatibility-tests => compat-tests}/fixtures/cra-react18/package/package.json (100%) rename {compatibility-tests => compat-tests}/fixtures/cra-react18/package/public/index.html (100%) rename {compatibility-tests => compat-tests}/fixtures/cra-react18/package/src/index.js (100%) rename {compatibility-tests => compat-tests}/fixtures/next/package/.gitignore (100%) rename {compatibility-tests => compat-tests}/fixtures/next/package/README.md (100%) rename {compatibility-tests => compat-tests}/fixtures/next/package/package.json (100%) rename {compatibility-tests => compat-tests}/fixtures/next/package/pages/index.js (100%) rename {compatibility-tests => compat-tests}/fixtures/next/package/pages/playgroundState.json (100%) rename {compatibility-tests => compat-tests}/fixtures/next/package/pages/theatric.js (100%) rename {compatibility-tests => compat-tests}/fixtures/next/package/public/favicon.ico (100%) rename {compatibility-tests => compat-tests}/fixtures/next/production.compat-test.ts (100%) rename {compatibility-tests => compat-tests}/fixtures/parcel1-react17/package/.gitignore (100%) rename {compatibility-tests => compat-tests}/fixtures/parcel1-react17/package/index.html (100%) rename {compatibility-tests => compat-tests}/fixtures/parcel1-react17/package/package.json (100%) rename {compatibility-tests => compat-tests}/fixtures/parcel1-react17/package/src/index.js (100%) rename {compatibility-tests => compat-tests}/fixtures/parcel1-react18/package/.gitignore (100%) rename {compatibility-tests => compat-tests}/fixtures/parcel1-react18/package/index.html (100%) rename {compatibility-tests => compat-tests}/fixtures/parcel1-react18/package/package.json (100%) rename {compatibility-tests => compat-tests}/fixtures/parcel1-react18/package/src/index.js (100%) rename {compatibility-tests => compat-tests}/fixtures/parcel2-react18/package/.gitignore (100%) rename {compatibility-tests => compat-tests}/fixtures/parcel2-react18/package/index.html (100%) rename {compatibility-tests => compat-tests}/fixtures/parcel2-react18/package/package.json (100%) rename {compatibility-tests => compat-tests}/fixtures/parcel2-react18/package/src/index.js (100%) rename {compatibility-tests => compat-tests}/fixtures/vite-react18/package/.gitignore (100%) rename {compatibility-tests => compat-tests}/fixtures/vite-react18/package/index.html (100%) rename {compatibility-tests => compat-tests}/fixtures/vite-react18/package/package.json (100%) rename {compatibility-tests => compat-tests}/fixtures/vite-react18/package/src/main.tsx (100%) rename {compatibility-tests => compat-tests}/fixtures/vite-react18/package/src/vite-env.d.ts (100%) rename {compatibility-tests => compat-tests}/fixtures/vite-react18/package/tsconfig.json (100%) rename {compatibility-tests => compat-tests}/fixtures/vite-react18/package/tsconfig.node.json (100%) rename {compatibility-tests => compat-tests}/fixtures/vite-react18/package/vite.config.ts (100%) rename {compatibility-tests => compat-tests}/package.json (91%) rename {compatibility-tests => compat-tests}/scripts/build-setups.mjs (100%) rename {compatibility-tests => compat-tests}/scripts/ci.mjs (100%) rename {compatibility-tests => compat-tests}/scripts/clean.mjs (100%) rename {compatibility-tests => compat-tests}/scripts/install-fixtures.mjs (100%) rename {compatibility-tests => compat-tests}/scripts/scripts.mjs (99%) rename {compatibility-tests => compat-tests}/verdaccio.yml (100%) diff --git a/.eslintrc.js b/.eslintrc.js index f79a470..ad524b5 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -40,7 +40,7 @@ module.exports = { }, ], }, - ignorePatterns: ['*.d.ts', '*.ignore.ts', 'compatibility-tests/*'], + ignorePatterns: ['*.d.ts', '*.ignore.ts', 'compat-tests/*'], overrides: [ { files: ['*.ts', '*.tsx'], diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1a57190..3065474 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -111,9 +111,7 @@ jobs: - uses: ./.github/actions/yarn-nm-install # re-enable the following line if we start to get EINTEGRITY errors again # - run: npm cache clean || npm cache verify - # This will test whether `npm install`/`yarn install` can actually run on each compatibility test fixture. See `compatibility-tests/README.md` for more info. - - run: - yarn workspace @theatre/compatibility-tests run install-fixtures - --verbose + # This will test whether `npm install`/`yarn install` can actually run on each compatibility test fixture. See `compat-tests/README.md` for more info. + - run: yarn workspace @theatre/compat-tests run install-fixtures --verbose # after that, we run the jest tests for each fixture - run: yarn test:compat:run diff --git a/.gitignore b/.gitignore index fd6c18a..c556847 100644 --- a/.gitignore +++ b/.gitignore @@ -23,5 +23,5 @@ # compatibility tests .parcel-cache -/compatibility-tests/*/.yarn -/compatibility-tests/*/build +/compat-tests/*/.yarn +/compat-tests/*/build diff --git a/compatibility-tests/.gitignore b/compat-tests/.gitignore similarity index 100% rename from compatibility-tests/.gitignore rename to compat-tests/.gitignore diff --git a/compatibility-tests/README.md b/compat-tests/README.md similarity index 100% rename from compatibility-tests/README.md rename to compat-tests/README.md diff --git a/compatibility-tests/fixtures/cra-react18/package/.gitignore b/compat-tests/fixtures/cra-react18/package/.gitignore similarity index 100% rename from compatibility-tests/fixtures/cra-react18/package/.gitignore rename to compat-tests/fixtures/cra-react18/package/.gitignore diff --git a/compatibility-tests/fixtures/cra-react18/package/README.md b/compat-tests/fixtures/cra-react18/package/README.md similarity index 100% rename from compatibility-tests/fixtures/cra-react18/package/README.md rename to compat-tests/fixtures/cra-react18/package/README.md diff --git a/compatibility-tests/fixtures/cra-react18/package/package.json b/compat-tests/fixtures/cra-react18/package/package.json similarity index 100% rename from compatibility-tests/fixtures/cra-react18/package/package.json rename to compat-tests/fixtures/cra-react18/package/package.json diff --git a/compatibility-tests/fixtures/cra-react18/package/public/index.html b/compat-tests/fixtures/cra-react18/package/public/index.html similarity index 100% rename from compatibility-tests/fixtures/cra-react18/package/public/index.html rename to compat-tests/fixtures/cra-react18/package/public/index.html diff --git a/compatibility-tests/fixtures/cra-react18/package/src/index.js b/compat-tests/fixtures/cra-react18/package/src/index.js similarity index 100% rename from compatibility-tests/fixtures/cra-react18/package/src/index.js rename to compat-tests/fixtures/cra-react18/package/src/index.js diff --git a/compatibility-tests/fixtures/next/package/.gitignore b/compat-tests/fixtures/next/package/.gitignore similarity index 100% rename from compatibility-tests/fixtures/next/package/.gitignore rename to compat-tests/fixtures/next/package/.gitignore diff --git a/compatibility-tests/fixtures/next/package/README.md b/compat-tests/fixtures/next/package/README.md similarity index 100% rename from compatibility-tests/fixtures/next/package/README.md rename to compat-tests/fixtures/next/package/README.md diff --git a/compatibility-tests/fixtures/next/package/package.json b/compat-tests/fixtures/next/package/package.json similarity index 100% rename from compatibility-tests/fixtures/next/package/package.json rename to compat-tests/fixtures/next/package/package.json diff --git a/compatibility-tests/fixtures/next/package/pages/index.js b/compat-tests/fixtures/next/package/pages/index.js similarity index 100% rename from compatibility-tests/fixtures/next/package/pages/index.js rename to compat-tests/fixtures/next/package/pages/index.js diff --git a/compatibility-tests/fixtures/next/package/pages/playgroundState.json b/compat-tests/fixtures/next/package/pages/playgroundState.json similarity index 100% rename from compatibility-tests/fixtures/next/package/pages/playgroundState.json rename to compat-tests/fixtures/next/package/pages/playgroundState.json diff --git a/compatibility-tests/fixtures/next/package/pages/theatric.js b/compat-tests/fixtures/next/package/pages/theatric.js similarity index 100% rename from compatibility-tests/fixtures/next/package/pages/theatric.js rename to compat-tests/fixtures/next/package/pages/theatric.js diff --git a/compatibility-tests/fixtures/next/package/public/favicon.ico b/compat-tests/fixtures/next/package/public/favicon.ico similarity index 100% rename from compatibility-tests/fixtures/next/package/public/favicon.ico rename to compat-tests/fixtures/next/package/public/favicon.ico diff --git a/compatibility-tests/fixtures/next/production.compat-test.ts b/compat-tests/fixtures/next/production.compat-test.ts similarity index 100% rename from compatibility-tests/fixtures/next/production.compat-test.ts rename to compat-tests/fixtures/next/production.compat-test.ts diff --git a/compatibility-tests/fixtures/parcel1-react17/package/.gitignore b/compat-tests/fixtures/parcel1-react17/package/.gitignore similarity index 100% rename from compatibility-tests/fixtures/parcel1-react17/package/.gitignore rename to compat-tests/fixtures/parcel1-react17/package/.gitignore diff --git a/compatibility-tests/fixtures/parcel1-react17/package/index.html b/compat-tests/fixtures/parcel1-react17/package/index.html similarity index 100% rename from compatibility-tests/fixtures/parcel1-react17/package/index.html rename to compat-tests/fixtures/parcel1-react17/package/index.html diff --git a/compatibility-tests/fixtures/parcel1-react17/package/package.json b/compat-tests/fixtures/parcel1-react17/package/package.json similarity index 100% rename from compatibility-tests/fixtures/parcel1-react17/package/package.json rename to compat-tests/fixtures/parcel1-react17/package/package.json diff --git a/compatibility-tests/fixtures/parcel1-react17/package/src/index.js b/compat-tests/fixtures/parcel1-react17/package/src/index.js similarity index 100% rename from compatibility-tests/fixtures/parcel1-react17/package/src/index.js rename to compat-tests/fixtures/parcel1-react17/package/src/index.js diff --git a/compatibility-tests/fixtures/parcel1-react18/package/.gitignore b/compat-tests/fixtures/parcel1-react18/package/.gitignore similarity index 100% rename from compatibility-tests/fixtures/parcel1-react18/package/.gitignore rename to compat-tests/fixtures/parcel1-react18/package/.gitignore diff --git a/compatibility-tests/fixtures/parcel1-react18/package/index.html b/compat-tests/fixtures/parcel1-react18/package/index.html similarity index 100% rename from compatibility-tests/fixtures/parcel1-react18/package/index.html rename to compat-tests/fixtures/parcel1-react18/package/index.html diff --git a/compatibility-tests/fixtures/parcel1-react18/package/package.json b/compat-tests/fixtures/parcel1-react18/package/package.json similarity index 100% rename from compatibility-tests/fixtures/parcel1-react18/package/package.json rename to compat-tests/fixtures/parcel1-react18/package/package.json diff --git a/compatibility-tests/fixtures/parcel1-react18/package/src/index.js b/compat-tests/fixtures/parcel1-react18/package/src/index.js similarity index 100% rename from compatibility-tests/fixtures/parcel1-react18/package/src/index.js rename to compat-tests/fixtures/parcel1-react18/package/src/index.js diff --git a/compatibility-tests/fixtures/parcel2-react18/package/.gitignore b/compat-tests/fixtures/parcel2-react18/package/.gitignore similarity index 100% rename from compatibility-tests/fixtures/parcel2-react18/package/.gitignore rename to compat-tests/fixtures/parcel2-react18/package/.gitignore diff --git a/compatibility-tests/fixtures/parcel2-react18/package/index.html b/compat-tests/fixtures/parcel2-react18/package/index.html similarity index 100% rename from compatibility-tests/fixtures/parcel2-react18/package/index.html rename to compat-tests/fixtures/parcel2-react18/package/index.html diff --git a/compatibility-tests/fixtures/parcel2-react18/package/package.json b/compat-tests/fixtures/parcel2-react18/package/package.json similarity index 100% rename from compatibility-tests/fixtures/parcel2-react18/package/package.json rename to compat-tests/fixtures/parcel2-react18/package/package.json diff --git a/compatibility-tests/fixtures/parcel2-react18/package/src/index.js b/compat-tests/fixtures/parcel2-react18/package/src/index.js similarity index 100% rename from compatibility-tests/fixtures/parcel2-react18/package/src/index.js rename to compat-tests/fixtures/parcel2-react18/package/src/index.js diff --git a/compatibility-tests/fixtures/vite-react18/package/.gitignore b/compat-tests/fixtures/vite-react18/package/.gitignore similarity index 100% rename from compatibility-tests/fixtures/vite-react18/package/.gitignore rename to compat-tests/fixtures/vite-react18/package/.gitignore diff --git a/compatibility-tests/fixtures/vite-react18/package/index.html b/compat-tests/fixtures/vite-react18/package/index.html similarity index 100% rename from compatibility-tests/fixtures/vite-react18/package/index.html rename to compat-tests/fixtures/vite-react18/package/index.html diff --git a/compatibility-tests/fixtures/vite-react18/package/package.json b/compat-tests/fixtures/vite-react18/package/package.json similarity index 100% rename from compatibility-tests/fixtures/vite-react18/package/package.json rename to compat-tests/fixtures/vite-react18/package/package.json diff --git a/compatibility-tests/fixtures/vite-react18/package/src/main.tsx b/compat-tests/fixtures/vite-react18/package/src/main.tsx similarity index 100% rename from compatibility-tests/fixtures/vite-react18/package/src/main.tsx rename to compat-tests/fixtures/vite-react18/package/src/main.tsx diff --git a/compatibility-tests/fixtures/vite-react18/package/src/vite-env.d.ts b/compat-tests/fixtures/vite-react18/package/src/vite-env.d.ts similarity index 100% rename from compatibility-tests/fixtures/vite-react18/package/src/vite-env.d.ts rename to compat-tests/fixtures/vite-react18/package/src/vite-env.d.ts diff --git a/compatibility-tests/fixtures/vite-react18/package/tsconfig.json b/compat-tests/fixtures/vite-react18/package/tsconfig.json similarity index 100% rename from compatibility-tests/fixtures/vite-react18/package/tsconfig.json rename to compat-tests/fixtures/vite-react18/package/tsconfig.json diff --git a/compatibility-tests/fixtures/vite-react18/package/tsconfig.node.json b/compat-tests/fixtures/vite-react18/package/tsconfig.node.json similarity index 100% rename from compatibility-tests/fixtures/vite-react18/package/tsconfig.node.json rename to compat-tests/fixtures/vite-react18/package/tsconfig.node.json diff --git a/compatibility-tests/fixtures/vite-react18/package/vite.config.ts b/compat-tests/fixtures/vite-react18/package/vite.config.ts similarity index 100% rename from compatibility-tests/fixtures/vite-react18/package/vite.config.ts rename to compat-tests/fixtures/vite-react18/package/vite.config.ts diff --git a/compatibility-tests/package.json b/compat-tests/package.json similarity index 91% rename from compatibility-tests/package.json rename to compat-tests/package.json index 79ce622..202fff2 100644 --- a/compatibility-tests/package.json +++ b/compat-tests/package.json @@ -1,5 +1,5 @@ { - "name": "@theatre/compatibility-tests", + "name": "@theatre/compat-tests", "private": true, "type": "module", "scripts": { diff --git a/compatibility-tests/scripts/build-setups.mjs b/compat-tests/scripts/build-setups.mjs similarity index 100% rename from compatibility-tests/scripts/build-setups.mjs rename to compat-tests/scripts/build-setups.mjs diff --git a/compatibility-tests/scripts/ci.mjs b/compat-tests/scripts/ci.mjs similarity index 100% rename from compatibility-tests/scripts/ci.mjs rename to compat-tests/scripts/ci.mjs diff --git a/compatibility-tests/scripts/clean.mjs b/compat-tests/scripts/clean.mjs similarity index 100% rename from compatibility-tests/scripts/clean.mjs rename to compat-tests/scripts/clean.mjs diff --git a/compatibility-tests/scripts/install-fixtures.mjs b/compat-tests/scripts/install-fixtures.mjs similarity index 100% rename from compatibility-tests/scripts/install-fixtures.mjs rename to compat-tests/scripts/install-fixtures.mjs diff --git a/compatibility-tests/scripts/scripts.mjs b/compat-tests/scripts/scripts.mjs similarity index 99% rename from compatibility-tests/scripts/scripts.mjs rename to compat-tests/scripts/scripts.mjs index c3ea58b..fa4e8e8 100644 --- a/compatibility-tests/scripts/scripts.mjs +++ b/compat-tests/scripts/scripts.mjs @@ -324,7 +324,7 @@ async function releaseToVerdaccio() { } /** - * Get all the setups from `./compatibility-tests/` + * Get all the setups from `./compat-tests/` * * @returns {Promise>} An array containing the absolute paths to the compatibility test setups */ diff --git a/compatibility-tests/verdaccio.yml b/compat-tests/verdaccio.yml similarity index 100% rename from compatibility-tests/verdaccio.yml rename to compat-tests/verdaccio.yml diff --git a/jest.compat-tests.config.js b/jest.compat-tests.config.js index 58dd235..78c326c 100644 --- a/jest.compat-tests.config.js +++ b/jest.compat-tests.config.js @@ -1,6 +1,6 @@ /** @type {import('jest').Config} */ module.exports = { - testMatch: ['/compatibility-tests/fixtures/*/*.compat-test.ts'], + testMatch: ['/compat-tests/fixtures/*/*.compat-test.ts'], moduleNameMapper: {}, // setupFiles: ['./theatre/shared/src/setupTestEnv.ts'], automock: false, diff --git a/package.json b/package.json index 5062f6f..0fcb41f 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "packages/*", "examples/*", "theatre", - "compatibility-tests" + "compat-tests" ], "scripts": { "playground": "yarn workspace playground run serve", @@ -18,7 +18,7 @@ "clean": "zx scripts/clean.mjs", "build:ts": "tsc --build ./devEnv/typecheck-all-projects/tsconfig.all.json", "test": "jest", - "test:compat:install": "yarn workspace @theatre/compatibility-tests run install-fixtures", + "test:compat:install": "yarn workspace @theatre/compat-tests run install-fixtures", "test:compat:run": "jest --config jest.compat-tests.config.js", "postinstall": "husky install", "release": "zx scripts/release.mjs", diff --git a/yarn.lock b/yarn.lock index d506daa..287cb19 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9862,9 +9862,9 @@ __metadata: languageName: unknown linkType: soft -"@theatre/compatibility-tests@workspace:compatibility-tests": +"@theatre/compat-tests@workspace:compat-tests": version: 0.0.0-use.local - resolution: "@theatre/compatibility-tests@workspace:compatibility-tests" + resolution: "@theatre/compat-tests@workspace:compat-tests" dependencies: "@cspotcode/zx": ^6.1.2 node-cleanup: ^2.1.2