Skip to content

Commit

Permalink
test(worker/vitest.config.ts): use node:child_process instead of execa (
Browse files Browse the repository at this point in the history
#1084)

* test(worker/vitest.config.ts): use node:child_process instead of execa

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
  • Loading branch information
risu729 and autofix-ci[bot] authored Dec 17, 2024
1 parent 9cb7f21 commit bea4cca
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
Binary file modified bun.lockb
Binary file not shown.
Binary file modified worker/bun.lockb
Binary file not shown.
1 change: 0 additions & 1 deletion worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"@types/diff": "6.0.0",
"@vitest/ui": "2.1.8",
"diff": "7.0.0",
"execa": "9.5.2",
"typescript": "5.7.2",
"vitest": "2.1.8",
"wrangler": "3.96.0"
Expand Down
8 changes: 5 additions & 3 deletions worker/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
// ref: https://vitest.dev/config/

import { exec } from "node:child_process";
import { promisify } from "node:util";
import { defineWorkersConfig } from "@cloudflare/vitest-pool-workers/config";
import { $ } from "execa";

const { stdout: compatibilityDate } =
await $`mise run worker:wrangler-compat-date`;
const { stdout: compatibilityDate } = await promisify(exec)(
"mise run worker:wrangler-compat-date",
);

export default defineWorkersConfig({
test: {
Expand Down

0 comments on commit bea4cca

Please sign in to comment.