@@ -24,7 +24,7 @@ describe('static build', () => {
24
24
env : { NODE_ENV : 'production' } ,
25
25
} )
26
26
27
- expect ( await readOutputFile ( / i n d e x \. \w + \. c s s $ / ) ) . toIncludeCss ( css `
27
+ expect ( await readOutputFile ( / p a r c e l \. \w + \. c s s $ / ) ) . toIncludeCss ( css `
28
28
.font-bold {
29
29
font-weight : 700 ;
30
30
}
@@ -71,7 +71,7 @@ describe('static build', () => {
71
71
env : { NODE_ENV : 'production' } ,
72
72
} )
73
73
74
- expect ( await readOutputFile ( / i n d e x \. \w + \. c s s $ / ) ) . toIncludeCss ( css `
74
+ expect ( await readOutputFile ( / p a r c e l \. \w + \. c s s $ / ) ) . toIncludeCss ( css `
75
75
.bg-primary {
76
76
--tw-bg-opacity : 1 ;
77
77
background-color : rgb (0 0 0 / var (--tw-bg-opacity , 1 ));
@@ -121,7 +121,7 @@ describe('static build', () => {
121
121
env : { NODE_ENV : 'production' } ,
122
122
} )
123
123
124
- expect ( await readOutputFile ( / i n d e x \. \w + \. c s s $ / ) ) . toIncludeCss ( css `
124
+ expect ( await readOutputFile ( / p a r c e l \. \w + \. c s s $ / ) ) . toIncludeCss ( css `
125
125
.bg-primary {
126
126
--tw-bg-opacity : 1 ;
127
127
background-color : rgb (0 0 0 / var (--tw-bg-opacity , 1 ));
@@ -142,19 +142,19 @@ describe('watcher', () => {
142
142
143
143
let runningProcess = $ ( 'parcel watch ./src/index.html --no-cache' )
144
144
145
- await waitForOutputFileCreation ( / i n d e x \. \w + \. c s s $ / )
145
+ await waitForOutputFileCreation ( / p a r c e l \. \w + \. c s s $ / )
146
146
147
- expect ( await readOutputFile ( / i n d e x \. \w + \. c s s $ / ) ) . toIncludeCss ( css `
147
+ expect ( await readOutputFile ( / p a r c e l \. \w + \. c s s $ / ) ) . toIncludeCss ( css `
148
148
.font-bold {
149
149
font-weight : 700 ;
150
150
}
151
151
` )
152
152
153
- await waitForOutputFileChange ( / i n d e x \. \w + \. c s s $ / , async ( ) => {
153
+ await waitForOutputFileChange ( / p a r c e l \. \w + \. c s s $ / , async ( ) => {
154
154
await appendToInputFile ( 'index.html' , html `<div class= "font-normal" > </ div> ` )
155
155
} )
156
156
157
- expect ( await readOutputFile ( / i n d e x \. \w + \. c s s $ / ) ) . toIncludeCss ( css `
157
+ expect ( await readOutputFile ( / p a r c e l \. \w + \. c s s $ / ) ) . toIncludeCss ( css `
158
158
.font-bold {
159
159
font-weight : 700 ;
160
160
}
@@ -163,11 +163,11 @@ describe('watcher', () => {
163
163
}
164
164
` )
165
165
166
- await waitForOutputFileChange ( / i n d e x \. \w + \. c s s $ / , async ( ) => {
166
+ await waitForOutputFileChange ( / p a r c e l \. \w + \. c s s $ / , async ( ) => {
167
167
await appendToInputFile ( 'index.html' , html `<div class= "bg-red-500" > </ div> ` )
168
168
} )
169
169
170
- expect ( await readOutputFile ( / i n d e x \. \w + \. c s s $ / ) ) . toIncludeCss ( css `
170
+ expect ( await readOutputFile ( / p a r c e l \. \w + \. c s s $ / ) ) . toIncludeCss ( css `
171
171
.bg-red-500 {
172
172
--tw-bg-opacity : 1 ;
173
173
background-color : rgb (239 68 68 / var (--tw-bg-opacity , 1 ));
@@ -190,19 +190,19 @@ describe('watcher', () => {
190
190
191
191
let runningProcess = $ ( 'parcel watch ./src/index.html --no-cache' )
192
192
193
- await waitForOutputFileCreation ( / i n d e x \. \w + \. c s s $ / )
193
+ await waitForOutputFileCreation ( / p a r c e l \. \w + \. c s s $ / )
194
194
195
- expect ( await readOutputFile ( / i n d e x \. \w + \. c s s $ / ) ) . toIncludeCss ( css `
195
+ expect ( await readOutputFile ( / p a r c e l \. \w + \. c s s $ / ) ) . toIncludeCss ( css `
196
196
.font-bold {
197
197
font-weight : 700 ;
198
198
}
199
199
` )
200
200
201
- await waitForOutputFileChange ( / i n d e x \. \w + \. c s s $ / , async ( ) => {
201
+ await waitForOutputFileChange ( / p a r c e l \. \w + \. c s s $ / , async ( ) => {
202
202
await appendToInputFile ( 'glob/index.html' , html `<div class= "font-normal" > </ div> ` )
203
203
} )
204
204
205
- expect ( await readOutputFile ( / i n d e x \. \w + \. c s s $ / ) ) . toIncludeCss ( css `
205
+ expect ( await readOutputFile ( / p a r c e l \. \w + \. c s s $ / ) ) . toIncludeCss ( css `
206
206
.font-bold {
207
207
font-weight : 700 ;
208
208
}
@@ -211,11 +211,11 @@ describe('watcher', () => {
211
211
}
212
212
` )
213
213
214
- await waitForOutputFileChange ( / i n d e x \. \w + \. c s s $ / , async ( ) => {
214
+ await waitForOutputFileChange ( / p a r c e l \. \w + \. c s s $ / , async ( ) => {
215
215
await appendToInputFile ( 'glob/index.html' , html `<div class= "bg-red-500" > </ div> ` )
216
216
} )
217
217
218
- expect ( await readOutputFile ( / i n d e x \. \w + \. c s s $ / ) ) . toIncludeCss ( css `
218
+ expect ( await readOutputFile ( / p a r c e l \. \w + \. c s s $ / ) ) . toIncludeCss ( css `
219
219
.bg-red-500 {
220
220
--tw-bg-opacity : 1 ;
221
221
background-color : rgb (239 68 68 / var (--tw-bg-opacity , 1 ));
@@ -242,9 +242,9 @@ describe('watcher', () => {
242
242
243
243
let runningProcess = $ ( 'parcel watch ./src/index.html --no-cache' )
244
244
245
- await waitForOutputFileCreation ( / i n d e x \. \w + \. c s s $ / )
245
+ await waitForOutputFileCreation ( / p a r c e l \. \w + \. c s s $ / )
246
246
247
- expect ( await readOutputFile ( / i n d e x \. \w + \. c s s $ / ) ) . toIncludeCss ( css `
247
+ expect ( await readOutputFile ( / p a r c e l \. \w + \. c s s $ / ) ) . toIncludeCss ( css `
248
248
.font-bold {
249
249
font-weight : 700 ;
250
250
}
@@ -255,7 +255,7 @@ describe('watcher', () => {
255
255
}
256
256
` )
257
257
258
- await waitForOutputFileChange ( / i n d e x \. \w + \. c s s $ / , async ( ) => {
258
+ await waitForOutputFileChange ( / p a r c e l \. \w + \. c s s $ / , async ( ) => {
259
259
await writeInputFile (
260
260
'../tailwind.config.js' ,
261
261
javascript `
@@ -280,7 +280,7 @@ describe('watcher', () => {
280
280
)
281
281
} )
282
282
283
- expect ( await readOutputFile ( / i n d e x \. \w + \. c s s $ / ) ) . toIncludeCss ( css `
283
+ expect ( await readOutputFile ( / p a r c e l \. \w + \. c s s $ / ) ) . toIncludeCss ( css `
284
284
.font-bold {
285
285
font-weight : bold;
286
286
}
@@ -305,15 +305,15 @@ describe('watcher', () => {
305
305
306
306
let runningProcess = $ ( 'parcel watch ./src/index.html --no-cache' )
307
307
308
- await waitForOutputFileCreation ( / i n d e x \. \w + \. c s s $ / )
308
+ await waitForOutputFileCreation ( / p a r c e l \. \w + \. c s s $ / )
309
309
310
- expect ( await readOutputFile ( / i n d e x \. \w + \. c s s $ / ) ) . toIncludeCss ( css `
310
+ expect ( await readOutputFile ( / p a r c e l \. \w + \. c s s $ / ) ) . toIncludeCss ( css `
311
311
.font-bold {
312
312
font-weight : 700 ;
313
313
}
314
314
` )
315
315
316
- await waitForOutputFileChange ( / i n d e x \. \w + \. c s s $ / , async ( ) => {
316
+ await waitForOutputFileChange ( / p a r c e l \. \w + \. c s s $ / , async ( ) => {
317
317
await writeInputFile (
318
318
'index.css' ,
319
319
css `
@@ -330,7 +330,7 @@ describe('watcher', () => {
330
330
)
331
331
} )
332
332
333
- expect ( await readOutputFile ( / i n d e x \. \w + \. c s s $ / ) ) . toIncludeCss ( css `
333
+ expect ( await readOutputFile ( / p a r c e l \. \w + \. c s s $ / ) ) . toIncludeCss ( css `
334
334
/* prettier-ignore */
335
335
.btn {
336
336
border-radius : .25rem ;
@@ -341,7 +341,7 @@ describe('watcher', () => {
341
341
}
342
342
` )
343
343
344
- await waitForOutputFileChange ( / i n d e x \. \w + \. c s s $ / , async ( ) => {
344
+ await waitForOutputFileChange ( / p a r c e l \. \w + \. c s s $ / , async ( ) => {
345
345
await writeInputFile (
346
346
'index.css' ,
347
347
css `
@@ -358,7 +358,7 @@ describe('watcher', () => {
358
358
)
359
359
} )
360
360
361
- expect ( await readOutputFile ( / i n d e x \. \w + \. c s s $ / ) ) . toIncludeCss ( css `
361
+ expect ( await readOutputFile ( / p a r c e l \. \w + \. c s s $ / ) ) . toIncludeCss ( css `
362
362
.btn {
363
363
--tw-bg-opacity : 1 ;
364
364
background-color : rgb (239 68 68 / var (--tw-bg-opacity , 1 ));
0 commit comments