Skip to content

Commit 8b07791

Browse files
authored
fix: remove top header line from deploy sections (#4770)
* fix: remove top header line * fix: update testing instructions
1 parent bda022c commit 8b07791

File tree

46 files changed

+10
-1492
lines changed

Some content is hidden

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

46 files changed

+10
-1492
lines changed

packages/build/src/log/header.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ export const getHeader = function (message: string) {
1010
const line = '─'.repeat(headerWidth + PADDING_WIDTH * 2)
1111
const paddingLeft = ' '.repeat(PADDING_WIDTH)
1212
const paddingRight = ' '.repeat(PADDING_WIDTH + headerWidth - messageWidth)
13-
return `${line}
14-
${paddingLeft}${message}${paddingRight}
13+
return `${paddingLeft}${message}${paddingRight}
1514
${line}`
1615
}

packages/build/tests/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,15 @@ const output = await netlifyBuild({ repositoryRoot: './fixtures/fixture_name' })
8181

8282
## Running tests
8383

84+
Prerequisites:
85+
86+
```
87+
npx lerna run build
88+
```
89+
90+
To successfully run or update the snapshot tests, you need to
91+
[install deno](https://deno.land/[email protected]/getting_started/installation)
92+
8493
To run all tests:
8594

8695
```

packages/build/tests/constants/snapshots/tests.js.md

Lines changed: 0 additions & 90 deletions
Large diffs are not rendered by default.
-265 Bytes
Binary file not shown.

packages/build/tests/core/snapshots/tests.js.md

Lines changed: 0 additions & 106 deletions
Large diffs are not rendered by default.
-357 Bytes
Binary file not shown.

packages/build/tests/deploy/snapshots/tests.js.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ Generated by [AVA](https://avajs.dev).
99
> Snapshot 1
1010
1111
`␊
12-
────────────────────────────────────────────────────────────────␊
1312
Netlify Build ␊
1413
────────────────────────────────────────────────────────────────␊
1514
@@ -38,7 +37,6 @@ Generated by [AVA](https://avajs.dev).
3837
> Context␊
3938
production␊
4039
41-
────────────────────────────────────────────────────────────────␊
4240
1. Deploy site ␊
4341
────────────────────────────────────────────────────────────────␊
4442
@@ -47,7 +45,6 @@ Generated by [AVA](https://avajs.dev).
4745
(Deploy site completed in 1ms)␊
4846
Build step duration: Deploy site completed in 1ms␊
4947
50-
────────────────────────────────────────────────────────────────␊
5148
Netlify Build Complete ␊
5249
────────────────────────────────────────────────────────────────␊
5350
@@ -59,7 +56,6 @@ Generated by [AVA](https://avajs.dev).
5956
> Snapshot 1
6057
6158
`␊
62-
────────────────────────────────────────────────────────────────␊
6359
Netlify Build ␊
6460
────────────────────────────────────────────────────────────────␊
6561
@@ -88,12 +84,10 @@ Generated by [AVA](https://avajs.dev).
8884
> Context␊
8985
production␊
9086
91-
────────────────────────────────────────────────────────────────␊
9287
1. Deploy site ␊
9388
────────────────────────────────────────────────────────────────␊
9489
9590
96-
────────────────────────────────────────────────────────────────␊
9791
Internal error during "Deploy site" ␊
9892
────────────────────────────────────────────────────────────────␊
9993
@@ -114,7 +108,6 @@ Generated by [AVA](https://avajs.dev).
114108
> Snapshot 1
115109
116110
`␊
117-
────────────────────────────────────────────────────────────────␊
118111
Netlify Build ␊
119112
────────────────────────────────────────────────────────────────␊
120113
@@ -143,12 +136,10 @@ Generated by [AVA](https://avajs.dev).
143136
> Context␊
144137
production␊
145138
146-
────────────────────────────────────────────────────────────────␊
147139
1. Deploy site ␊
148140
────────────────────────────────────────────────────────────────␊
149141
150142
151-
────────────────────────────────────────────────────────────────␊
152143
Internal error during "Deploy site" ␊
153144
────────────────────────────────────────────────────────────────␊
154145
@@ -169,7 +160,6 @@ Generated by [AVA](https://avajs.dev).
169160
> Snapshot 1
170161
171162
`␊
172-
────────────────────────────────────────────────────────────────␊
173163
Netlify Build ␊
174164
────────────────────────────────────────────────────────────────␊
175165
@@ -198,12 +188,10 @@ Generated by [AVA](https://avajs.dev).
198188
> Context␊
199189
production␊
200190
201-
────────────────────────────────────────────────────────────────␊
202191
1. Deploy site ␊
203192
────────────────────────────────────────────────────────────────␊
204193
205194
206-
────────────────────────────────────────────────────────────────␊
207195
Configuration error ␊
208196
────────────────────────────────────────────────────────────────␊
209197
-34 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)