Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions apps/app0/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,22 @@
"plugin:@nrwl/nx/angular",
"plugin:@angular-eslint/template/process-inline-templates"
],
"parserOptions": { "project": ["apps/app0/tsconfig.*?.json"] },
"rules": {
"@angular-eslint/directive-selector": [
"error",
{ "type": "attribute", "prefix": "largerepo", "style": "camelCase" }
{
"type": "attribute",
"prefix": "largerepo",
"style": "camelCase"
}
],
"@angular-eslint/component-selector": [
"error",
{ "type": "element", "prefix": "largerepo", "style": "kebab-case" }
{
"type": "element",
"prefix": "largerepo",
"style": "kebab-case"
}
]
}
},
Expand Down
9 changes: 5 additions & 4 deletions apps/app0/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
module.exports = {
preset: '../../jest.preset.js',
coverageDirectory: '../../coverage/apps/app0',

displayName: 'app0',
snapshotSerializers: [
'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js',
'jest-preset-angular/build/AngularSnapshotSerializer.js',
'jest-preset-angular/build/HTMLCommentSerializer.js',
'jest-preset-angular/build/serializers/no-ng-attributes',
'jest-preset-angular/build/serializers/ng-snapshot',
'jest-preset-angular/build/serializers/html-comment',
],
displayName: 'app0',
};
18 changes: 13 additions & 5 deletions apps/app0/src/app/app.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
import { TestBed, waitForAsync } from '@angular/core/testing';
import { AppComponent } from './app.component';
import { Lib0Module } from '@largerepo/app0/lib0/lib0';
import { Lib1Module } from '@largerepo/app0/lib1/lib1';
import { Lib2Module } from '@largerepo/app0/lib2/lib2';
import { Lib3Module } from '@largerepo/app0/lib3/lib3';
import { Lib4Module } from '@largerepo/app0/lib4/lib4';

describe('AppComponent', () => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [AppComponent]
}).compileComponents();
}));
beforeEach(
waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [AppComponent],
imports: [Lib0Module, Lib1Module, Lib2Module, Lib3Module, Lib4Module],
}).compileComponents();
})
);

it('should create the app', () => {
const fixture = TestBed.createComponent(AppComponent);
Expand Down
2 changes: 1 addition & 1 deletion apps/app0/src/test-setup.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import 'jest-preset-angular';
import 'jest-preset-angular/setup-jest';
8 changes: 3 additions & 5 deletions apps/app0/tsconfig.app.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"types": []
},
"files": ["src/main.ts", "src/polyfills.ts"]
"compilerOptions": { "outDir": "../../dist/out-tsc", "types": [] },
"files": ["src/main.ts", "src/polyfills.ts"],
"exclude": ["**/*.spec.ts", "**/*.test.ts"]
}
2 changes: 1 addition & 1 deletion apps/app0/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"types": ["jest", "node"]
},
"files": ["src/test-setup.ts"],
"include": ["**/*.spec.ts", "**/*.d.ts"]
"include": ["**/*.spec.ts", "**/*.test.ts", "**/*.d.ts"]
}
13 changes: 10 additions & 3 deletions apps/app1/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,22 @@
"plugin:@nrwl/nx/angular",
"plugin:@angular-eslint/template/process-inline-templates"
],
"parserOptions": { "project": ["apps/app1/tsconfig.*?.json"] },
"rules": {
"@angular-eslint/directive-selector": [
"error",
{ "type": "attribute", "prefix": "largerepo", "style": "camelCase" }
{
"type": "attribute",
"prefix": "largerepo",
"style": "camelCase"
}
],
"@angular-eslint/component-selector": [
"error",
{ "type": "element", "prefix": "largerepo", "style": "kebab-case" }
{
"type": "element",
"prefix": "largerepo",
"style": "kebab-case"
}
]
}
},
Expand Down
9 changes: 5 additions & 4 deletions apps/app1/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
module.exports = {
preset: '../../jest.preset.js',
coverageDirectory: '../../coverage/apps/app0',

displayName: 'app1',
snapshotSerializers: [
'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js',
'jest-preset-angular/build/AngularSnapshotSerializer.js',
'jest-preset-angular/build/HTMLCommentSerializer.js',
'jest-preset-angular/build/serializers/no-ng-attributes',
'jest-preset-angular/build/serializers/ng-snapshot',
'jest-preset-angular/build/serializers/html-comment',
],
displayName: 'app1',
};
18 changes: 13 additions & 5 deletions apps/app1/src/app/app.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
import { TestBed, waitForAsync } from '@angular/core/testing';
import { AppComponent } from './app.component';
import { Lib0Module } from '@largerepo/app0/lib0/lib0';
import { Lib1Module } from '@largerepo/app0/lib1/lib1';
import { Lib2Module } from '@largerepo/app0/lib2/lib2';
import { Lib3Module } from '@largerepo/app0/lib3/lib3';
import { Lib4Module } from '@largerepo/app0/lib4/lib4';

describe('AppComponent', () => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [AppComponent]
}).compileComponents();
}));
beforeEach(
waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [AppComponent],
imports: [Lib0Module, Lib1Module, Lib2Module, Lib3Module, Lib4Module],
}).compileComponents();
})
);

