Skip to content

Commit

Permalink
fix eol=lf for snapshot of test
Browse files Browse the repository at this point in the history
  • Loading branch information
cenfun committed Jun 13, 2024
1 parent ffa7017 commit 5dbff72
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 19 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1070,6 +1070,11 @@ npm run test
npm run dev
```
- Refreshing `eol=lf` for snapshot of test (Windows)
```sh
git rm -rf --cached .
git reset --hard HEAD
```
### VSCode Extension
- [Coverage Gutters](https://github.com/ryanluker/vscode-coverage-gutters) - Display test coverage generated by lcov or xml in VSCode editor.
Expand Down
5 changes: 5 additions & 0 deletions README.zh-Hans.md
Original file line number Diff line number Diff line change
Expand Up @@ -1074,6 +1074,11 @@ npm run test
npm run dev
```
- Refreshing `eol=lf` for snapshot of test (Windows)
```sh
git rm -rf --cached .
git reset --hard HEAD
```

### VSCode Extension
- [Coverage Gutters](https://github.com/ryanluker/vscode-coverage-gutters) - Display test coverage generated by lcov or xml in VSCode editor.
Expand Down
2 changes: 1 addition & 1 deletion test/snapshot/cli.snapshot.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "v8",
"summary": {
"bytes": "54.82 %",
"bytes": "54.91 %",
"statements": "59.92 %",
"branches": "52.69 %",
"functions": "55.70 %",
Expand Down
16 changes: 8 additions & 8 deletions test/snapshot/client.snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,36 +8,36 @@
"lines": "40.00 %"
},
"files": {
"src/playwright.js": {
"src/puppeteer.js": {
"functions": "0.00 %",
"branches": "",
"statements": "66.67 %",
"lines": "25.00 %",
"bytes": "68.55 %",
"bytes": "68.03 %",
"uncoveredLines": "3-5"
},
"src/playwright.css": {
"src/puppeteer.css": {
"functions": "",
"branches": "",
"statements": "",
"lines": "45.45 %",
"bytes": "63.68 %",
"bytes": "63.30 %",
"uncoveredLines": "4-9"
},
"src/puppeteer.js": {
"src/playwright.js": {
"functions": "0.00 %",
"branches": "",
"statements": "66.67 %",
"lines": "25.00 %",
"bytes": "68.03 %",
"bytes": "68.55 %",
"uncoveredLines": "3-5"
},
"src/puppeteer.css": {
"src/playwright.css": {
"functions": "",
"branches": "",
"statements": "",
"lines": "45.45 %",
"bytes": "63.30 %",
"bytes": "63.68 %",
"uncoveredLines": "4-9"
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/snapshot/esbuild.snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
"branches": "50.00 %",
"statements": "83.33 %",
"lines": "75.00 %",
"bytes": "77.98 %",
"bytes": "77.83 %",
"uncoveredLines": "9,11-13,25-27"
},
"src/index.js": {
Expand Down
4 changes: 2 additions & 2 deletions test/snapshot/merge.snapshot.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "v8",
"summary": {
"bytes": "73.79 %",
"bytes": "73.78 %",
"statements": "77.38 %",
"branches": "59.59 %",
"functions": "70.97 %",
Expand Down Expand Up @@ -53,7 +53,7 @@
"branches": "50.00 %",
"statements": "75.00 %",
"lines": "75.00 %",
"bytes": "77.98 %",
"bytes": "77.83 %",
"uncoveredLines": "9,11-13,25-27"
},
"test/mock/src/typescript.ts": {
Expand Down
4 changes: 2 additions & 2 deletions test/snapshot/puppeteer.snapshot.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "v8",
"summary": {
"bytes": "74.00 %",
"bytes": "73.99 %",
"statements": "82.00 %",
"branches": "59.76 %",
"functions": "78.26 %",
Expand Down Expand Up @@ -53,7 +53,7 @@
"branches": "50.00 %",
"statements": "75.00 %",
"lines": "75.00 %",
"bytes": "77.98 %",
"bytes": "77.83 %",
"uncoveredLines": "9,11-13,25-27"
},
"test/mock/src/typescript.ts": {
Expand Down
4 changes: 2 additions & 2 deletions test/snapshot/rollup.snapshot.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "v8",
"summary": {
"bytes": "81.00 %",
"bytes": "80.99 %",
"statements": "82.04 %",
"branches": "59.43 %",
"functions": "79.10 %",
Expand Down Expand Up @@ -133,7 +133,7 @@
"branches": "50.00 %",
"statements": "75.00 %",
"lines": "75.00 %",
"bytes": "77.98 %",
"bytes": "77.83 %",
"uncoveredLines": "9,11-13,25-27"
},
"src/index.js": {
Expand Down
2 changes: 1 addition & 1 deletion test/snapshot/swc.snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
"branches": "50.00 %",
"statements": "81.25 %",
"lines": "75.00 %",
"bytes": "77.98 %",
"bytes": "77.83 %",
"uncoveredLines": "9,11-13,25-27"
},
"src/typescript.ts": {
Expand Down
4 changes: 2 additions & 2 deletions test/snapshot/v8.snapshot.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "v8",
"summary": {
"bytes": "74.00 %",
"bytes": "73.99 %",
"statements": "82.00 %",
"branches": "59.76 %",
"functions": "78.26 %",
Expand Down Expand Up @@ -53,7 +53,7 @@
"branches": "50.00 %",
"statements": "75.00 %",
"lines": "75.00 %",
"bytes": "77.98 %",
"bytes": "77.83 %",
"uncoveredLines": "9,11-13,25-27"
},
"test/mock/src/typescript.ts": {
Expand Down

0 comments on commit 5dbff72

Please sign in to comment.