refactor(Cypress): add nodemodules

This commit is contained in:
2021-09-02 17:18:41 +02:00
parent 1aa57bbd0a
commit bc6e1bc12e
4238 changed files with 340975 additions and 8 deletions

21
node_modules/module-deps/test/tr_opts.js generated vendored Normal file
View File

@@ -0,0 +1,21 @@
var mdeps = require('../');
var test = require('tap').test;
var JSONStream = require('JSONStream');
var packer = require('browser-pack');
var concat = require('concat-stream');
var path = require('path');
test('transform options', function (t) {
t.plan(1);
var p = mdeps({
transformKey: [ 'mdtr' ]
});
p.end(path.join(__dirname, '/tr_opts/main.js'));
var pack = packer();
p.pipe(JSONStream.stringify()).pipe(pack).pipe(concat(function (src) {
Function('console', src.toString('utf8'))({
log: function (msg) { t.equal(msg, 999) }
});
}));
});