mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
chore(): fix snapshot relativePath
This commit is contained in:
@ -250,7 +250,7 @@ gulp.task('e2e.build', function() {
|
||||
])
|
||||
.pipe(rename(function(file) {
|
||||
var sep = path.sep;
|
||||
file.dirname = file.dirname.replace(sep + 'test' + sep, sep)
|
||||
file.dirname = file.dirname.replace(sep + 'test' + sep, sep);
|
||||
}))
|
||||
.pipe(gulp.dest('dist/e2e/'));
|
||||
|
||||
@ -269,6 +269,7 @@ gulp.task('e2e.build', function() {
|
||||
return through2.obj(function(file, enc, next) {
|
||||
var self = this;
|
||||
var relativePath = path.dirname(file.path.replace(/^.*?ionic(\/|\\)components(\/|\\)/, ''));
|
||||
relativePath = relativePath.replace('/test/', '/');
|
||||
var contents = file.contents.toString();
|
||||
platforms.forEach(function(platform) {
|
||||
var platformContents = testTemplate({
|
||||
|
Reference in New Issue
Block a user