Skip to content

Commit 4a55ee9

Browse files
authoredMar 27, 2023
fix(js): run prettier with default options when theres no prettierrc (#15888)
1 parent 9cdc584 commit 4a55ee9

File tree

114 files changed

+4798
-4760
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+4798
-4760
lines changed
 

‎packages/angular/src/generators/application/__snapshots__/application.spec.ts.snap

+40-28
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,25 @@ describe('AppComponent', () => {
4141
beforeEach(async () => {
4242
await TestBed.configureTestingModule({
4343
imports: [RouterTestingModule],
44-
declarations: [AppComponent]
44+
declarations: [AppComponent],
4545
}).compileComponents();
4646
});
4747
4848
it('should render title', () => {
4949
const fixture = TestBed.createComponent(AppComponent);
5050
fixture.detectChanges();
5151
const compiled = fixture.nativeElement as HTMLElement;
52-
expect(compiled.querySelector('h1')?.textContent).toContain('Welcome plain');
52+
expect(compiled.querySelector('h1')?.textContent).toContain(
53+
'Welcome plain'
54+
);
5355
});
5456
});
5557
"
5658
`;
5759
5860
exports[`app --minimal should skip "nx-welcome.component.ts" file and references for non-standalone apps with routing 4`] = `
59-
"<h1>Welcome plain</h1> <router-outlet></router-outlet>
61+
"<h1>Welcome plain</h1>
62+
<router-outlet></router-outlet>
6063
"
6164
`;
6265
@@ -67,9 +70,7 @@ import { AppComponent } from './app.component';
6770
6871
@NgModule({
6972
declarations: [AppComponent],
70-
imports: [
71-
BrowserModule,
72-
],
73+
imports: [BrowserModule],
7374
providers: [],
7475
bootstrap: [AppComponent],
7576
})
@@ -97,22 +98,24 @@ describe('AppComponent', () => {
9798
beforeEach(async () => {
9899
await TestBed.configureTestingModule({
99100
imports: [],
100-
declarations: [AppComponent]
101+
declarations: [AppComponent],
101102
}).compileComponents();
102103
});
103104
104105
it('should render title', () => {
105106
const fixture = TestBed.createComponent(AppComponent);
106107
fixture.detectChanges();
107108
const compiled = fixture.nativeElement as HTMLElement;
108-
expect(compiled.querySelector('h1')?.textContent).toContain('Welcome plain');
109+
expect(compiled.querySelector('h1')?.textContent).toContain(
110+
'Welcome plain'
111+
);
109112
});
110113
});
111114
"
112115
`;
113116
114117
exports[`app --minimal should skip "nx-welcome.component.ts" file and references for non-standalone apps without routing 4`] = `
115-
"<h1>Welcome plain</h1>
118+
"<h1>Welcome plain</h1>
116119
"
117120
`;
118121
@@ -144,17 +147,20 @@ describe('AppComponent', () => {
144147
});
145148
146149
it('should render title', () => {
147-
const fixture = TestBed.createComponent(AppComponent);
148-
fixture.detectChanges();
149-
const compiled = fixture.nativeElement as HTMLElement;
150-
expect(compiled.querySelector('h1')?.textContent).toContain('Welcome plain');
150+
const fixture = TestBed.createComponent(AppComponent);
151+
fixture.detectChanges();
152+
const compiled = fixture.nativeElement as HTMLElement;
153+
expect(compiled.querySelector('h1')?.textContent).toContain(
154+
'Welcome plain'
155+
);
151156
});
152157
});
153158
"
154159
`;
155160
156161
exports[`app --minimal should skip "nx-welcome.component.ts" file and references for standalone apps with routing 3`] = `
157-
"<h1>Welcome plain</h1> <router-outlet></router-outlet>
162+
"<h1>Welcome plain</h1>
163+
<router-outlet></router-outlet>
158164
"
159165
`;
160166
@@ -184,17 +190,19 @@ describe('AppComponent', () => {
184190
});
185191
186192
it('should render title', () => {
187-
const fixture = TestBed.createComponent(AppComponent);
188-
fixture.detectChanges();
189-
const compiled = fixture.nativeElement as HTMLElement;
190-
expect(compiled.querySelector('h1')?.textContent).toContain('Welcome plain');
193+
const fixture = TestBed.createComponent(AppComponent);
194+
fixture.detectChanges();
195+
const compiled = fixture.nativeElement as HTMLElement;
196+
expect(compiled.querySelector('h1')?.textContent).toContain(
197+
'Welcome plain'
198+
);
191199
});
192200
});
193201
"
194202
`;
195203
196204
exports[`app --minimal should skip "nx-welcome.component.ts" file and references for standalone apps without routing 3`] = `
197-
"<h1>Welcome plain</h1>
205+
"<h1>Welcome plain</h1>
198206
"
199207
`;
200208
@@ -252,10 +260,12 @@ describe('AppComponent', () => {
252260
});
253261
254262
it('should render title', () => {
255-
const fixture = TestBed.createComponent(AppComponent);
256-
fixture.detectChanges();
257-
const compiled = fixture.nativeElement as HTMLElement;
258-
expect(compiled.querySelector('h1')?.textContent).toContain('Welcome standalone');
263+
const fixture = TestBed.createComponent(AppComponent);
264+
fixture.detectChanges();
265+
const compiled = fixture.nativeElement as HTMLElement;
266+
expect(compiled.querySelector('h1')?.textContent).toContain(
267+
'Welcome standalone'
268+
);
259269
});
260270
261271
it(\`should have as title 'standalone'\`, () => {
@@ -283,7 +293,7 @@ import { NxWelcomeComponent } from './nx-welcome.component';
283293
284294
@Component({
285295
standalone: true,
286-
imports: [NxWelcomeComponent, ],
296+
imports: [NxWelcomeComponent],
287297
selector: 'proj-root',
288298
templateUrl: './app.component.html',
289299
styleUrls: ['./app.component.css'],
@@ -307,10 +317,12 @@ describe('AppComponent', () => {
307317
});
308318
309319
it('should render title', () => {
310-
const fixture = TestBed.createComponent(AppComponent);
311-
fixture.detectChanges();
312-
const compiled = fixture.nativeElement as HTMLElement;
313-
expect(compiled.querySelector('h1')?.textContent).toContain('Welcome standalone');
320+
const fixture = TestBed.createComponent(AppComponent);
321+
fixture.detectChanges();
322+
const compiled = fixture.nativeElement as HTMLElement;
323+
expect(compiled.querySelector('h1')?.textContent).toContain(
324+
'Welcome standalone'
325+
);
314326
});
315327
316328
it(\`should have as title 'standalone'\`, () => {

‎packages/angular/src/generators/component-cypress-spec/__snapshots__/component-cypress-spec.spec.ts.snap

+14-4
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,28 @@
22

33
exports[`componentCypressSpec generator should generate .spec.ts when using cypress.json 1`] = `
44
"describe('ng-app1', () => {
5-
beforeEach(() => cy.visit('/iframe.html?id=testbuttoncomponent--primary&args=buttonType:button;style:default;age;isOn:false;'));
5+
beforeEach(() =>
6+
cy.visit(
7+
'/iframe.html?id=testbuttoncomponent--primary&args=buttonType:button;style:default;age;isOn:false;'
8+
)
9+
);
610
it('should render the component', () => {
711
cy.get('proj-test-button').should('exist');
812
});
9-
});"
13+
});
14+
"
1015
`;
1116

1217
exports[`componentCypressSpec generator should generate the component spec file 1`] = `
1318
"describe('ng-app1', () => {
14-
beforeEach(() => cy.visit('/iframe.html?id=testbuttoncomponent--primary&args=buttonType:button;style:default;age;isOn:false;'));
19+
beforeEach(() =>
20+
cy.visit(
21+
'/iframe.html?id=testbuttoncomponent--primary&args=buttonType:button;style:default;age;isOn:false;'
22+
)
23+
);
1524
it('should render the component', () => {
1625
cy.get('proj-test-button').should('exist');
1726
});
18-
});"
27+
});
28+
"
1929
`;

1 commit comments

Comments
 (1)

vercel[bot] commented on Mar 27, 2023

@vercel[bot]

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-git-master-nrwl.vercel.app
nx-dev-nrwl.vercel.app
nx-five.vercel.app
nx.dev

Please sign in to comment.