Skip to content

Commit

Permalink
chore: add task to update snap in all unit tests + tweak workflow (#1375
Browse files Browse the repository at this point in the history
)
  • Loading branch information
louis-bompart authored Oct 27, 2023
1 parent 6817b3c commit 86f0f1a
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
8 changes: 5 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/cli/commons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions packages/cli/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/cli/source/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/ui/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion packages/ui/atomic/create-atomic-component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion packages/ui/atomic/health-check/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/ui/search-token-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 86f0f1a

Please sign in to comment.