|
21 | 21 | "pnpm run build-production" |
22 | 22 | ], |
23 | 23 | "test-coverage": [ |
24 | | - "php -dpcov.directory=. ./vendor/bin/phpunit-select-config phpunit.#.xml.dist --coverage-php \"$COVERAGE_DIR/php.cov\"" |
| 24 | + "php -d auto_prepend_file=tests/suppress_php84_deprecations.php -dpcov.directory=. ./vendor/bin/phpunit-select-config phpunit.#.xml.dist --coverage-php \"$COVERAGE_DIR/php.cov\"" |
25 | 25 | ], |
26 | | - "tests": "vendor/bin/codecept run acceptance --fail-fast", |
27 | | - "tests-debug": "vendor/bin/codecept run acceptance --fail-fast --debug", |
28 | | - "create-test": "vendor/bin/codecept generate:cest acceptance $1", |
29 | | - "build-tests": "vendor/bin/codecept build", |
| 26 | + "tests": "php -d auto_prepend_file=tests/suppress_php84_deprecations.php vendor/bin/codecept run acceptance --fail-fast", |
| 27 | + "tests-debug": "php -d auto_prepend_file=tests/suppress_php84_deprecations.php vendor/bin/codecept run acceptance --fail-fast --debug", |
| 28 | + "create-test": "php -d auto_prepend_file=tests/suppress_php84_deprecations.php vendor/bin/codecept generate:cest acceptance $1", |
| 29 | + "build-tests": "php -d auto_prepend_file=tests/suppress_php84_deprecations.php vendor/bin/codecept build", |
30 | 30 | "cs": "temp=$(git diff --diff-filter=d --name-only trunk HEAD | grep '.php'); [[ -n $temp ]] && phpcs-changed -s --always-exit-zero --git --git-base trunk $temp || echo 'No changes found.'", |
31 | 31 | "cs-staged": "temp=$(git diff --diff-filter=d --name-only --cached | grep '.php'); [[ -n $temp ]] && phpcs-changed -s --always-exit-zero --git --git-staged $temp || echo 'No changes found.'", |
32 | 32 | "cs-unstaged": "temp=$(git diff --diff-filter=d --name-only | grep '.php'); [[ -n $temp ]] && phpcs-changed -s --always-exit-zero --git --git-unstaged $temp || echo 'No changes found.'", |
33 | 33 | "phpunit": [ |
34 | | - "phpunit-select-config phpunit.#.xml.dist --colors=always" |
| 34 | + "php -d auto_prepend_file=tests/suppress_php84_deprecations.php vendor/bin/phpunit-select-config phpunit.#.xml.dist --colors=always" |
35 | 35 | ], |
36 | 36 | "skip-test-php": "tests/action-skip-test-php.sh", |
37 | 37 | "test-php": [ |
|
58 | 58 | "automattic/jetpack-autoloader": "@dev", |
59 | 59 | "automattic/jetpack-composer-plugin": "@dev", |
60 | 60 | "automattic/woocommerce": "^3.1", |
61 | | - "dompdf/dompdf": "^2.0" |
| 61 | + "dompdf/dompdf": "^3.1", |
| 62 | + "thecodingmachine/safe": "^1.3" |
62 | 63 | }, |
63 | 64 | "repositories": [ |
64 | 65 | { |
|
0 commit comments