From 1f92a52f30169a761f3a440c9abf5a74cb83d429 Mon Sep 17 00:00:00 2001 From: "Matthew Riley MacPherson (tofumatt)" Date: Sat, 23 Jun 2018 18:30:09 +0100 Subject: [PATCH 1/2] feat: Add snapshot update script Fixes #7513 --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 358ba58d6c8fc..54bb5746d8adf 100644 --- a/package.json +++ b/package.json @@ -173,6 +173,7 @@ "test-unit": "wp-scripts test-unit-js --config test/unit/jest.config.json", "test-unit:coverage": "npm run test-unit -- --coverage", "test-unit:coverage-ci": "npm run test-unit -- --coverage --maxWorkers 1 && codecov", + "test-unit:update": "wp-scripts test-unit-js --config test/unit/jest.config.json --updateSnapshot", "test-unit:watch": "npm run test-unit -- --watch", "test-unit-php": "docker-compose run --rm wordpress_phpunit phpunit", "test-unit-php-multisite": "docker-compose run -e WP_MULTISITE=1 --rm wordpress_phpunit phpunit" From 2dc4fb8614cae21b6a0adcdf0faa1cf1660e2c3d Mon Sep 17 00:00:00 2001 From: "Matthew Riley MacPherson (tofumatt)" Date: Sat, 23 Jun 2018 18:32:30 +0100 Subject: [PATCH 2/2] Oops, use the existing script --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 54bb5746d8adf..e5ce0b3d7ef60 100644 --- a/package.json +++ b/package.json @@ -173,7 +173,7 @@ "test-unit": "wp-scripts test-unit-js --config test/unit/jest.config.json", "test-unit:coverage": "npm run test-unit -- --coverage", "test-unit:coverage-ci": "npm run test-unit -- --coverage --maxWorkers 1 && codecov", - "test-unit:update": "wp-scripts test-unit-js --config test/unit/jest.config.json --updateSnapshot", + "test-unit:update": "npm run test-unit -- --updateSnapshot", "test-unit:watch": "npm run test-unit -- --watch", "test-unit-php": "docker-compose run --rm wordpress_phpunit phpunit", "test-unit-php-multisite": "docker-compose run -e WP_MULTISITE=1 --rm wordpress_phpunit phpunit"