Skip to content

Commit 4be83bb

Browse files
committed
update integration test template
1 parent 42e62be commit 4be83bb

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

integration-tests/newIntegrationTest.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,18 @@ spawnSafeSync("yarn", [], { cwd: testDir })
3535
// create shell script boilerplate
3636
fs.writeFileSync(
3737
path.join(testDir, `${testName}.sh`),
38-
`# make sure errors stop the script
38+
`#!/bin/bash
39+
# make sure errors stop the script
3940
set -e
4041
42+
npm install
43+
4144
echo "add patch-package"
42-
yarn add $1
43-
alias patch-package=./node_modules/.bin/patch-package
45+
npm add $1
46+
47+
function patch-package {
48+
./node_modules/.bin/patch-package "$@"
49+
}
4450
`,
4551
{ mode: 0o755 },
4652
)

0 commit comments

Comments
 (0)