Separate PHP and JS Unit Tests (#40639)
Since some projects might have both kinds of tests we are going to have a `test:php` and a `test:js` script for each.
This commit is contained in:
parent
e7711f1a50
commit
1c30563ffc
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
Comment: This is just a change to developer commands.
|
||||||
|
|
|
@ -78,7 +78,8 @@
|
||||||
"changelog": "composer exec -- changelogger",
|
"changelog": "composer exec -- changelogger",
|
||||||
"clean": "pnpm exec rimraf tsconfig.tsbuildinfo build build-*",
|
"clean": "pnpm exec rimraf tsconfig.tsbuildinfo build build-*",
|
||||||
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
|
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
|
||||||
"test": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name",
|
"test": "pnpm test:js",
|
||||||
|
"test:js": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name --",
|
||||||
"lint": "eslint --output-file eslint_report.json --format json src",
|
"lint": "eslint --output-file eslint_report.json --format json src",
|
||||||
"build:js": "tsc --project tsconfig.json && tsc --project tsconfig-cjs.json",
|
"build:js": "tsc --project tsconfig.json && tsc --project tsconfig-cjs.json",
|
||||||
"build:css": "webpack",
|
"build:css": "webpack",
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
Comment: This is just a change to developer commands.
|
||||||
|
|
|
@ -32,7 +32,8 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"turbo:build": "pnpm run clean && npm run compile",
|
"turbo:build": "pnpm run clean && npm run compile",
|
||||||
"turbo:test": "jest",
|
"turbo:test": "jest",
|
||||||
"test": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name",
|
"test": "pnpm test:js",
|
||||||
|
"test:js": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name",
|
||||||
"prepare": "composer install",
|
"prepare": "composer install",
|
||||||
"changelog": "composer exec -- changelogger",
|
"changelog": "composer exec -- changelogger",
|
||||||
"clean": "rm -rf ./dist ./tsconfig.tsbuildinfo",
|
"clean": "rm -rf ./dist ./tsconfig.tsbuildinfo",
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
Comment: This is just a change to developer commands.
|
||||||
|
|
|
@ -65,7 +65,8 @@
|
||||||
"changelog": "composer exec -- changelogger",
|
"changelog": "composer exec -- changelogger",
|
||||||
"clean": "pnpm exec rimraf tsconfig.tsbuildinfo build build-*",
|
"clean": "pnpm exec rimraf tsconfig.tsbuildinfo build build-*",
|
||||||
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
|
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
|
||||||
"test": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name",
|
"test": "pnpm test:js",
|
||||||
|
"test:js": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name",
|
||||||
"lint": "eslint --output-file eslint_report.json --format json src",
|
"lint": "eslint --output-file eslint_report.json --format json src",
|
||||||
"build:js": "tsc --project tsconfig.json && tsc --project tsconfig-cjs.json",
|
"build:js": "tsc --project tsconfig.json && tsc --project tsconfig-cjs.json",
|
||||||
"build:css": "webpack",
|
"build:css": "webpack",
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
Comment: This is just a change to developer commands.
|
||||||
|
|
|
@ -153,7 +153,8 @@
|
||||||
"prepare": "composer install",
|
"prepare": "composer install",
|
||||||
"changelog": "composer exec -- changelogger",
|
"changelog": "composer exec -- changelogger",
|
||||||
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
|
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
|
||||||
"test": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name",
|
"test": "pnpm test:js",
|
||||||
|
"test:js": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name",
|
||||||
"lint": "eslint --output-file eslint_report.json --format json --ext=js,ts,tsx src",
|
"lint": "eslint --output-file eslint_report.json --format json --ext=js,ts,tsx src",
|
||||||
"build:js": "tsc --project tsconfig.json && tsc --project tsconfig-cjs.json",
|
"build:js": "tsc --project tsconfig.json && tsc --project tsconfig-cjs.json",
|
||||||
"build:css": "webpack",
|
"build:css": "webpack",
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
Comment: This is just a change to developer commands.
|
||||||
|
|
|
@ -40,7 +40,8 @@
|
||||||
"changelog": "composer exec -- changelogger",
|
"changelog": "composer exec -- changelogger",
|
||||||
"clean": "pnpm exec rimraf tsconfig.tsbuildinfo build build-*",
|
"clean": "pnpm exec rimraf tsconfig.tsbuildinfo build build-*",
|
||||||
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
|
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
|
||||||
"test": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name",
|
"test": "pnpm test:js",
|
||||||
|
"test:js": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name",
|
||||||
"lint": "eslint --output-file eslint_report.json --format json src",
|
"lint": "eslint --output-file eslint_report.json --format json src",
|
||||||
"start": "concurrently \"tsc --project tsconfig.json --watch\" \"tsc --project tsconfig-cjs.json --watch\"",
|
"start": "concurrently \"tsc --project tsconfig.json --watch\" \"tsc --project tsconfig-cjs.json --watch\"",
|
||||||
"prepack": "pnpm run clean && pnpm run build",
|
"prepack": "pnpm run clean && pnpm run build",
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
Comment: This is just a change to developer commands.
|
||||||
|
|
|
@ -43,7 +43,8 @@
|
||||||
"changelog": "composer exec -- changelogger",
|
"changelog": "composer exec -- changelogger",
|
||||||
"clean": "pnpm exec rimraf tsconfig.tsbuildinfo build build-*",
|
"clean": "pnpm exec rimraf tsconfig.tsbuildinfo build build-*",
|
||||||
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
|
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
|
||||||
"test": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name",
|
"test": "pnpm test:js",
|
||||||
|
"test:js": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name",
|
||||||
"lint": "eslint --output-file eslint_report.json --format json src",
|
"lint": "eslint --output-file eslint_report.json --format json src",
|
||||||
"start": "concurrently \"tsc --project tsconfig.json --watch\" \"tsc --project tsconfig-cjs.json --watch\"",
|
"start": "concurrently \"tsc --project tsconfig.json --watch\" \"tsc --project tsconfig-cjs.json --watch\"",
|
||||||
"prepack": "pnpm run clean && pnpm run build",
|
"prepack": "pnpm run clean && pnpm run build",
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
Comment: This is just a change to developer commands.
|
||||||
|
|
|
@ -79,7 +79,8 @@
|
||||||
"changelog": "composer exec -- changelogger",
|
"changelog": "composer exec -- changelogger",
|
||||||
"clean": "pnpm exec rimraf tsconfig.tsbuildinfo build build-*",
|
"clean": "pnpm exec rimraf tsconfig.tsbuildinfo build build-*",
|
||||||
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
|
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
|
||||||
"test": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name",
|
"test": "pnpm test:js",
|
||||||
|
"test:js": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name",
|
||||||
"lint": "eslint --output-file eslint_report.json --format json src",
|
"lint": "eslint --output-file eslint_report.json --format json src",
|
||||||
"build:js": "tsc --project tsconfig.json && tsc --project tsconfig-cjs.json",
|
"build:js": "tsc --project tsconfig.json && tsc --project tsconfig-cjs.json",
|
||||||
"build:css": "webpack",
|
"build:css": "webpack",
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
Comment: This is just a change to developer commands.
|
||||||
|
|
|
@ -86,7 +86,8 @@
|
||||||
"changelog": "composer exec -- changelogger",
|
"changelog": "composer exec -- changelogger",
|
||||||
"clean": "pnpm exec rimraf tsconfig.tsbuildinfo build build-*",
|
"clean": "pnpm exec rimraf tsconfig.tsbuildinfo build build-*",
|
||||||
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
|
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
|
||||||
"test": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name",
|
"test": "pnpm test:js",
|
||||||
|
"test:js": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name",
|
||||||
"lint": "eslint --output-file eslint_report.json --format json src",
|
"lint": "eslint --output-file eslint_report.json --format json src",
|
||||||
"start": "concurrently \"tsc --project tsconfig.json --watch\" \"tsc --project tsconfig-cjs.json --watch\"",
|
"start": "concurrently \"tsc --project tsconfig.json --watch\" \"tsc --project tsconfig-cjs.json --watch\"",
|
||||||
"prepack": "pnpm run clean && pnpm run build",
|
"prepack": "pnpm run clean && pnpm run build",
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
Comment: This is just a change to developer commands.
|
||||||
|
|
|
@ -63,7 +63,8 @@
|
||||||
"changelog": "composer exec -- changelogger",
|
"changelog": "composer exec -- changelogger",
|
||||||
"clean": "pnpm exec rimraf tsconfig.tsbuildinfo build build-*",
|
"clean": "pnpm exec rimraf tsconfig.tsbuildinfo build build-*",
|
||||||
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
|
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
|
||||||
"test": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name",
|
"test": "pnpm test:js",
|
||||||
|
"test:js": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name",
|
||||||
"lint": "eslint --output-file eslint_report.json --format json src",
|
"lint": "eslint --output-file eslint_report.json --format json src",
|
||||||
"start": "concurrently \"tsc --project tsconfig.json --watch\" \"tsc --project tsconfig-cjs.json --watch\"",
|
"start": "concurrently \"tsc --project tsconfig.json --watch\" \"tsc --project tsconfig-cjs.json --watch\"",
|
||||||
"prepack": "pnpm run clean && pnpm run build",
|
"prepack": "pnpm run clean && pnpm run build",
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
Comment: This is just a change to developer commands.
|
||||||
|
|
|
@ -89,7 +89,8 @@
|
||||||
"changelog": "composer exec -- changelogger",
|
"changelog": "composer exec -- changelogger",
|
||||||
"clean": "pnpm exec rimraf tsconfig.tsbuildinfo build build-*",
|
"clean": "pnpm exec rimraf tsconfig.tsbuildinfo build build-*",
|
||||||
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
|
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
|
||||||
"test": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name",
|
"test": "pnpm test:js",
|
||||||
|
"test:js": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name",
|
||||||
"lint": "eslint --output-file eslint_report.json --format json src",
|
"lint": "eslint --output-file eslint_report.json --format json src",
|
||||||
"build:js": "tsc --project tsconfig.json && tsc --project tsconfig-cjs.json",
|
"build:js": "tsc --project tsconfig.json && tsc --project tsconfig-cjs.json",
|
||||||
"build:css": "webpack",
|
"build:css": "webpack",
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
Comment: This is just a change to developer commands.
|
||||||
|
|
|
@ -61,7 +61,8 @@
|
||||||
"changelog": "composer exec -- changelogger",
|
"changelog": "composer exec -- changelogger",
|
||||||
"clean": "pnpm exec rimraf tsconfig.tsbuildinfo build build-*",
|
"clean": "pnpm exec rimraf tsconfig.tsbuildinfo build build-*",
|
||||||
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
|
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
|
||||||
"test": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name",
|
"test": "pnpm test:js",
|
||||||
|
"test:js": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name",
|
||||||
"lint": "eslint --output-file eslint_report.json --format json src",
|
"lint": "eslint --output-file eslint_report.json --format json src",
|
||||||
"start": "concurrently \"tsc --project tsconfig.json --watch\" \"tsc --project tsconfig-cjs.json --watch\"",
|
"start": "concurrently \"tsc --project tsconfig.json --watch\" \"tsc --project tsconfig-cjs.json --watch\"",
|
||||||
"prepack": "pnpm run clean && pnpm run build",
|
"prepack": "pnpm run clean && pnpm run build",
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
Comment: This is just a change to developer commands.
|
||||||
|
|
|
@ -68,7 +68,8 @@
|
||||||
"changelog": "composer exec -- changelogger",
|
"changelog": "composer exec -- changelogger",
|
||||||
"clean": "pnpm exec rimraf tsconfig.tsbuildinfo build build-*",
|
"clean": "pnpm exec rimraf tsconfig.tsbuildinfo build build-*",
|
||||||
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
|
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
|
||||||
"test": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name",
|
"test": "pnpm test:js",
|
||||||
|
"test:js": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name",
|
||||||
"lint": "eslint --output-file eslint_report.json --format json src",
|
"lint": "eslint --output-file eslint_report.json --format json src",
|
||||||
"build:js": "tsc --project tsconfig.json && tsc --project tsconfig-cjs.json",
|
"build:js": "tsc --project tsconfig.json && tsc --project tsconfig-cjs.json",
|
||||||
"start": "concurrently \"tsc --project tsconfig.json --watch\" \"tsc --project tsconfig-cjs.json --watch\" \"webpack --watch\"",
|
"start": "concurrently \"tsc --project tsconfig.json --watch\" \"tsc --project tsconfig-cjs.json --watch\" \"webpack --watch\"",
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
Comment: This is just a change to developer commands.
|
||||||
|
|
|
@ -51,7 +51,8 @@
|
||||||
"changelog": "composer exec -- changelogger",
|
"changelog": "composer exec -- changelogger",
|
||||||
"clean": "pnpm exec rimraf tsconfig.tsbuildinfo build build-*",
|
"clean": "pnpm exec rimraf tsconfig.tsbuildinfo build build-*",
|
||||||
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
|
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
|
||||||
"test": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name",
|
"test": "pnpm test:js",
|
||||||
|
"test:js": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name",
|
||||||
"lint": "eslint --output-file eslint_report.json --format json src",
|
"lint": "eslint --output-file eslint_report.json --format json src",
|
||||||
"start": "concurrently \"tsc --project tsconfig.json --watch\" \"tsc --project tsconfig-cjs.json --watch\"",
|
"start": "concurrently \"tsc --project tsconfig.json --watch\" \"tsc --project tsconfig-cjs.json --watch\"",
|
||||||
"prepack": "pnpm run clean && pnpm run build",
|
"prepack": "pnpm run clean && pnpm run build",
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
Comment: This is just a change to developer commands.
|
||||||
|
|
|
@ -37,7 +37,8 @@
|
||||||
"changelog": "composer exec -- changelogger",
|
"changelog": "composer exec -- changelogger",
|
||||||
"clean": "pnpm exec rimraf tsconfig.tsbuildinfo build build-*",
|
"clean": "pnpm exec rimraf tsconfig.tsbuildinfo build build-*",
|
||||||
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
|
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
|
||||||
"test": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name",
|
"test": "pnpm test:js",
|
||||||
|
"test:js": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name",
|
||||||
"lint": "eslint --output-file eslint_report.json --format json src",
|
"lint": "eslint --output-file eslint_report.json --format json src",
|
||||||
"start": "concurrently \"tsc --project tsconfig.json --watch\" \"tsc --project tsconfig-cjs.json --watch\"",
|
"start": "concurrently \"tsc --project tsconfig.json --watch\" \"tsc --project tsconfig-cjs.json --watch\"",
|
||||||
"prepack": "pnpm run clean && pnpm run build",
|
"prepack": "pnpm run clean && pnpm run build",
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
Comment: This is just a change to developer commands.
|
||||||
|
|
|
@ -79,7 +79,8 @@
|
||||||
"build:js": "tsc --project tsconfig.json && tsc --project tsconfig-cjs.json",
|
"build:js": "tsc --project tsconfig.json && tsc --project tsconfig-cjs.json",
|
||||||
"build:css": "webpack",
|
"build:css": "webpack",
|
||||||
"start": "concurrently \"tsc --project tsconfig.json --watch\" \"tsc --project tsconfig-cjs.json --watch\" \"webpack --watch\"",
|
"start": "concurrently \"tsc --project tsconfig.json --watch\" \"tsc --project tsconfig-cjs.json --watch\" \"webpack --watch\"",
|
||||||
"test": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name",
|
"test": "pnpm test:js",
|
||||||
|
"test:js": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name",
|
||||||
"prepack": "pnpm run clean && pnpm run build",
|
"prepack": "pnpm run clean && pnpm run build",
|
||||||
"lint:fix": "eslint src --fix",
|
"lint:fix": "eslint src --fix",
|
||||||
"test-staged": "jest --bail --config ./jest.config.json --findRelatedTests"
|
"test-staged": "jest --bail --config ./jest.config.json --findRelatedTests"
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
Comment: This is just a change to developer commands.
|
||||||
|
|
|
@ -122,7 +122,8 @@
|
||||||
"changelog": "composer exec -- changelogger",
|
"changelog": "composer exec -- changelogger",
|
||||||
"clean": "pnpm exec rimraf tsconfig.tsbuildinfo build build-*",
|
"clean": "pnpm exec rimraf tsconfig.tsbuildinfo build build-*",
|
||||||
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
|
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
|
||||||
"test": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name",
|
"test": "pnpm test:js",
|
||||||
|
"test:js": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name",
|
||||||
"lint": "eslint --output-file eslint_report.json --format json src",
|
"lint": "eslint --output-file eslint_report.json --format json src",
|
||||||
"build:js": "tsc --project tsconfig.json && tsc --project tsconfig-cjs.json",
|
"build:js": "tsc --project tsconfig.json && tsc --project tsconfig-cjs.json",
|
||||||
"build:css": "webpack",
|
"build:css": "webpack",
|
||||||
|
|
|
@ -14,7 +14,8 @@
|
||||||
"turbo:test": "pnpm run test:client",
|
"turbo:test": "pnpm run test:client",
|
||||||
"analyze": "cross-env NODE_ENV=production ANALYZE=true webpack",
|
"analyze": "cross-env NODE_ENV=production ANALYZE=true webpack",
|
||||||
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
|
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
|
||||||
"test": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name",
|
"test": "pnpm test:js",
|
||||||
|
"test:js": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name",
|
||||||
"lint": "pnpm run lint:js && pnpm run lint:css",
|
"lint": "pnpm run lint:js && pnpm run lint:css",
|
||||||
"build:feature-config": "php ../woocommerce/bin/generate-feature-config.php",
|
"build:feature-config": "php ../woocommerce/bin/generate-feature-config.php",
|
||||||
"clean": "rimraf ../woocommerce/assets/client/admin/*",
|
"clean": "rimraf ../woocommerce/assets/client/admin/*",
|
||||||
|
|
|
@ -7,8 +7,11 @@
|
||||||
"build": "wp-scripts build",
|
"build": "wp-scripts build",
|
||||||
"start": "wp-scripts start",
|
"start": "wp-scripts start",
|
||||||
"postinstall": "composer install",
|
"postinstall": "composer install",
|
||||||
"test:env-setup": "wp-env start && wp-env run cli --env-cwd=wp-content/plugins/woocommerce-docs composer install",
|
"test": "pnpm test:php",
|
||||||
"test:unit": "pnpm run test:env-setup && wp-env run tests-cli vendor/bin/phpunit --env-cwd=wp-content/plugins/woocommerce-docs"
|
"test:env:start": "wp-env start && wp-env run cli --env-cwd=wp-content/plugins/woocommerce-docs composer install",
|
||||||
|
"test:php": "wp-env run tests-cli vendor/bin/phpunit --env-cwd=wp-content/plugins/woocommerce-docs",
|
||||||
|
"test:env-setup": "pnpm test:env:start",
|
||||||
|
"test:unit": "pnpm test:env:start && pnpm test:php"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "",
|
"author": "",
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
Comment: This is just a change to developer commands.
|
||||||
|
|
|
@ -19,7 +19,8 @@
|
||||||
"postinstall": "composer install",
|
"postinstall": "composer install",
|
||||||
"changelog": "composer exec -- changelogger",
|
"changelog": "composer exec -- changelogger",
|
||||||
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
|
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
|
||||||
"test": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name",
|
"test": "pnpm test:js",
|
||||||
|
"test:js": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name",
|
||||||
"lint": "pnpm lint:php",
|
"lint": "pnpm lint:php",
|
||||||
"build:feature-config": "php bin/generate-feature-config.php",
|
"build:feature-config": "php bin/generate-feature-config.php",
|
||||||
"build:zip": "./bin/build-zip.sh",
|
"build:zip": "./bin/build-zip.sh",
|
||||||
|
@ -48,8 +49,11 @@
|
||||||
"make:collection": "pnpm exec wc-api-tests make:collection",
|
"make:collection": "pnpm exec wc-api-tests make:collection",
|
||||||
"e2e:debug": "pnpm exec wc-e2e test:e2e-debug",
|
"e2e:debug": "pnpm exec wc-e2e test:e2e-debug",
|
||||||
"e2e:dev": "pnpm exec wc-e2e test:e2e-dev",
|
"e2e:dev": "pnpm exec wc-e2e test:e2e-dev",
|
||||||
"test:unit": "./vendor/bin/phpunit -c ./phpunit.xml",
|
"test:env:start": "pnpm env:test",
|
||||||
"test:unit:env": "wp-env run --env-cwd='wp-content/plugins/woocommerce' tests-cli vendor/bin/phpunit -c phpunit.xml --verbose",
|
"test:php": "./vendor/bin/phpunit -c ./phpunit.xml",
|
||||||
|
"test:php:env": "wp-env run --env-cwd='wp-content/plugins/woocommerce' tests-cli vendor/bin/phpunit -c phpunit.xml --verbose",
|
||||||
|
"test:unit": "pnpm test:php",
|
||||||
|
"test:unit:env": "pnpm test:php:env",
|
||||||
"makepot": "composer run-script makepot",
|
"makepot": "composer run-script makepot",
|
||||||
"packages:fix:textdomain": "node ./bin/package-update-textdomain.js"
|
"packages:fix:textdomain": "node ./bin/package-update-textdomain.js"
|
||||||
},
|
},
|
||||||
|
|
|
@ -32,7 +32,8 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "eslint . --ext .ts",
|
"lint": "eslint . --ext .ts",
|
||||||
"turbo:test": "jest",
|
"turbo:test": "jest",
|
||||||
"test": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name",
|
"test": "pnpm test:js",
|
||||||
|
"test:js": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name",
|
||||||
"analyzer": "node -r ts-node/register ./src/commands/analyzer/index.ts"
|
"analyzer": "node -r ts-node/register ./src/commands/analyzer/index.ts"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|
|
@ -47,7 +47,8 @@
|
||||||
"lint": "eslint . --ext .ts",
|
"lint": "eslint . --ext .ts",
|
||||||
"postinstall": "pnpm run build",
|
"postinstall": "pnpm run build",
|
||||||
"turbo:test": "jest",
|
"turbo:test": "jest",
|
||||||
"test": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name"
|
"test": "pnpm test:js",
|
||||||
|
"test:js": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^16.14.1",
|
"node": "^16.14.1",
|
||||||
|
|
Loading…
Reference in New Issue