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