Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 8d3b3c2

Browse files
committed
Remove Jest environment's tests' pattern dependence on shell
1 parent 51e8166 commit 8d3b3c2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/jest-environment-miniflare/test/index.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ function runJest(
4141
"--testEnvironment",
4242
"miniflare",
4343
"--testEnvironmentOptions",
44-
JSON.stringify(JSON.stringify(options)),
44+
JSON.stringify(options),
4545
],
46-
{ cwd, shell: true }
46+
{ cwd }
4747
);
4848
let output = "";
4949
jest.stdout.on("data", (data) => (output += data));
@@ -55,7 +55,7 @@ function runJest(
5555
test.serial(
5656
"MiniflareEnvironment: runs Jest tests with Service Worker format workers",
5757
async (t) => {
58-
const [exitCode, output] = await runJest("*.worker.spec.js", {
58+
const [exitCode, output] = await runJest(".worker.spec.js", {
5959
kvNamespaces: ["TEST_NAMESPACE"],
6060
sitePath: fixturesPath,
6161
globals: { KEY: "value" },
@@ -72,7 +72,7 @@ test.serial(
7272
test.serial(
7373
"MiniflareEnvironment: runs Jest tests with ES Module format workers",
7474
async (t) => {
75-
const [exitCode, output] = await runJest("*.module.spec.js", {
75+
const [exitCode, output] = await runJest(".module.spec.js", {
7676
modules: true,
7777
scriptPath: path.join(fixturesPath, "module-worker.js"),
7878
durableObjects: { TEST_OBJECT: "TestObject" },

0 commit comments

Comments
 (0)