@applitools/docker-compose-mocha
Advanced tools
Comparing version 2.0.2 to 2.0.3
{ | ||
"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; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57835
47
938
9