@muritavo/testing-toolkit 0.6.2 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -219,12 +219,12 @@ function bindToBlockchain(_a) {
|
|
|
219
219
|
if (projectFolder)
|
|
220
220
|
(0, exports.blockchainLogger)("Starting blockchain server at \"".concat(projectFolder, "\""));
|
|
221
221
|
if (graphqlProject) {
|
|
222
|
-
(0, child_process_1.execSync)("docker
|
|
222
|
+
(0, child_process_1.execSync)("docker-compose up --detach", {
|
|
223
223
|
cwd: graphqlProject,
|
|
224
224
|
stdio: "ignore",
|
|
225
225
|
});
|
|
226
226
|
process.on("SIGINT", function () {
|
|
227
|
-
(0, child_process_1.execSync)("docker
|
|
227
|
+
(0, child_process_1.execSync)("docker-compose down", {
|
|
228
228
|
cwd: graphqlProject,
|
|
229
229
|
stdio: "ignore",
|
|
230
230
|
});
|
|
@@ -369,12 +369,12 @@ function startBlockchain(_a) {
|
|
|
369
369
|
if (projectFolder)
|
|
370
370
|
(0, exports.blockchainLogger)("Starting blockchain server at \"".concat(projectFolder, "\""));
|
|
371
371
|
if (graphqlProject) {
|
|
372
|
-
(0, child_process_1.execSync)("docker
|
|
372
|
+
(0, child_process_1.execSync)("docker-compose up --detach", {
|
|
373
373
|
cwd: graphqlProject,
|
|
374
374
|
stdio: "ignore",
|
|
375
375
|
});
|
|
376
376
|
process.on("SIGINT", function () {
|
|
377
|
-
(0, child_process_1.execSync)("docker
|
|
377
|
+
(0, child_process_1.execSync)("docker-compose down", {
|
|
378
378
|
cwd: graphqlProject,
|
|
379
379
|
stdio: "ignore",
|
|
380
380
|
});
|
|
@@ -732,7 +732,7 @@ function stopBlockchain() {
|
|
|
732
732
|
(0, exports.blockchainLogger)("Closing hardhat server");
|
|
733
733
|
if (instance.graphqlProject) {
|
|
734
734
|
(0, exports.blockchainLogger)("Ending graphql docker container");
|
|
735
|
-
(0, child_process_1.execSync)("docker
|
|
735
|
+
(0, child_process_1.execSync)("docker-compose down", {
|
|
736
736
|
cwd: instance.graphqlProject,
|
|
737
737
|
stdio: "ignore",
|
|
738
738
|
});
|