chore(angular): split module-federation tests into their own project (#20721)
This commit is contained in:
parent
5befe533fc
commit
79cab697bf
9
.github/workflows/e2e-matrix.yml
vendored
9
.github/workflows/e2e-matrix.yml
vendored
@ -14,7 +14,7 @@ on:
|
||||
env:
|
||||
CYPRESS_CACHE_FOLDER: ${{ github.workspace }}/.cypress
|
||||
|
||||
permissions: {}
|
||||
permissions: { }
|
||||
jobs:
|
||||
preinstall:
|
||||
runs-on: ${{ matrix.os }}
|
||||
@ -110,6 +110,7 @@ jobs:
|
||||
project:
|
||||
- e2e-angular-core
|
||||
- e2e-angular-extensions
|
||||
- e2e-angular-module-federation
|
||||
- e2e-cypress
|
||||
- e2e-detox
|
||||
- e2e-esbuild
|
||||
@ -151,6 +152,8 @@ jobs:
|
||||
codeowners: 'S04SS457V38'
|
||||
- project: e2e-angular-extensions
|
||||
codeowners: 'S04SS457V38'
|
||||
- project: e2e-angular-module-federation
|
||||
codeowners: 'S04SS457V38'
|
||||
- project: e2e-cypress
|
||||
codeowners: 'S04T16BTJJY'
|
||||
- project: e2e-detox
|
||||
@ -214,6 +217,8 @@ jobs:
|
||||
project: e2e-angular-core
|
||||
- node_version: 16
|
||||
project: e2e-angular-extensions
|
||||
- node_version: 16
|
||||
project: e2e-angular-module-federation
|
||||
- node_version: 16
|
||||
project: e2e-cypress
|
||||
- node_version: 16
|
||||
@ -262,6 +267,8 @@ jobs:
|
||||
project: e2e-angular-core
|
||||
- node_version: 20
|
||||
project: e2e-angular-extensions
|
||||
- node_version: 20
|
||||
project: e2e-angular-module-federation
|
||||
- node_version: 20
|
||||
project: e2e-cypress
|
||||
- node_version: 20
|
||||
|
||||
9
.github/workflows/e2e-windows.yml
vendored
9
.github/workflows/e2e-windows.yml
vendored
@ -14,7 +14,7 @@ on:
|
||||
env:
|
||||
CYPRESS_CACHE_FOLDER: ${{ github.workspace }}/.cypress
|
||||
|
||||
permissions: {}
|
||||
permissions: { }
|
||||
jobs:
|
||||
preinstall:
|
||||
runs-on: windows-latest
|
||||
@ -81,6 +81,7 @@ jobs:
|
||||
project:
|
||||
- e2e-angular-core
|
||||
- e2e-angular-extensions
|
||||
- e2e-angular-module-federation
|
||||
- e2e-cypress
|
||||
- e2e-esbuild
|
||||
- e2e-jest
|
||||
@ -109,6 +110,8 @@ jobs:
|
||||
codeowners: 'S04SS457V38'
|
||||
- project: e2e-angular-extensions
|
||||
codeowners: 'S04SS457V38'
|
||||
- project: e2e-angular-module-federation
|
||||
codeowners: 'S04SS457V38'
|
||||
- project: e2e-cypress
|
||||
codeowners: 'S04T16BTJJY'
|
||||
- project: e2e-esbuild
|
||||
@ -159,6 +162,8 @@ jobs:
|
||||
project: e2e-angular-core
|
||||
- node_version: 16
|
||||
project: e2e-angular-extensions
|
||||
- node_version: 16
|
||||
project: e2e-angular-module-federation
|
||||
- node_version: 16
|
||||
project: e2e-cypress
|
||||
- node_version: 16
|
||||
@ -201,6 +206,8 @@ jobs:
|
||||
project: e2e-angular-core
|
||||
- node_version: 20
|
||||
project: e2e-angular-extensions
|
||||
- node_version: 20
|
||||
project: e2e-angular-module-federation
|
||||
- node_version: 20
|
||||
project: e2e-cypress
|
||||
- node_version: 20
|
||||
|
||||
@ -24,6 +24,7 @@ rust-toolchain @nrwl/nx-native-reviewers
|
||||
/packages/angular/** @nrwl/nx-angular-reviewers
|
||||
/e2e/angular-core/** @nrwl/nx-angular-reviewers
|
||||
/e2e/angular-extensions/** @nrwl/nx-angular-reviewers
|
||||
/e2e/angular-module-federation/** @nrwl/nx-angular-reviewers
|
||||
/packages/angular/plugins/component-testing.ts @nrwl/nx-angular-reviewers @nrwl/nx-testing-tools-reviewers
|
||||
/packages/angular/src/generators/cypress-component-configuration/** @nrwl/nx-angular-reviewers @nrwl/nx-testing-tools-reviewers
|
||||
/packages/angular/src/generators/component-test/** @nrwl/nx-angular-reviewers @nrwl/nx-testing-tools-reviewers
|
||||
|
||||
13
e2e/angular-module-federation/jest.config.ts
Normal file
13
e2e/angular-module-federation/jest.config.ts
Normal file
@ -0,0 +1,13 @@
|
||||
/* eslint-disable */
|
||||
export default {
|
||||
transform: {
|
||||
'^.+\\.[tj]sx?$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.spec.json' }],
|
||||
},
|
||||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
|
||||
maxWorkers: 1,
|
||||
globals: {},
|
||||
globalSetup: '../utils/global-setup.ts',
|
||||
globalTeardown: '../utils/global-teardown.ts',
|
||||
displayName: 'e2e-angular-module-federation',
|
||||
preset: '../../jest.preset.js',
|
||||
};
|
||||
10
e2e/angular-module-federation/project.json
Normal file
10
e2e/angular-module-federation/project.json
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"name": "e2e-angular-module-federation",
|
||||
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
||||
"sourceRoot": "e2e/angular-module-federation",
|
||||
"projectType": "application",
|
||||
"targets": {
|
||||
"e2e": {}
|
||||
},
|
||||
"implicitDependencies": ["angular"]
|
||||
}
|
||||
13
e2e/angular-module-federation/tsconfig.json
Normal file
13
e2e/angular-module-federation/tsconfig.json
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"types": ["node", "jest"]
|
||||
},
|
||||
"include": [],
|
||||
"files": [],
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.spec.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
20
e2e/angular-module-federation/tsconfig.spec.json
Normal file
20
e2e/angular-module-federation/tsconfig.spec.json
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "../../dist/out-tsc",
|
||||
"module": "commonjs",
|
||||
"types": ["jest", "node"]
|
||||
},
|
||||
"include": [
|
||||
"**/*.test.ts",
|
||||
"**/*.spec.ts",
|
||||
"**/*.spec.tsx",
|
||||
"**/*.test.tsx",
|
||||
"**/*.spec.js",
|
||||
"**/*.test.js",
|
||||
"**/*.spec.jsx",
|
||||
"**/*.test.jsx",
|
||||
"**/*.d.ts",
|
||||
"jest.config.ts"
|
||||
]
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user