OLD | NEW |
(Empty) | |
| 1 library pub_tests; |
| 2 import '../descriptor.dart' as d; |
| 3 import '../test_pub.dart'; |
| 4 import '../serve/utils.dart'; |
| 5 main() { |
| 6 initConfig(); |
| 7 withBarbackVersions("any", () { |
| 8 integration("does not run a transform on an input in another package", () { |
| 9 d.dir("foo", [d.pubspec({ |
| 10 "name": "foo", |
| 11 "version": "0.0.1", |
| 12 "transformers": ["foo/transformer"] |
| 13 }), |
| 14 d.dir( |
| 15 "lib", |
| 16 [ |
| 17 d.file("transformer.dart", REWRITE_TRANSFORMER), |
| 18 d.file("foo.txt", "foo")])]).create(); |
| 19 d.dir(appPath, [d.appPubspec({ |
| 20 "foo": { |
| 21 "path": "../foo" |
| 22 } |
| 23 }), d.dir("lib", [d.file("bar.txt", "bar")])]).create(); |
| 24 createLockFile('myapp', sandbox: ['foo'], pkg: ['barback']); |
| 25 pubServe(); |
| 26 requestShould404("packages/myapp/bar.out"); |
| 27 endPubServe(); |
| 28 }); |
| 29 }); |
| 30 } |
OLD | NEW |