From 1403849efe14e55367716a415c2a501ac0c3769b Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Fri, 14 Apr 2023 08:39:51 +0100 Subject: [PATCH] Fixed i18n tests in CI - bit of a mess but we run `test:unit` in CI and this needed to run `yarn translate` so i18next-parser can fail if the translations need updating (ie. fail tests) --- ghost/i18n/package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ghost/i18n/package.json b/ghost/i18n/package.json index 8ab03392af..3323ea4242 100644 --- a/ghost/i18n/package.json +++ b/ghost/i18n/package.json @@ -7,8 +7,9 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --include index.js --include lib --check-coverage --100 --reporter text --reporter cobertura mocha './test/**/*.test.js'", - "test": "yarn test:unit && yarn translate", + "test:unit:base": "NODE_ENV=testing c8 --include index.js --include lib --check-coverage --100 --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "yarn test:unit:base && yarn translate", + "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", "lint:test": "eslint -c test/.eslintrc.js test/ --ext .js --cache",