Rename compatibility-tests to compat-tests

This commit is contained in:
Aria Minaei 2023-07-28 19:49:52 +02:00 committed by Aria
parent f2a25aa48e
commit bc7fcf8e0a
48 changed files with 12 additions and 14 deletions

View file

@ -40,7 +40,7 @@ module.exports = {
},
],
},
ignorePatterns: ['*.d.ts', '*.ignore.ts', 'compatibility-tests/*'],
ignorePatterns: ['*.d.ts', '*.ignore.ts', 'compat-tests/*'],
overrides: [
{
files: ['*.ts', '*.tsx'],

View file

@ -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

4
.gitignore vendored
View file

@ -23,5 +23,5 @@
# compatibility tests
.parcel-cache
/compatibility-tests/*/.yarn
/compatibility-tests/*/build
/compat-tests/*/.yarn
/compat-tests/*/build

View file

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View file

@ -1,5 +1,5 @@
{
"name": "@theatre/compatibility-tests",
"name": "@theatre/compat-tests",
"private": true,
"type": "module",
"scripts": {

View file

@ -324,7 +324,7 @@ async function releaseToVerdaccio() {
}
/**
* Get all the setups from `./compatibility-tests/`
* Get all the setups from `./compat-tests/`
*
* @returns {Promise<Array<string>>} An array containing the absolute paths to the compatibility test setups
*/

View file

@ -1,6 +1,6 @@
/** @type {import('jest').Config} */
module.exports = {
testMatch: ['<rootDir>/compatibility-tests/fixtures/*/*.compat-test.ts'],
testMatch: ['<rootDir>/compat-tests/fixtures/*/*.compat-test.ts'],
moduleNameMapper: {},
// setupFiles: ['./theatre/shared/src/setupTestEnv.ts'],
automock: false,

View file

@ -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",

View file

@ -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