Skip to content

Commit facd05b

Browse files
JustinBeckwithAhrar Monsur
authored and
Ahrar Monsur
committed
refactor: use execSync for tests (#176)
1 parent 65f11ca commit facd05b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

container/snippets/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
},
1919
"devDependencies": {
2020
"chai": "^4.2.0",
21-
"execa": "^1.0.0",
2221
"mocha": "^6.0.0"
2322
}
2423
}

container/snippets/system-test/sample.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
'use strict';
1717

1818
const {assert} = require('chai');
19-
const execa = require('execa');
19+
const {execSync} = require('child_process');
2020

2121
describe('container samples', () => {
2222
it('should run the quickstart', async () => {
23-
const {stdout} = await execa.shell('node quickstart');
23+
const stdout = execSync('node quickstart');
2424
assert.match(stdout, /Clusters:/);
2525
});
2626
});

0 commit comments

Comments
 (0)