OLD | NEW |
(Empty) | |
| 1 import 'package:scheduled_test/scheduled_test.dart'; |
| 2 import '../descriptor.dart' as d; |
| 3 import '../test_pub.dart'; |
| 4 import '../serve/utils.dart'; |
| 5 main() { |
| 6 initConfig(); |
| 7 setUp(() { |
| 8 d.dir( |
| 9 appPath, |
| 10 [ |
| 11 d.appPubspec(), |
| 12 d.dir('lib', [d.file('file.dart', 'void main() => print("hello");')]
), |
| 13 d.dir('web', [d.file('index.html', 'html')])]).create(); |
| 14 }); |
| 15 integration("build ignores Dart entrypoints in lib", () { |
| 16 schedulePub( |
| 17 args: ["build", "--all"], |
| 18 output: new RegExp(r'Built 1 file to "build".')); |
| 19 d.dir(appPath, [d.dir('build', [d.nothing('lib')])]).validate(); |
| 20 }); |
| 21 integration("serve ignores Dart entrypoints in lib", () { |
| 22 pubServe(); |
| 23 requestShould404("packages/myapp/main.dart.js"); |
| 24 endPubServe(); |
| 25 }); |
| 26 } |
OLD | NEW |