Skip to content

Commit 120d85d

Browse files
committed
fix runIntegrationTest
1 parent 6b2ec57 commit 120d85d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

integration-tests/runIntegrationTest.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { resolveRelativeFileDependencies } from "../src/resolveRelativeFileDepen
77
export const patchPackageTarballPath = resolve(
88
fs
99
.readdirSync(".")
10-
.filter(nm => nm.match(/^patch-package\.test\.\d+\.tgz$/))[0],
10+
.filter((nm) => nm.match(/^patch-package\.test\.\d+\.tgz$/))[0],
1111
)
1212

1313
export function runIntegrationTest({
@@ -40,6 +40,7 @@ export function runIntegrationTest({
4040
{
4141
cwd: tmpDir.name,
4242
throwOnError: false,
43+
shell: true,
4344
},
4445
)
4546

@@ -64,7 +65,7 @@ export function runIntegrationTest({
6465
expect(snapshots && snapshots.length).toBeTruthy()
6566
})
6667
if (snapshots) {
67-
snapshots.forEach(snapshot => {
68+
snapshots.forEach((snapshot) => {
6869
const snapshotDescriptionMatch = snapshot.match(/SNAPSHOT: (.*)/)
6970
if (snapshotDescriptionMatch) {
7071
it(snapshotDescriptionMatch[1], () => {

0 commit comments

Comments
 (0)