Change require to import for FS and Remove Test
This commit is contained in:
parent
c6b64ced91
commit
1cc4862d51
2 changed files with 1 additions and 8 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
import fs from "fs";
|
||||||
import { execFile as execFileOriginal } from "node:child_process";
|
import { execFile as execFileOriginal } from "node:child_process";
|
||||||
import { ExecFileFn } from "./types";
|
import { ExecFileFn } from "./types";
|
||||||
|
|
||||||
|
|
@ -24,7 +25,6 @@ export async function convert(
|
||||||
args.push("--read", fileType);
|
args.push("--read", fileType);
|
||||||
args.push("--write", convertTo);
|
args.push("--write", convertTo);
|
||||||
|
|
||||||
const fs = require("fs");
|
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
execFile("dasel", args, (error, stdout, stderr) => {
|
execFile("dasel", args, (error, stdout, stderr) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
|
|
|
||||||
|
|
@ -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", () => {});
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue