@@ -173,24 +173,66 @@ void sharedTests(Future<TestProcess> runSass(Iterable<String> arguments)) {
173
173
]).validate ();
174
174
});
175
175
176
- test ("when its dependency is modified" , () async {
177
- await d.file ("_other.scss" , "a {b: c}" ).create ();
178
- await d.file ("test.scss" , "@import 'other'" ).create ();
176
+ group ("when its dependency is modified" , () {
177
+ test ("through @import" , () async {
178
+ await d.file ("_other.scss" , "a {b: c}" ).create ();
179
+ await d.file ("test.scss" , "@import 'other'" ).create ();
179
180
180
- var sass = await watch (["test.scss:out.css" ]);
181
- await expectLater (
182
- sass.stdout, emits ('Compiled test.scss to out.css.' ));
183
- await expectLater (sass.stdout, _watchingForChanges);
184
- await tickIfPoll ();
181
+ var sass = await watch (["test.scss:out.css" ]);
182
+ await expectLater (
183
+ sass.stdout, emits ('Compiled test.scss to out.css.' ));
184
+ await expectLater (sass.stdout, _watchingForChanges);
185
+ await tickIfPoll ();
185
186
186
- await d.file ("_other.scss" , "x {y: z}" ).create ();
187
- await expectLater (
188
- sass.stdout, emits ('Compiled test.scss to out.css.' ));
189
- await sass.kill ();
187
+ await d.file ("_other.scss" , "x {y: z}" ).create ();
188
+ await expectLater (
189
+ sass.stdout, emits ('Compiled test.scss to out.css.' ));
190
+ await sass.kill ();
190
191
191
- await d
192
- .file ("out.css" , equalsIgnoringWhitespace ("x { y: z; }" ))
193
- .validate ();
192
+ await d
193
+ .file ("out.css" , equalsIgnoringWhitespace ("x { y: z; }" ))
194
+ .validate ();
195
+ });
196
+
197
+ test ("through @use" , () async {
198
+ await d.file ("_other.scss" , "a {b: c}" ).create ();
199
+ await d.file ("test.scss" , "@use 'other'" ).create ();
200
+
201
+ var sass = await watch (["test.scss:out.css" ]);
202
+ await expectLater (
203
+ sass.stdout, emits ('Compiled test.scss to out.css.' ));
204
+ await expectLater (sass.stdout, _watchingForChanges);
205
+ await tickIfPoll ();
206
+
207
+ await d.file ("_other.scss" , "x {y: z}" ).create ();
208
+ await expectLater (
209
+ sass.stdout, emits ('Compiled test.scss to out.css.' ));
210
+ await sass.kill ();
211
+
212
+ await d
213
+ .file ("out.css" , equalsIgnoringWhitespace ("x { y: z; }" ))
214
+ .validate ();
215
+ });
216
+
217
+ test ("through @forward" , () async {
218
+ await d.file ("_other.scss" , "a {b: c}" ).create ();
219
+ await d.file ("test.scss" , "@forward 'other'" ).create ();
220
+
221
+ var sass = await watch (["test.scss:out.css" ]);
222
+ await expectLater (
223
+ sass.stdout, emits ('Compiled test.scss to out.css.' ));
224
+ await expectLater (sass.stdout, _watchingForChanges);
225
+ await tickIfPoll ();
226
+
227
+ await d.file ("_other.scss" , "x {y: z}" ).create ();
228
+ await expectLater (
229
+ sass.stdout, emits ('Compiled test.scss to out.css.' ));
230
+ await sass.kill ();
231
+
232
+ await d
233
+ .file ("out.css" , equalsIgnoringWhitespace ("x { y: z; }" ))
234
+ .validate ();
235
+ });
194
236
});
195
237
196
238
test ("when it's deleted and re-added" , () async {
0 commit comments