anchor.diff:      test('compile to JavaScript with metadata', () async {
         var file = File('${tempDir.path}/foo.dart')..createSync();
         file.writeAsStringSync("main() {\n\n}\n");
  -      File('${tempDir.path}/.packages')
  -        ..createSync()
  -        ..writeAsStringSync("hello:${tempDir.uri}\n");
  +      var package_config =
  +          File('${tempDir.path}/.dart_tool/package_config.json')
  +            ..createSync(recursive: true)
  +            ..writeAsStringSync('''
  +  {
  +    "configVersion": 2,
  +    "packages": [
  +      {
  +        "name": "hello",
  +        "rootUri": "../",
  +        "packageUri": "./"
  +      }
  +    ]
  +  }
  +  ''');
   
         var library = 'package:hello/foo.dart';
   
  
positive.code:           // expression
            outputParser.expectSources = false;
            streamController.add('compile-expression-to-js abc\n'
                    '$library\n1\n1\nabc\nabc\n$module\n2+2\n'
                .codeUnits);
            count += 1;
          } else if (count == 1) {
  
negative.code:           // expression
            outputParser.expectSources = false;
            streamController.add('compile-expression-to-js abc\n'
                    '$library\n2\n1\nabc\nabc\n$module\n\n'
                .codeUnits);
            count += 1;
          } else if (count == 1) {
  