Skip to content

Commit 43ced8b

Browse files
committed
package.json updated for publishing the package
1 parent 5197631 commit 43ced8b

9 files changed

+427
-401
lines changed

.npmignore

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
src
2-
__tests_
3-
junk
2+
__tests__
3+
node_modules
4+
junk
5+
jest.config.jest
6+
.prettierrc.json
7+
.vscode
8+
.gitignore

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
![f1](https://logodownload.org/wp-content/uploads/2016/11/formula-1-logo-7.png)
33

44

5-
The scraper scrapes this given https://www.formula1.com/
5+
The scraper scrapes this website: https://www.formula1.com
66

77
## Installation
88
```bash

__tests__/__snapshots__/constructors-standings.test.ts.snap

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,27 @@
33
exports[`constrcutor standings 1`] = `
44
[
55
{
6-
"points": 619,
6+
"points": 656,
77
"position": 1,
88
"team": "Red Bull Racing RBPT",
99
},
1010
{
11-
"points": 454,
11+
"points": 469,
1212
"position": 2,
1313
"team": "Ferrari",
1414
},
1515
{
16-
"points": 387,
16+
"points": 416,
1717
"position": 3,
1818
"team": "Mercedes",
1919
},
2020
{
21-
"points": 143,
21+
"points": 144,
2222
"position": 4,
2323
"team": "Alpine Renault",
2424
},
2525
{
26-
"points": 130,
26+
"points": 138,
2727
"position": 5,
2828
"team": "McLaren Mercedes",
2929
},
@@ -33,17 +33,17 @@ exports[`constrcutor standings 1`] = `
3333
"team": "Alfa Romeo Ferrari",
3434
},
3535
{
36-
"points": 45,
36+
"points": 51,
3737
"position": 7,
3838
"team": "Aston Martin Aramco Mercedes",
3939
},
4040
{
41-
"points": 34,
41+
"points": 38,
4242
"position": 8,
4343
"team": "Haas Ferrari",
4444
},
4545
{
46-
"points": 34,
46+
"points": 36,
4747
"position": 9,
4848
"team": "AlphaTauri RBPT",
4949
},

__tests__/__snapshots__/driver-lineup.test.ts.snap

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,31 @@ exports[`current driver lineup 1`] = `
66
"driverImage": "https://www.formula1.com/content/dam/fom-website/drivers/M/MAXVER01_Max_Verstappen/maxver01.png.transform/2col/image.png",
77
"name": "Max Verstappen",
88
"nationalityImage": "https://www.formula1.com/content/dam/fom-website/flags/Netherlands.jpg.transform/2col/image.jpg",
9-
"points": 366,
9+
"points": 391,
1010
"rank": 1,
1111
"team": "Red Bull Racing",
1212
},
13-
{
14-
"driverImage": "https://www.formula1.com/content/dam/fom-website/drivers/S/SERPER01_Sergio_Perez/serper01.png.transform/2col/image.png",
15-
"name": "Sergio Perez",
16-
"nationalityImage": "https://www.formula1.com/content/dam/fom-website/flags/Mexico.jpg.transform/2col/image.jpg",
17-
"points": 253,
18-
"rank": 2,
19-
"team": "Red Bull Racing",
20-
},
2113
{
2214
"driverImage": "https://www.formula1.com/content/dam/fom-website/drivers/C/CHALEC01_Charles_Leclerc/chalec01.png.transform/2col/image.png",
2315
"name": "Charles Leclerc",
2416
"nationalityImage": "https://www.formula1.com/content/dam/fom-website/flags/Monaco.jpg.transform/2col/image.jpg",
25-
"points": 252,
26-
"rank": 3,
17+
"points": 267,
18+
"rank": 2,
2719
"team": "Ferrari",
2820
},
21+
{
22+
"driverImage": "https://www.formula1.com/content/dam/fom-website/drivers/S/SERPER01_Sergio_Perez/serper01.png.transform/2col/image.png",
23+
"name": "Sergio Perez",
24+
"nationalityImage": "https://www.formula1.com/content/dam/fom-website/flags/Mexico.jpg.transform/2col/image.jpg",
25+
"points": 265,
26+
"rank": 3,
27+
"team": "Red Bull Racing",
28+
},
2929
{
3030
"driverImage": "https://www.formula1.com/content/dam/fom-website/drivers/G/GEORUS01_George_Russell/georus01.png.transform/2col/image.png",
3131
"name": "George Russell",
3232
"nationalityImage": "https://www.formula1.com/content/dam/fom-website/flags/United%20Kingdom.jpg.transform/2col/image.jpg",
33-
"points": 207,
33+
"points": 218,
3434
"rank": 4,
3535
"team": "Mercedes",
3636
},
@@ -46,23 +46,23 @@ exports[`current driver lineup 1`] = `
4646
"driverImage": "https://www.formula1.com/content/dam/fom-website/drivers/L/LEWHAM01_Lewis_Hamilton/lewham01.png.transform/2col/image.png",
4747
"name": "Lewis Hamilton",
4848
"nationalityImage": "https://www.formula1.com/content/dam/fom-website/flags/United%20Kingdom.jpg.transform/2col/image.jpg",
49-
"points": 180,
49+
"points": 198,
5050
"rank": 6,
5151
"team": "Mercedes",
5252
},
5353
{
5454
"driverImage": "https://www.formula1.com/content/dam/fom-website/drivers/L/LANNOR01_Lando_Norris/lannor01.png.transform/2col/image.png",
5555
"name": "Lando Norris",
5656
"nationalityImage": "https://www.formula1.com/content/dam/fom-website/flags/United%20Kingdom.jpg.transform/2col/image.jpg",
57-
"points": 101,
57+
"points": 109,
5858
"rank": 7,
5959
"team": "McLaren",
6060
},
6161
{
6262
"driverImage": "https://www.formula1.com/content/dam/fom-website/drivers/E/ESTOCO01_Esteban_Ocon/estoco01.png.transform/2col/image.png",
6363
"name": "Esteban Ocon",
6464
"nationalityImage": "https://www.formula1.com/content/dam/fom-website/flags/France.jpg.transform/2col/image.jpg",
65-
"points": 78,
65+
"points": 79,
6666
"rank": 8,
6767
"team": "Alpine",
6868
},
@@ -86,7 +86,7 @@ exports[`current driver lineup 1`] = `
8686
"driverImage": "https://www.formula1.com/content/dam/fom-website/drivers/S/SEBVET01_Sebastian_Vettel/sebvet01.png.transform/2col/image.png",
8787
"name": "Sebastian Vettel",
8888
"nationalityImage": "https://www.formula1.com/content/dam/fom-website/flags/Germany.jpg.transform/2col/image.jpg",
89-
"points": 32,
89+
"points": 38,
9090
"rank": 11,
9191
"team": "Aston Martin",
9292
},
@@ -98,21 +98,21 @@ exports[`current driver lineup 1`] = `
9898
"rank": 12,
9999
"team": "McLaren",
100100
},
101+
{
102+
"driverImage": "https://www.formula1.com/content/dam/fom-website/drivers/K/KEVMAG01_Kevin_Magnussen/kevmag01.png.transform/2col/image.png",
103+
"name": "Kevin Magnussen",
104+
"nationalityImage": "https://www.formula1.com/content/dam/fom-website/flags/Denmark.jpg.transform/2col/image.jpg",
105+
"points": 26,
106+
"rank": 13,
107+
"team": "Haas F1 Team",
108+
},
101109
{
102110
"driverImage": "https://www.formula1.com/content/dam/fom-website/drivers/P/PIEGAS01_Pierre_Gasly/piegas01.png.transform/2col/image.png",
103111
"name": "Pierre Gasly",
104112
"nationalityImage": "https://www.formula1.com/content/dam/fom-website/flags/France.jpg.transform/2col/image.jpg",
105113
"points": 23,
106-
"rank": 13,
107-
"team": "AlphaTauri",
108-
},
109-
{
110-
"driverImage": "https://www.formula1.com/content/dam/fom-website/drivers/K/KEVMAG01_Kevin_Magnussen/kevmag01.png.transform/2col/image.png",
111-
"name": "Kevin Magnussen",
112-
"nationalityImage": "https://www.formula1.com/content/dam/fom-website/flags/Denmark.jpg.transform/2col/image.jpg",
113-
"points": 22,
114114
"rank": 14,
115-
"team": "Haas F1 Team",
115+
"team": "AlphaTauri",
116116
},
117117
{
118118
"driverImage": "https://www.formula1.com/content/dam/fom-website/drivers/L/LANSTR01_Lance_Stroll/lanstr01.png.transform/2col/image.png",
@@ -122,21 +122,21 @@ exports[`current driver lineup 1`] = `
122122
"rank": 15,
123123
"team": "Aston Martin",
124124
},
125+
{
126+
"driverImage": "https://www.formula1.com/content/dam/fom-website/drivers/Y/YUKTSU01_Yuki_Tsunoda/yuktsu01.png.transform/2col/image.png",
127+
"name": "Yuki Tsunoda",
128+
"nationalityImage": "https://www.formula1.com/content/dam/fom-website/flags/Japan.jpg.transform/2col/image.jpg",
129+
"points": 13,
130+
"rank": 16,
131+
"team": "AlphaTauri",
132+
},
125133
{
126134
"driverImage": "https://www.formula1.com/content/dam/fom-website/drivers/M/MICSCH02_Mick_Schumacher/micsch02.png.transform/2col/image.png",
127135
"name": "Mick Schumacher",
128136
"nationalityImage": "https://www.formula1.com/content/dam/fom-website/flags/Germany.jpg.transform/2col/image.jpg",
129137
"points": 12,
130-
"rank": 16,
131-
"team": "Haas F1 Team",
132-
},
133-
{
134-
"driverImage": "https://www.formula1.com/content/dam/fom-website/drivers/Y/YUKTSU01_Yuki_Tsunoda/yuktsu01.png.transform/2col/image.png",
135-
"name": "Yuki Tsunoda",
136-
"nationalityImage": "https://www.formula1.com/content/dam/fom-website/flags/Japan.jpg.transform/2col/image.jpg",
137-
"points": 11,
138138
"rank": 17,
139-
"team": "AlphaTauri",
139+
"team": "Haas F1 Team",
140140
},
141141
{
142142
"driverImage": "https://www.formula1.com/content/dam/fom-website/drivers/G/GUAZHO01_Guanyu_Zhou/guazho01.png.transform/2col/image.png",

__tests__/__snapshots__/driver-standings.test.ts.snap

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,28 @@ exports[`driver standings 1`] = `
55
{
66
"driver": "Max Verstappen",
77
"nationality": "NED",
8-
"points": 366,
8+
"points": 391,
99
"position": 1,
1010
"team": "Red Bull Racing RBPT",
1111
},
1212
{
13-
"driver": "Sergio Perez",
14-
"nationality": "MEX",
15-
"points": 253,
13+
"driver": "Charles Leclerc",
14+
"nationality": "MON",
15+
"points": 267,
1616
"position": 2,
17-
"team": "Red Bull Racing RBPT",
17+
"team": "Ferrari",
1818
},
1919
{
20-
"driver": "Charles Leclerc",
21-
"nationality": "MON",
22-
"points": 252,
20+
"driver": "Sergio Perez",
21+
"nationality": "MEX",
22+
"points": 265,
2323
"position": 3,
24-
"team": "Ferrari",
24+
"team": "Red Bull Racing RBPT",
2525
},
2626
{
2727
"driver": "George Russell",
2828
"nationality": "GBR",
29-
"points": 207,
29+
"points": 218,
3030
"position": 4,
3131
"team": "Mercedes",
3232
},
@@ -40,21 +40,21 @@ exports[`driver standings 1`] = `
4040
{
4141
"driver": "Lewis Hamilton",
4242
"nationality": "GBR",
43-
"points": 180,
43+
"points": 198,
4444
"position": 6,
4545
"team": "Mercedes",
4646
},
4747
{
4848
"driver": "Lando Norris",
4949
"nationality": "GBR",
50-
"points": 101,
50+
"points": 109,
5151
"position": 7,
5252
"team": "McLaren Mercedes",
5353
},
5454
{
5555
"driver": "Esteban Ocon",
5656
"nationality": "FRA",
57-
"points": 78,
57+
"points": 79,
5858
"position": 8,
5959
"team": "Alpine Renault",
6060
},
@@ -75,7 +75,7 @@ exports[`driver standings 1`] = `
7575
{
7676
"driver": "Sebastian Vettel",
7777
"nationality": "GER",
78-
"points": 32,
78+
"points": 38,
7979
"position": 11,
8080
"team": "Aston Martin Aramco Mercedes",
8181
},
@@ -87,18 +87,18 @@ exports[`driver standings 1`] = `
8787
"team": "McLaren Mercedes",
8888
},
8989
{
90-
"driver": "Pierre Gasly",
91-
"nationality": "FRA",
92-
"points": 23,
90+
"driver": "Kevin Magnussen",
91+
"nationality": "DEN",
92+
"points": 26,
9393
"position": 13,
94-
"team": "AlphaTauri RBPT",
94+
"team": "Haas Ferrari",
9595
},
9696
{
97-
"driver": "Kevin Magnussen",
98-
"nationality": "DEN",
99-
"points": 22,
97+
"driver": "Pierre Gasly",
98+
"nationality": "FRA",
99+
"points": 23,
100100
"position": 14,
101-
"team": "Haas Ferrari",
101+
"team": "AlphaTauri RBPT",
102102
},
103103
{
104104
"driver": "Lance Stroll",
@@ -108,18 +108,18 @@ exports[`driver standings 1`] = `
108108
"team": "Aston Martin Aramco Mercedes",
109109
},
110110
{
111-
"driver": "Mick Schumacher",
112-
"nationality": "GER",
113-
"points": 12,
111+
"driver": "Yuki Tsunoda",
112+
"nationality": "JPN",
113+
"points": 13,
114114
"position": 16,
115-
"team": "Haas Ferrari",
115+
"team": "AlphaTauri RBPT",
116116
},
117117
{
118-
"driver": "Yuki Tsunoda",
119-
"nationality": "JPN",
120-
"points": 11,
118+
"driver": "Mick Schumacher",
119+
"nationality": "GER",
120+
"points": 12,
121121
"position": 17,
122-
"team": "AlphaTauri RBPT",
122+
"team": "Haas Ferrari",
123123
},
124124
{
125125
"driver": "Zhou Guanyu",

0 commit comments

Comments
 (0)