UNPKG

@revoloo/cypress6

Version:

Cypress.io end to end testing tool

16 lines (13 loc) 452 B
const fs = require('fs') const zlib = require('zlib') const path = require('path') const src = path.join('test/support/fixtures/projects/e2e/static/FiraSans-Regular.woff') const dest = path.join('test/support/fixtures/projects/e2e/static/FiraSans-Regular.woff.gz') fs.readFile(src, (err, buf) => { zlib.gzip(buf, (err, zipped) => { console.log(dest) fs.writeFile(dest, zipped, (err, bytes) => { console.log(err, bytes) }) }) })