We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 300ed2f commit 37e9540Copy full SHA for 37e9540
test/cli.test.js
@@ -166,8 +166,6 @@ describe('cli', () => {
166
assert.equal(out.stdout, 'BAR\n\nFOO+\n\n')
167
})
168
169
-
170
171
test('supports `--env` and `--cwd` options and with file', async () => {
172
const env = tmpfile(
173
'.env',
@@ -193,11 +191,11 @@ describe('cli', () => {
193
191
console.log((await $\`echo $BAR\`).stdout)
194
192
`
195
try {
196
- await $`node build/cli.js --env=./env <<< ${file}`
197
- fs.remove(env)
198
- assert.throw()
+ await $`node build/cli.js --env=./env <<< ${file}`
+ fs.remove(env)
+ assert.throw()
199
} catch (e) {
200
- assert.equal(e.exitCode, 1)
+ assert.equal(e.exitCode, 1)
201
}
202
203
0 commit comments