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.2 to 2.0.3

test/end2end/docker-compose-with-volume-env-var.yml

3

package.json
{
"name": "@applitools/docker-compose-mocha",
"version": "2.0.2",
"version": "2.0.3",
"description": "Tool used for setting up an isolated environment for end to end testing / integration testing using Docker Compose",

@@ -30,2 +30,3 @@ "main": "index.js",

"@applitools/build-commons": "^1.1.13",
"@applitools/sample-web-app-testkit": "^1.3.85",
"chai": "^4.2.0",

@@ -32,0 +33,0 @@ "eslint": "^6.8.0",

@@ -1,2 +0,4 @@

const { describe, it, before: b } = require('mocha');
const {
describe, it, before: b,
} = require('mocha');
const { expect } = require('chai');

@@ -8,2 +10,3 @@ const sinon = require('sinon');

const dockerPullHostObject = require('../../lib/docker-pull-image-by-name');
const packageJson = require('../../package.json');

@@ -35,3 +38,19 @@ const {

it.only('should load a sub-environment correctly, and then the rest of the environment', async () => {
it('should kill env with volume containing env variables', async () => {
const path = `${__dirname}/docker-compose-with-volume-env-var.yml`;
let envName;
await simulateMochaRun((before, after) => {
envName = main.dockerComposeTool(before, after, path, {
envVars: {
INTERESTING_PAGES: `${__dirname}/interestingPages`,
SAMPLE_WEB_APP_TESTKIT_DEP_VERSION: packageJson.devDependencies['@applitools/sample-web-app-testkit'].replace('^', ''),
},
});
}, async () => {
await checkOldEnvironmentWasCleaned(path, envName);
});
});
it('should load a sub-environment correctly, and then the rest of the environment', async () => {
const spy = sinon.spy(dockerPullImageByName);

@@ -38,0 +57,0 @@ dockerPullHostObject.dockerPullImageByName = spy;

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