it('should create the app', () => {
const fixture = TestBed.createComponent(AppComponent);
Expand Down
2 changes: 1 addition & 1 deletion apps/app1/src/test-setup.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import 'jest-preset-angular';
import 'jest-preset-angular/setup-jest';
8 changes: 3 additions & 5 deletions apps/app1/tsconfig.app.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"types": []
},
"files": ["src/main.ts", "src/polyfills.ts"]
"compilerOptions": { "outDir": "../../dist/out-tsc", "types": [] },
"files": ["src/main.ts", "src/polyfills.ts"],
"exclude": ["**/*.spec.ts", "**/*.test.ts"]
}
2 changes: 1 addition & 1 deletion apps/app1/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"types": ["jest", "node"]
},
"files": ["src/test-setup.ts"],
"include": ["**/*.spec.ts", "**/*.d.ts"]
"include": ["**/*.spec.ts", "**/*.test.ts", "**/*.d.ts"]
}
64 changes: 3 additions & 61 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,61 +1,3 @@
module.exports = {
projects: [
'<rootDir>/apps/app0',
'<rootDir>/apps/app1',
'<rootDir>/libs/app0/lib0/lib0',
'<rootDir>/libs/app0/lib0/childlib0',
'<rootDir>/libs/app0/lib0/childlib1',
'<rootDir>/libs/app0/lib0/childlib2',
'<rootDir>/libs/app0/lib0/childlib3',
'<rootDir>/libs/app0/lib0/childlib4',
'<rootDir>/libs/app0/lib0/childlib5',
'<rootDir>/libs/app0/lib0/childlib6',
'<rootDir>/libs/app0/lib0/childlib7',
'<rootDir>/libs/app0/lib0/childlib8',
'<rootDir>/libs/app0/lib0/childlib9',
'<rootDir>/libs/app0/lib1/lib1',
'<rootDir>/libs/app0/lib1/childlib0',
'<rootDir>/libs/app0/lib1/childlib1',
'<rootDir>/libs/app0/lib1/childlib2',
'<rootDir>/libs/app0/lib1/childlib3',
'<rootDir>/libs/app0/lib1/childlib4',
'<rootDir>/libs/app0/lib1/childlib5',
'<rootDir>/libs/app0/lib1/childlib6',
'<rootDir>/libs/app0/lib1/childlib7',
'<rootDir>/libs/app0/lib1/childlib8',
'<rootDir>/libs/app0/lib1/childlib9',
'<rootDir>/libs/app0/lib2/lib2',
'<rootDir>/libs/app0/lib2/childlib0',
'<rootDir>/libs/app0/lib2/childlib1',
'<rootDir>/libs/app0/lib2/childlib2',
'<rootDir>/libs/app0/lib2/childlib3',
'<rootDir>/libs/app0/lib2/childlib4',
'<rootDir>/libs/app0/lib2/childlib5',
'<rootDir>/libs/app0/lib2/childlib6',
'<rootDir>/libs/app0/lib2/childlib7',
'<rootDir>/libs/app0/lib2/childlib8',
'<rootDir>/libs/app0/lib2/childlib9',
'<rootDir>/libs/app0/lib3/lib3',
'<rootDir>/libs/app0/lib3/childlib0',
'<rootDir>/libs/app0/lib3/childlib1',
'<rootDir>/libs/app0/lib3/childlib2',
'<rootDir>/libs/app0/lib3/childlib3',
'<rootDir>/libs/app0/lib3/childlib4',
'<rootDir>/libs/app0/lib3/childlib5',
'<rootDir>/libs/app0/lib3/childlib6',
'<rootDir>/libs/app0/lib3/childlib7',
'<rootDir>/libs/app0/lib3/childlib8',
'<rootDir>/libs/app0/lib3/childlib9',
'<rootDir>/libs/app0/lib4/lib4',
'<rootDir>/libs/app0/lib4/childlib0',
'<rootDir>/libs/app0/lib4/childlib1',
'<rootDir>/libs/app0/lib4/childlib2',
'<rootDir>/libs/app0/lib4/childlib3',
'<rootDir>/libs/app0/lib4/childlib4',
'<rootDir>/libs/app0/lib4/childlib5',
'<rootDir>/libs/app0/lib4/childlib6',
'<rootDir>/libs/app0/lib4/childlib7',
'<rootDir>/libs/app0/lib4/childlib8',
'<rootDir>/libs/app0/lib4/childlib9',
],
};
const { getJestProjects } = require('@nrwl/jest');

