All files / src/modules external.js

96.96% Statements 32/33
100% Branches 7/7
85.71% Functions 6/7
96.96% Lines 32/33

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 3472x 72x 72x 72x 821x 821x 821x 821x 821x 821x 821x 821x 821x 821x 821x 821x 821x 821x 821x 821x 821x 821x 821x   821x 821x 821x 821x 2532x 2532x 821x 821x 72x  
'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
const path = require('node:path');
module.exports = () => ({
    buffer: Buffer,
    loadCmdabra: () => import('@jakobm/cmdabra'),
    crypto: require('node:crypto'),
    currentWorkingDirectory: () => process.cwd(),
    envPaths: require('env-paths'),
    fs: require('node:fs'),
    modulesDirectory: __dirname,
    os: require('node:os'),
    packageMetadata: require('../../../package.json'),
    path,
    processEnvironment: process.env,
    processRuntime: {
        pid: () => process.pid,
        standardOutput: process.stdout,
        standardError: process.stderr,
    },
    systemClock: {
        now: () => Date.now(),
        sleep(milliseconds) {
            Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, milliseconds);
        },
    },
    yaml: require('yaml'),
    sqlite: function LazyDatabase(...arguments_) {
        const Database = require('better-sqlite3');
        return new Database(...arguments_);
    },
    zod: require('zod'),
});