Buckets:
dieumercimvemba/mediastore / scripts /whatsapp-bridge /node_modules /thread-stream /test /transpiled.test.js
| const { test } = require('tap') | |
| const { join } = require('path') | |
| const { file } = require('./helper') | |
| const ThreadStream = require('..') | |
| function basic (esVersion) { | |
| test(`transpiled-ts-to-${esVersion}`, function (t) { | |
| t.plan(2) | |
| const dest = file() | |
| const stream = new ThreadStream({ | |
| filename: join(__dirname, 'ts', `to-file.${esVersion}.cjs`), | |
| workerData: { dest }, | |
| sync: true | |
| }) | |
| // There are arbitrary checks, the important aspect of this test is to ensure | |
| // that we can properly load the transpiled file into our worker thread. | |
| t.same(stream.writableEnded, false) | |
| stream.end() | |
| t.same(stream.writableEnded, true) | |
| }) | |
| } | |
| basic('es5') | |
| basic('es6') | |
| basic('es2017') | |
| basic('esnext') | |
Xet Storage Details
- Size:
- 754 Bytes
- Xet hash:
- 135fde0b9c5f7e8db42d158ea796518acae2d875e3af669babe31b68f1ce4b40
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.