File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 91
91
node_js : lts/dubnium
92
92
- << : *node-tests
93
93
os : osx
94
- # TODO(nweiz): Test Node tests with Dart dev when dart-lang/test#1184 is
95
- # fixed.
94
+ - << : *node-tests
95
+ name : Node tests | Dart dev | Node stable
96
+ env : DART_CHANNEL=dev
96
97
97
98
# Miscellaneous checks.
98
99
- name : static analysis
Original file line number Diff line number Diff line change 4
4
5
5
import 'dart:async' ;
6
6
7
- import 'package:cli_pkg/testing.dart' as pkg;
8
- import 'package:stream_channel/stream_channel.dart' ;
9
7
import 'package:test/test.dart' ;
10
8
11
9
import 'package:sass/src/io.dart' ;
12
10
13
- void hybridMain (StreamChannel <Object > channel) async {
14
- pkg.ensureExecutableUpToDate ("sass" , node: true );
15
- channel.sink.close ();
16
- }
17
-
18
11
/// Ensures that the NPM package is compiled and up-to-date.
19
12
///
20
13
/// This is safe to call even outside the Dart VM.
@@ -23,6 +16,14 @@ Future<void> ensureNpmPackage() async {
23
16
// path handling in the SDK.
24
17
if (isNode && isWindows) return ;
25
18
26
- var channel = spawnHybridUri ("/test/ensure_npm_package.dart" );
19
+ var channel = spawnHybridCode ("""
20
+ import 'package:cli_pkg/testing.dart' as pkg;
21
+ import 'package:stream_channel/stream_channel.dart';
22
+
23
+ void hybridMain(StreamChannel<Object> channel) async {
24
+ pkg.ensureExecutableUpToDate("sass", node: true);
25
+ channel.sink.close();
26
+ }
27
+ """ );
27
28
await channel.stream.toList ();
28
29
}
You can’t perform that action at this time.
0 commit comments