Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@applitools/docker-compose-mocha

Package Overview
Dependencies
Maintainers
0
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@applitools/docker-compose-mocha - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

2

index.js

@@ -123,3 +123,3 @@ // @flow

}
await exec(`docker-compose -p ${runNameSpecific} -f "${pathToComposeFile}" up -d ${onlyTheseServicesMessageCommandAddition}`,
await exec(`docker compose -p ${runNameSpecific} -f "${pathToComposeFile}" up -d ${onlyTheseServicesMessageCommandAddition}`,
envVars ? { env: { PATH: process.env.PATH, ...envVars }, shell: '/bin/zsh' } : {});

@@ -126,0 +126,0 @@

@@ -9,3 +9,3 @@ const { exec } = require('child-process-promise');

serviceName/* : string */) {
const command = `docker-compose -p ${runName} -f "${pathToCompose}" ps`;
const command = `docker compose -p ${runName} -f "${pathToCompose}" ps`;
const result = await exec(command, { shell: '/bin/zsh' });

@@ -12,0 +12,0 @@ const lines = result.stdout.split('\n');

@@ -8,3 +8,3 @@ // @flow

serviceName/* : string */) {
const commandExec = `docker-compose -p ${runNameSpecific} -f "${pathToComposeFile}" pause ${serviceName}`;
const commandExec = `docker compose -p ${runNameSpecific} -f "${pathToComposeFile}" pause ${serviceName}`;
return exec(commandExec, { shell: '/bin/zsh' });

@@ -11,0 +11,0 @@ }

@@ -8,3 +8,3 @@ // @flow

serviceName/* : string */) {
const commandExec = `docker-compose -p ${runNameSpecific} -f "${pathToComposeFile}" start ${serviceName}`;
const commandExec = `docker compose -p ${runNameSpecific} -f "${pathToComposeFile}" start ${serviceName}`;
return exec(commandExec, { shell: '/bin/zsh' });

@@ -11,0 +11,0 @@ }

@@ -8,3 +8,3 @@ // @flow

serviceName/* : string */) {
const commandExec = `docker-compose -p ${runNameSpecific} -f "${pathToComposeFile}" stop ${serviceName}`;
const commandExec = `docker compose -p ${runNameSpecific} -f "${pathToComposeFile}" stop ${serviceName}`;
return exec(commandExec, { shell: '/bin/zsh' });

@@ -11,0 +11,0 @@ }

@@ -8,3 +8,3 @@ // @flow

serviceName/* : string */) {
const commandExec = `docker-compose -p ${runNameSpecific} -f "${pathToComposeFile}" unpause ${serviceName}`;
const commandExec = `docker compose -p ${runNameSpecific} -f "${pathToComposeFile}" unpause ${serviceName}`;
return exec(commandExec, { shell: '/bin/zsh' });

@@ -11,0 +11,0 @@ }

@@ -70,3 +70,3 @@ // @flow

await exec(`docker-compose -p ${envName} -f "${pathToComposeFile}" ${brutallyKill ? 'kill' : 'down'}`, envVars ? { shell: '/bin/zsh', env: { PATH: process.env.PATH, ...envVars } } : { shell: '/bin/zsh' });
await exec(`docker compose -p ${envName} -f "${pathToComposeFile}" ${brutallyKill ? 'kill' : 'down'}`, envVars ? { shell: '/bin/zsh', env: { PATH: process.env.PATH, ...envVars } } : { shell: '/bin/zsh' });

@@ -84,3 +84,3 @@ const consoleMessageDispose = `Disposing of ${envDisplayName} environment.. `;

await exec(`docker-compose -p ${envName} -f "${pathToComposeFile}" down -v`, envVars ? { shell: '/bin/zsh', env: { PATH: process.env.PATH, ...envVars } } : { shell: '/bin/zsh' });
await exec(`docker compose -p ${envName} -f "${pathToComposeFile}" down -v`, envVars ? { shell: '/bin/zsh', env: { PATH: process.env.PATH, ...envVars } } : { shell: '/bin/zsh' });
if (!process.env.NOSPIN) {

@@ -87,0 +87,0 @@ spinner2.stop();

@@ -11,3 +11,3 @@ // @flow

}
const result = await exec(`docker-compose -p ${runName} -f "${pathToCompose}" port ${serviceName} ${originalPort}`, { shell: '/bin/zsh' });
const result = await exec(`docker compose -p ${runName} -f "${pathToCompose}" port ${serviceName} ${originalPort}`, { shell: '/bin/zsh' });
return result.stdout.replace('\n', '');

@@ -14,0 +14,0 @@ }

const { exec } = require('child-process-promise');
module.exports = async function (runName, pathToCompose, serviceName) {
return (await exec(`docker-compose -p ${runName} -f "${pathToCompose}" logs ${serviceName}`, { shell: '/bin/zsh' })).stdout;
return (await exec(`docker compose -p ${runName} -f "${pathToCompose}" logs ${serviceName}`, { shell: '/bin/zsh' })).stdout;
};
{
"name": "@applitools/docker-compose-mocha",
"version": "2.0.3",
"version": "2.0.4",
"description": "Tool used for setting up an isolated environment for end to end testing / integration testing using Docker Compose",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -215,3 +215,3 @@ const { expect } = require('chai');

const moreThan20MinutesOldProjectName = getRandomEnvironmentName(chance, 35).envName;
await exec(`docker-compose -p ${moreThan20MinutesOldProjectName} -f ${pathToCompose} up -d`, { shell: '/bin/zsh' });
await exec(`docker compose -p ${moreThan20MinutesOldProjectName} -f ${pathToCompose} up -d`, { shell: '/bin/zsh' });

@@ -218,0 +218,0 @@ const resultDct1 = await main.getAddressForService(moreThan20MinutesOldProjectName, pathToCompose, 'dct_s1', 3001);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc