diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d88df8b416..4ccad4ebd5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -207,7 +207,7 @@ jobs: - name: Build run: npm run build - name: Tests - run: npm run test + run: npm run test:ci:snap - name: Find modified Snapshots id: snapshots-path run: | diff --git a/package-lock.json b/package-lock.json index b6345d1999..83a30a4e08 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30752,7 +30752,7 @@ "typescript": "4.9.5" }, "engines": { - "node": "^16.13.0 || ^18.12.0" + "node": "^18.18.1 || ^20.9.0" }, "peerDependencies": { "create-react-app": "*" @@ -30803,7 +30803,7 @@ "undici": "5.22.0" }, "engines": { - "node": "^16.13.0 || ^18.12.0" + "node": "^18.18.1 || ^20.9.0" } }, "packages/ui/angular": { @@ -31268,7 +31268,7 @@ "typescript": "4.9.5" }, "engines": { - "node": "^16.13.0 || ^18.12.0" + "node": "^18.18.1 || ^20.9.0" } }, "packages/ui/search-token-server": { @@ -31409,6 +31409,8 @@ "bin": { "git-lock": "git-lock.mjs", "git-publish-all": "git-publish-all.mjs", + "github-publish": "create-github-release.mjs", + "is-cli-release": "is-cli-release.mjs", "npm-publish": "npm-publish-package.mjs" }, "devDependencies": { diff --git a/package.json b/package.json index cb57fb5f1f..5fb3f97ed4 100644 --- a/package.json +++ b/package.json @@ -78,6 +78,7 @@ "clean": "rimraf package-lock.json node_modules", "build": "nx run-many --target=build --all", "test": "nx run-many --target=test --all", + "test:ci:snap": "nx run-many --target=test:ci:snap --all", "lint": "nx run-many --target=lint --all && prettier --ignore-path .ci.prettierignore --check . && eslint .", "commit": "git-cz", "pr:report": "node ./scripts/pr-bot.js", diff --git a/packages/cli/commons/package.json b/packages/cli/commons/package.json index 52f8b1de3c..709787404b 100644 --- a/packages/cli/commons/package.json +++ b/packages/cli/commons/package.json @@ -40,6 +40,7 @@ }, "scripts": { "test": "jest", + "test:ci:snap": "jest -u", "build": "tsc -b tsconfig.build.json", "prepublishOnly": "npm run build", "release:phase1": "npx -p=@coveord/release npm-publish" diff --git a/packages/cli/core/package.json b/packages/cli/core/package.json index b206eafa71..30524f7d2c 100644 --- a/packages/cli/core/package.json +++ b/packages/cli/core/package.json @@ -174,6 +174,7 @@ "scripts": { "build": "rimraf lib && tsc -b tsconfig.build.json", "test": "jest --colors", + "test:ci:snap": "jest --colors -u", "lint": "prettier --check . && eslint .", "release:phase1": "npx -p=@coveord/release npm-publish", "postpack": "rimraf oclif.manifest.json", diff --git a/packages/cli/source/package.json b/packages/cli/source/package.json index 0c421cd602..97e9a9ff7f 100644 --- a/packages/cli/source/package.json +++ b/packages/cli/source/package.json @@ -68,6 +68,7 @@ "scripts": { "build": "tsc -b tsconfig.build.json", "test": "jest --colors", + "test:ci:snap": "jest --colors -u", "lint": "prettier --config .prettierrc.js --check . && eslint .", "release:phase1": "npx -p=@coveord/release npm-publish", "postpack": "rimraf oclif.manifest.json", diff --git a/packages/ui/angular/package.json b/packages/ui/angular/package.json index c2ec896f86..f0753640e6 100644 --- a/packages/ui/angular/package.json +++ b/packages/ui/angular/package.json @@ -4,6 +4,7 @@ "description": "Coveo schematic for angular", "scripts": { "test": "jest", + "test:ci:snap": "jest -u", "lint": "prettier --check . && eslint .", "build": "tsc -p tsconfig.json", "prebuild": "node ./scripts/clean.js", diff --git a/packages/ui/atomic/create-atomic-component-project/package.json b/packages/ui/atomic/create-atomic-component-project/package.json index 647afb7233..8539bf6c8b 100644 --- a/packages/ui/atomic/create-atomic-component-project/package.json +++ b/packages/ui/atomic/create-atomic-component-project/package.json @@ -13,7 +13,8 @@ ], "scripts": { "release:phase1": "npx -p=@coveord/release npm-publish", - "test": "node --experimental-vm-modules --no-warnings ../../../../node_modules/jest/bin/jest.js" + "test": "node --experimental-vm-modules --no-warnings ../../../../node_modules/jest/bin/jest.js", + "test:ci:snap": "node --experimental-vm-modules --no-warnings ../../../../node_modules/jest/bin/jest.js -u" }, "keywords": [ "coveo", diff --git a/packages/ui/atomic/create-atomic-component/package.json b/packages/ui/atomic/create-atomic-component/package.json index 83d22e217b..c2dbbcc7e0 100644 --- a/packages/ui/atomic/create-atomic-component/package.json +++ b/packages/ui/atomic/create-atomic-component/package.json @@ -13,7 +13,8 @@ ], "scripts": { "release:phase1": "npx -p=@coveord/release npm-publish", - "test": "node --experimental-vm-modules --no-warnings ../../../../node_modules/jest/bin/jest.js" + "test": "node --experimental-vm-modules --no-warnings ../../../../node_modules/jest/bin/jest.js", + "test:ci:snap": "node --experimental-vm-modules --no-warnings ../../../../node_modules/jest/bin/jest.js -u" }, "keywords": [ "coveo", diff --git a/packages/ui/atomic/create-atomic-result-component/package.json b/packages/ui/atomic/create-atomic-result-component/package.json index 758b45b9c4..af7c830d9b 100644 --- a/packages/ui/atomic/create-atomic-result-component/package.json +++ b/packages/ui/atomic/create-atomic-result-component/package.json @@ -13,7 +13,8 @@ ], "scripts": { "release:phase1": "npx -p=@coveord/release npm-publish", - "test": "node --experimental-vm-modules --no-warnings ../../../../node_modules/jest/bin/jest.js" + "test": "node --experimental-vm-modules --no-warnings ../../../../node_modules/jest/bin/jest.js", + "test:ci:snap": "node --experimental-vm-modules --no-warnings ../../../../node_modules/jest/bin/jest.js -u" }, "keywords": [ "coveo", diff --git a/packages/ui/atomic/health-check/package.json b/packages/ui/atomic/health-check/package.json index e233629ec7..723920acf8 100644 --- a/packages/ui/atomic/health-check/package.json +++ b/packages/ui/atomic/health-check/package.json @@ -20,7 +20,8 @@ "pretest": "rimraf dist && tsc -b tsconfig.json", "test:unit": "jest --testPathIgnorePatterns=e2e", "test:e2e": "node --experimental-vm-modules --no-warnings ../../../../node_modules/jest/bin/jest.js --testPathPattern=e2e", - "test": "npm run test:unit && npm run test:e2e" + "test": "npm run test:unit && npm run test:e2e", + "test:ci:snap": "npm run test:unit -- -u && npm run test:e2e -- -u" }, "repository": { "type": "git", diff --git a/packages/ui/search-token-server/package.json b/packages/ui/search-token-server/package.json index c366d80d39..c12bdc1ed4 100644 --- a/packages/ui/search-token-server/package.json +++ b/packages/ui/search-token-server/package.json @@ -25,6 +25,7 @@ "scripts": { "start": "ts-node server.ts", "test": "jest", + "test:ci:snap": "jest -u", "release:phase1": "npx -p=@coveord/release npm-publish" }, "devDependencies": {