refactor: init cypress-cucumber-preprocessor install.

This commit is contained in:
2021-09-02 17:02:45 +02:00
parent 89ec2d42ac
commit 1aa57bbd0a
5000 changed files with 408119 additions and 231 deletions

28
node_modules/browserify/test/tr.js generated vendored Normal file
View File

@@ -0,0 +1,28 @@
var browserify = require('../');
var vm = require('vm');
var test = require('tap').test;
var through = require('through2');
test('function transform', function (t) {
t.plan(7);
var b = browserify(__dirname + '/tr/main.js');
b.transform({ global: true }, function (file) {
return through(function (buf, enc, next) {
this.push(String(buf).replace(/ZZZ/g, '1'));
next();
});
});
b.transform(function (file) {
return through(function (buf, enc, next) {
this.push(String(buf)
.replace(/AAA/g, '5')
.replace(/BBB/g, '50')
);
next();
})
});
b.bundle(function (err, src) {
vm.runInNewContext(src, { t: t });
});
});