Skip to content

Commit

Permalink
ci: reuse jest config between taiga-family projects (#9462)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Oct 17, 2024
1 parent 20d5b44 commit 5ecf31c
Show file tree
Hide file tree
Showing 18 changed files with 35 additions and 98 deletions.
62 changes: 0 additions & 62 deletions jest.config.ts

This file was deleted.

37 changes: 16 additions & 21 deletions package-lock.json

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

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@
}
]
},
"jest": {
"preset": "@taiga-ui/jest-config"
},
"devDependencies": {
"@angular-devkit/build-angular": "16.2.16",
"@angular-devkit/core": "16.2.16",
Expand All @@ -148,6 +151,7 @@
"@taiga-ui/design-tokens": "0.142.0",
"@taiga-ui/eslint-plugin-experience": "0.225.0",
"@taiga-ui/event-plugins": "4.3.1",
"@taiga-ui/jest-config": "0.225.0",
"@taiga-ui/prettier-config": "0.225.0",
"@taiga-ui/stylelint-config": "0.225.0",
"@taiga-ui/tsconfig": "0.225.0",
Expand Down
2 changes: 1 addition & 1 deletion projects/addon-charts/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectName}"],
"options": {
"jestConfig": "jest.config.ts",
"jestConfig": "package.json",
"coverageDirectory": "coverage/{projectName}",
"collectCoverageFrom": ["<rootDir>/{projectRoot}/**/*.ts"],
"testMatch": ["<rootDir>/{projectRoot}/**/*.spec.ts"]
Expand Down
2 changes: 1 addition & 1 deletion projects/addon-commerce/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectName}"],
"options": {
"jestConfig": "jest.config.ts",
"jestConfig": "package.json",
"coverageDirectory": "coverage/{projectName}",
"collectCoverageFrom": ["<rootDir>/{projectRoot}/**/*.ts"],
"testMatch": ["<rootDir>/{projectRoot}/**/*.spec.ts"]
Expand Down
2 changes: 1 addition & 1 deletion projects/addon-doc/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectName}"],
"options": {
"jestConfig": "jest.config.ts",
"jestConfig": "package.json",
"coverageDirectory": "coverage/{projectName}",
"collectCoverageFrom": ["<rootDir>/{projectRoot}/**/*.ts"],
"testMatch": ["<rootDir>/{projectRoot}/**/*.spec.ts"]
Expand Down
2 changes: 1 addition & 1 deletion projects/addon-mobile/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectName}"],
"options": {
"jestConfig": "jest.config.ts",
"jestConfig": "package.json",
"coverageDirectory": "coverage/{projectName}",
"collectCoverageFrom": ["<rootDir>/{projectRoot}/**/*.ts"],
"testMatch": ["<rootDir>/{projectRoot}/**/*.spec.ts"]
Expand Down
2 changes: 1 addition & 1 deletion projects/addon-table/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectName}"],
"options": {
"jestConfig": "jest.config.ts",
"jestConfig": "package.json",
"coverageDirectory": "coverage/{projectName}",
"collectCoverageFrom": ["<rootDir>/{projectRoot}/**/*.ts"],
"testMatch": ["<rootDir>/{projectRoot}/**/*.spec.ts"]
Expand Down
2 changes: 1 addition & 1 deletion projects/cdk/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectName}"],
"options": {
"jestConfig": "jest.config.ts",
"jestConfig": "package.json",
"coverageDirectory": "coverage/{projectName}",
"collectCoverageFrom": ["<rootDir>/{projectRoot}/**/*.ts"],
"testMatch": ["<rootDir>/{projectRoot}/**/*.spec.ts"]
Expand Down
2 changes: 1 addition & 1 deletion projects/core/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectName}"],
"options": {
"jestConfig": "jest.config.ts",
"jestConfig": "package.json",
"coverageDirectory": "coverage/{projectName}",
"collectCoverageFrom": ["<rootDir>/{projectRoot}/**/*.ts"],
"testMatch": ["<rootDir>/{projectRoot}/**/*.spec.ts"]
Expand Down
2 changes: 1 addition & 1 deletion projects/demo/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectName}"],
"options": {
"jestConfig": "jest.config.ts",
"jestConfig": "package.json",
"collectCoverage": false,
"testMatch": ["<rootDir>/{projectRoot}/src/**/*.spec.ts"]
}
Expand Down
2 changes: 1 addition & 1 deletion projects/experimental/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectName}"],
"options": {
"jestConfig": "jest.config.ts",
"jestConfig": "package.json",
"coverageDirectory": "coverage/{projectName}",
"collectCoverageFrom": ["<rootDir>/{projectRoot}/**/*.ts"],
"testMatch": ["<rootDir>/{projectRoot}/**/*.spec.ts"]
Expand Down
2 changes: 1 addition & 1 deletion projects/i18n/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectName}"],
"options": {
"jestConfig": "jest.config.ts",
"jestConfig": "package.json",
"collectCoverage": false,
"testMatch": ["<rootDir>/{projectRoot}/**/*.spec.ts"]
}
Expand Down
2 changes: 1 addition & 1 deletion projects/icons/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectName}"],
"options": {
"jestConfig": "jest.config.ts",
"jestConfig": "package.json",
"collectCoverage": false,
"testMatch": ["<rootDir>/{projectRoot}/**/*.spec.ts"]
}
Expand Down
2 changes: 1 addition & 1 deletion projects/kit/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectName}"],
"options": {
"jestConfig": "jest.config.ts",
"jestConfig": "package.json",
"coverageDirectory": "coverage/{projectName}",
"collectCoverageFrom": ["<rootDir>/{projectRoot}/**/*.ts"],
"testMatch": ["<rootDir>/{projectRoot}/**/*.spec.ts"]
Expand Down
2 changes: 1 addition & 1 deletion projects/layout/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectName}"],
"options": {
"jestConfig": "jest.config.ts",
"jestConfig": "package.json",
"coverageDirectory": "coverage/{projectName}",
"collectCoverageFrom": ["<rootDir>/{projectRoot}/**/*.ts"],
"testMatch": ["<rootDir>/{projectRoot}/**/*.spec.ts"]
Expand Down
2 changes: 1 addition & 1 deletion projects/legacy/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectName}"],
"options": {
"jestConfig": "jest.config.ts",
"jestConfig": "package.json",
"coverageDirectory": "coverage/{projectName}",
"collectCoverageFrom": ["<rootDir>/{projectRoot}/**/*.ts"],
"testMatch": ["<rootDir>/{projectRoot}/**/*.spec.ts"]
Expand Down
2 changes: 1 addition & 1 deletion projects/testing/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectName}"],
"options": {
"jestConfig": "jest.config.ts",
"jestConfig": "package.json",
"collectCoverage": false,
"testMatch": ["<rootDir>/{projectRoot}/**/*.spec.ts"]
}
Expand Down

0 comments on commit 5ecf31c

Please sign in to comment.