Skip to content

Commit 70f6bd7

Browse files
committed
πŸ‘Œ IMPROVE: tests
1 parent 137e534 commit 70f6bd7

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

β€Žtest.jsβ€Ž

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,22 @@ const handleError = require('node-cli-handle-error');
88

99
// changes directory and then run the shell command inside that directory
1010
await execAsync({
11-
path: `/Users/saadirfan/GitHub`,
11+
path: `/Users/saadirfan/Desktop`,
1212
cmd: `touch example.md`
1313
});
1414

1515
// change directory and run a bunch of commands
16-
const commands = [`touch example.js`, `touch example.md`];
16+
const commands = [
17+
`mkdir saad`,
18+
`npm install`,
19+
`npm install --only=dev`
20+
];
1721
await execAsync({
18-
path: `/Users/saadirfan/GitHub`,
22+
path: `/Users/saadirfan/Desktop/example`,
1923
cmd: commands
2024
});
25+
26+
console.log(`Will execute after commands...`);
2127
} catch (err) {
2228
handleError(err);
2329
}

0 commit comments

Comments
Β (0)