diff --git a/package.json b/package.json index 0f4d050..a46d141 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,8 @@ "build": "yarn clean && tsc -p ./tsconfig.json && tsc -p ./examples/tsconfig.json", "prepack": "yarn build && yarn test", "postpublish": "git push --follow-tags", - "test": "yarn test:fast && yarn test:slow && yarn test:external", - "test:fast": "cross-env LOCAL_GIT_DIRECTORY=./git/ jest --runInBand --silent --config ./jest.fast.config.js", + "test": "yarn test:fast", + "test:fast": "cross-env LOCAL_GIT_DIRECTORY=./git/ jest --runInBand --silent --config ./jest.fast.config.js test/fast/environment-test.ts", "test:slow": "cross-env LOCAL_GIT_DIRECTORY=./git/ jest --runInBand --silent --config ./jest.slow.config.js", "test:external": "jest --runInBand --silent --config ./jest.external.config.js", "download-git": "node ./script/download-git.js", diff --git a/test/fast/environment-test.ts b/test/fast/environment-test.ts index 0613148..8c771b4 100644 --- a/test/fast/environment-test.ts +++ b/test/fast/environment-test.ts @@ -36,4 +36,12 @@ describe('environment variables', () => { delete process.env.GIT_EXEC_PATH } }) + + it.only('resulting PATH contains the original PATH', async () => { + const { env } = await setupEnvironment({}) + process.stderr.write(`${Object.keys({ ...process.env }).join(', ')}`) + process.stderr.write(`Path: ${process.env.Path}\n`) + process.stderr.write(`PATH: ${process.env.PATH}\n`) + expect((env)['PATH']).toContain(process.env.PATH) + }) })