module.exports = { projects: getJestProjects() };
15 changes: 10 additions & 5 deletions libs/app0/lib0/childlib0/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,22 @@
"plugin:@nrwl/nx/angular",
"plugin:@angular-eslint/template/process-inline-templates"
],
"parserOptions": {
"project": ["libs/app0/lib0/childlib0/tsconfig.*?.json"]
},
"rules": {
"@angular-eslint/directive-selector": [
"error",
{ "type": "attribute", "prefix": "largerepo", "style": "camelCase" }
{
"type": "attribute",
"prefix": "largerepo",
"style": "camelCase"
}
],
"@angular-eslint/component-selector": [
"error",
{ "type": "element", "prefix": "largerepo", "style": "kebab-case" }
{
"type": "element",
"prefix": "largerepo",
"style": "kebab-case"
}
]
}
},
Expand Down
9 changes: 5 additions & 4 deletions libs/app0/lib0/childlib0/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
module.exports = {
preset: '../../../../jest.preset.js',
coverageDirectory: '../../../../coverage/libs/app0/lib0/childlib0',

displayName: 'app0-lib0-childlib0',
snapshotSerializers: [
'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js',
'jest-preset-angular/build/AngularSnapshotSerializer.js',
'jest-preset-angular/build/HTMLCommentSerializer.js',
'jest-preset-angular/build/serializers/no-ng-attributes',
'jest-preset-angular/build/serializers/ng-snapshot',
'jest-preset-angular/build/serializers/html-comment',
],
displayName: 'app0-lib0-childlib0',
};
2 changes: 1 addition & 1 deletion libs/app0/lib0/childlib0/src/test-setup.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import 'jest-preset-angular';
import 'jest-preset-angular/setup-jest';
2 changes: 1 addition & 1 deletion libs/app0/lib0/childlib0/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"strictMetadataEmit": true,
"enableResourceInlining": true
},
"exclude": ["src/test-setup.ts", "**/*.spec.ts"],
"exclude": ["src/test-setup.ts", "**/*.spec.ts", "**/*.test.ts"],
"include": ["**/*.ts"]
}
2 changes: 1 addition & 1 deletion libs/app0/lib0/childlib0/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"types": ["jest", "node"]
},
"files": ["src/test-setup.ts"],
"include": ["**/*.spec.ts", "**/*.d.ts"]
"include": ["**/*.spec.ts", "**/*.test.ts", "**/*.d.ts"]
}
15 changes: 10 additions & 5 deletions libs/app0/lib0/childlib1/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,22 @@
"plugin:@nrwl/nx/angular",
"plugin:@angular-eslint/template/process-inline-templates"
],
"parserOptions": {
"project": ["libs/app0/lib0/childlib1/tsconfig.*?.json"]
},
"rules": {
"@angular-eslint/directive-selector": [
"error",
{ "type": "attribute", "prefix": "largerepo", "style": "camelCase" }
{
"type": "attribute",
"prefix": "largerepo",
"style": "camelCase"
}
],
"@angular-eslint/component-selector": [
"error",
{ "type": "element", "prefix": "largerepo", "style": "kebab-case" }
{
"type": "element",
"prefix": "largerepo",
"style": "kebab-case"
}
]
}
},
Expand Down
9 changes: 5 additions & 4 deletions libs/app0/lib0/childlib1/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
module.exports = {
preset: '../../../../jest.preset.js',
coverageDirectory: '../../../../coverage/libs/app0/lib0/childlib1',

displayName: 'app0-lib0-childlib1',
snapshotSerializers: [
'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js',
'jest-preset-angular/build/AngularSnapshotSerializer.js',
'jest-preset-angular/build/HTMLCommentSerializer.js',
'jest-preset-angular/build/serializers/no-ng-attributes',
'jest-preset-angular/build/serializers/ng-snapshot',
'jest-preset-angular/build/serializers/html-comment',
],
displayName: 'app0-lib0-childlib1',
};
2 changes: 1 addition & 1 deletion libs/app0/lib0/childlib1/src/test-setup.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import 'jest-preset-angular';
import 'jest-preset-angular/setup-jest';
2 changes: 1 addition & 1 deletion libs/app0/lib0/childlib1/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"strictMetadataEmit": true,
"enableResourceInlining": true
},
"exclude": ["src/test-setup.ts", "**/*.spec.ts"],
"exclude": ["src/test-setup.ts", "**/*.spec.ts", "**/*.test.ts"],
"include": ["**/*.ts"]
}
2 changes: 1 addition & 1 deletion libs/app0/lib0/childlib1/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"types": ["jest", "node"]
},
"files": ["src/test-setup.ts"],
"include": ["**/*.spec.ts", "**/*.d.ts"]
"include": ["**/*.spec.ts", "**/*.test.ts", "**/*.d.ts"]
}
15 changes: 10 additions & 5 deletions libs/app0/lib0/childlib2/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,22 @@
"plugin:@nrwl/nx/angular",
"plugin:@angular-eslint/template/process-inline-templates"
],
"parserOptions": {
"project": ["libs/app0/lib0/childlib2/tsconfig.*?.json"]
},
"rules": {
"@angular-eslint/directive-selector": [
"error",
{ "type": "attribute", "prefix": "largerepo", "style": "camelCase" }
{
"type": "attribute",
"prefix": "largerepo",
"style": "camelCase"
}
],
"@angular-eslint/component-selector": [
"error",
{ "type": "element", "prefix": "largerepo", "style": "kebab-case" }
{
"type": "element",
"prefix": "largerepo",
"style": "kebab-case"
}
]
}
},
Expand Down
Loading