text: const fs =  require('fs')
  const path = require('path')
  
  function setupView(testFilePath, capacity, position = 0) {
    const filepath = path.resolve(testFilePath)
    const inputBuffer = Buffer.alloc(capacity)
  
    const fd = fs.openSync(filepath, 'r');
    const count = fs.readSync(fd, inputBuffer, 0, capacity, position);
    return new DataView(inputBuffer.buffer, 0, count);
  }
  
  module.exports = setupView;