Change require to import for FS and Remove Test

This commit is contained in:
Ben Burwood
2025-09-09 18:54:29 +01:00
parent c6b64ced91
commit 1cc4862d51
2 changed files with 1 additions and 8 deletions

View File

@@ -1,3 +1,4 @@
import fs from "fs";
import { execFile as execFileOriginal } from "node:child_process";
import { ExecFileFn } from "./types";
@@ -24,7 +25,6 @@ export async function convert(
args.push("--read", fileType);
args.push("--write", convertTo);
const fs = require("fs");
return new Promise((resolve, reject) => {
execFile("dasel", args, (error, stdout, stderr) => {
if (error) {

View File

@@ -1,7 +0,0 @@
import { test } from "bun:test";
import { convert } from "../../src/converters/dasel";
import { runCommonTests } from "./helpers/commonTests";
runCommonTests(convert);
test.skip("dummy - required to trigger test detection", () => {});